Page 2 of 3

Re: Mac SVN/Compile instructions

Posted: Fri Jul 10, 2009 1:13 am
by optic delusion
My original post was in November 2007, things change...
Try doubleclicking the file bzflag.xcodeproj

In my opinion, you can forget 2.0.x. There is no reason to dev for it anymore.
Move to trunk. 3.0 is closer than you think. Jeff is fixing the windows build in distribution mode, which can only mean one thing. RC1.

Re: Mac SVN/Compile instructions

Posted: Sun Jul 12, 2009 2:36 am
by jpenguin
I still prefer to run 'xcodebuild' from the terminal.

Re: Mac SVN/Compile instructions

Posted: Sun Jul 12, 2009 7:37 am
by Crallion
The most recent time I tried to build, I got this message at the end:

Code: Select all

** BUILD FAILED **

The following build commands failed:
BZFlag:
	PhaseScriptExecution /Users/bennoran/bzflag/build/BZFlag.build/Default/BZFlag.build/Script-1492F4C10796300E0008E0BD.sh
	PBXCp build/Default/BZFlag.app/Contents/MacOS/bzadmin src/bzadmin/bzadmin
	PBXCp build/Default/BZFlag.app/Contents/MacOS/bzflag src/bzflag/bzflag
	PBXCp build/Default/BZFlag.app/Contents/MacOS/bzfs src/bzfs/bzfs
	PBXCp build/Default/BZFlag.app/Contents/Frameworks/libcrypto.0.9.7.dylib /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libcrypto.0.9.7.dylib
	PBXCp build/Default/BZFlag.app/Contents/Frameworks/libcurl.3.dylib /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libcurl.3.dylib
(6 failures)

ben-norans-macbook:bzflag bennoran$ 

Any ideas?

Re: Mac SVN/Compile instructions

Posted: Sun Jul 12, 2009 1:09 pm
by blast
Yes, I have an idea. Give us good information. ;) Build it from a terminal using the usual ./autogen.sh, ./configure, and make and then give us real errors. You should probably also come on the IRC channel for help, or start a new topic.

Re: Mac SVN/Compile instructions

Posted: Sun Jul 12, 2009 2:27 pm
by Spazzy McGee
Crallion: instead of xcodebuild, try using

Code: Select all

xcodebuild -target development

Re: Mac SVN/Compile instructions

Posted: Mon Jul 13, 2009 2:51 pm
by Crallion
Ok, thanks, I'll try again.

Re: Mac SVN/Compile instructions

Posted: Wed Aug 26, 2009 7:43 pm
by Crallion
When trying to build, I got the same error as earlier mentioned above.
"xcodebuild -target development" doesn't work.
What is PBXCp? I deleted my bzflag folder and tried a new checkout. No results. Same problem.
Could it be that one of my files is corrupted?
What do libcurl and libcrypto do? Should I try to replace them?

Here is the error for "xcodebuild -target development:

Code: Select all

ben-norans-macbook:bzflag bennoran$ xcodebuild -target development
xcodebuild: Warning: no valid targets in target list.  Building default target.
Unknown target: development
Usage: xcodebuild [-project <projectname>] [-activetarget] [-alltargets] [-target <targetname>]... [-parallelizeTargets] [-activeconfiguration] [-configuration <configurationname>] [-sdk <sdkfullpath>|<sdkname>] [<buildsetting>=<value>]... [<buildaction>]...
       xcodebuild [-version [-sdk [<sdkfullpath>|<sdkname>] [<item>] ]
       xcodebuild [-showsdks]
       xcodebuild [-find <binary> -sdk <sdkfullpath>|<sdkname>]
       xcodebuild [-list]
Any suggestions/solvency points?

Re: Mac SVN/Compile instructions

Posted: Thu Aug 27, 2009 12:33 pm
by blast
Have you run ./autogen.sh and ./configure first? You might also just want to use "make" instead of "xcodebuild", assuming you'd don't need a .app file.

Re: Mac SVN/Compile instructions

Posted: Thu Aug 27, 2009 7:27 pm
by Crallion
This is what happens when I do:
cd bzflag
./autogen.sh
./configure
make

Code: Select all

BZFlag-2.0.13.20090827 with the following:
     curses: -lncurses
     SDL
     bzadmin
     bzflag client
ben-norans-macbook:bzflag bennoran$ make
Making all in data
Making all in l10n
make[2]: Nothing to be done for `all'.
Making all in fonts
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all-am'.
Making all in include
make  all-am
Making all in man
sed -e 's|@BZFLAG_DATE[@]|2009-08-27|g' -e 's|@BZFLAG_VERSION[@]|2.0.13|g' -e 's|@INSTALL_DATA_DIR[@]|/usr/local/share/bzflag|g' './bzadmin.6.in' >bzadmin.6
sed -e 's|@BZFLAG_DATE[@]|2009-08-27|g' -e 's|@BZFLAG_VERSION[@]|2.0.13|g' -e 's|@INSTALL_DATA_DIR[@]|/usr/local/share/bzflag|g' './bzflag.6.in' >bzflag.6
sed -e 's|@BZFLAG_DATE[@]|2009-08-27|g' -e 's|@BZFLAG_VERSION[@]|2.0.13|g' -e 's|@INSTALL_DATA_DIR[@]|/usr/local/share/bzflag|g' './bzfs.6.in' >bzfs.6
sed -e 's|@BZFLAG_DATE[@]|2009-08-27|g' -e 's|@BZFLAG_VERSION[@]|2.0.13|g' -e 's|@INSTALL_DATA_DIR[@]|/usr/local/share/bzflag|g' './bzw.5.in' >bzw.5
Making all in package
make[2]: Nothing to be done for `all-am'.
Making all in src
Making all in c-ares
make[2]: Nothing to be done for `all'.
Making all in 3D
make[2]: Nothing to be done for `all'.
Making all in regex
make[2]: Nothing to be done for `all'.
Making all in common
make[2]: Nothing to be done for `all'.
Making all in net
make[2]: Nothing to be done for `all'.
Making all in game
make[2]: Nothing to be done for `all'.
Making all in geometry
Making all in models
Making all in tank
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
make[3]: Nothing to be done for `all-am'.
Making all in obstacle
make[2]: Nothing to be done for `all'.
Making all in ogl
make[2]: Nothing to be done for `all'.
Making all in scene
make[2]: Nothing to be done for `all'.
Making all in platform
Making all in MacOSX
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in mediafile
make[2]: Nothing to be done for `all'.
Making all in date
make[2]: Nothing to be done for `all'.
Making all in bzfs
make[2]: Nothing to be done for `all'.
Making all in bzflag
make[2]: Nothing to be done for `all'.
Making all in bzadmin
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all-am'.
make[1]: Nothing to be done for `all-am'.
ben-norans-macbook:bzflag bennoran$
It still doesn't work. It doesn't even produce a build, unlike xcodebuild, which made a build and then said that it wasn't supported on my architecture.

Should I just give up?

Re: Mac SVN/Compile instructions

Posted: Fri Aug 28, 2009 2:57 am
by blast
Try executing src/bzflag/bzflag from that directory.

Re: Mac SVN/Compile instructions

Posted: Sun Feb 14, 2010 6:10 am
by cFoo
I was able to compile about 2 months ago, but I decided to sync up this morning and have been struck by the autogen.sh again.
Mac 10.6.2

./autogen.sh
Preparing the BZFlag build system...please wait

Found GNU Autoconf version 2.64
Found GNU Automake version 1.11
Found GNU Libtool version 2.2.6

Automatically preparing build ... Warning: autoreconf failed
Attempting to run the preparation steps individually

Preparing build ... ERROR: autoheader failed

running with --verbose I caught the autoheader failed.

configure.ac:2069: warning: AC_DEFINE: not an identifier:
../../lib/m4sugar/m4sh.m4:620: AS_IF is expanded from...
../../lib/autoconf/general.m4:2648: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2665: AC_LINK_IFELSE is expanded from...
../../lib/autoconf/functions.m4:82: AC_CHECK_FUNC is expanded from...
../../lib/m4sugar/m4sh.m4:588: AS_FOR is expanded from...
../../lib/autoconf/functions.m4:109: AC_CHECK_FUNCS is expanded from...
configure.ac:2069: the top level
autoheader: warning: missing template:
autoheader: Use AC_DEFINE([], [], [Description])
ERROR: autoheader failed
rm -f COPYING.95252.protect_from_automake.backup

Re: Mac SVN/Compile instructions

Posted: Sun Feb 14, 2010 4:16 pm
by blast
Are you building trunk or v2_0branch?

Re: Mac SVN/Compile instructions

Posted: Sun Feb 14, 2010 6:02 pm
by cFoo
The main trunk. The branches work just fine. I wanted to test some changes against the latest source.

Re: Mac SVN/Compile instructions

Posted: Mon Feb 15, 2010 3:56 am
by blast
Try with a clean checkout and see if that works.

Re: Mac SVN/Compile instructions

Posted: Mon Feb 15, 2010 6:00 am
by cFoo
I did a complete clean co, still no luck. Oh well. The changes seem to work on Windows so I'm going to assume it will work on Mac and Linux :D (it'll probably come back and bite me in the rear end.)

Re: Mac SVN/Compile instructions

Posted: Sun Mar 07, 2010 7:22 am
by Enigma
cFoo, I had to use older versions of automake, libtool, and autoconf. However, I don't know if older versions of all three are necessary.

Code: Select all

dhcp218n29:bzflag devindelong$ ./autogen.sh
Preparing the BZFlag build system...please wait

Found GNU Autoconf version 2.65
Found GNU Automake version 1.11.1
Found GNU Libtool version 2.2.6b

Warning: Several files expected of projects that conform to the GNU
coding standards were not found.  The files were automatically added
for you since you do not have a 'foreign' declaration specified.

Considered adding 'foreign' to AM_INIT_AUTOMAKE in configure.ac
or to AUTOMAKE_OPTIONS in your top-level Makefile.am file.


Automatically preparing build ... Warning: autoreconf failed
Attempting to run the preparation steps individually

Preparing build ... ERROR: autoheader failed

Code: Select all

dhcp218n29:bzflag devindelong$ sudo port deactivate autoconf
--->  Deactivating autoconf
dhcp218n29:bzflag devindelong$ sudo port deactivate libtool
--->  Deactivating libtool
dhcp218n29:bzflag devindelong$ sudo port deactivate automake
--->  Deactivating automake

Code: Select all

dhcp218n29:bzflag devindelong$ ./autogen.sh
Preparing the BZFlag build system...please wait

Found GNU Autoconf version 2.61
Found GNU Automake version 1.10

Warning:  libtoolize does not appear to be available.  This means that
the automatic build preparation via autoreconf will probably not work.
Preparing the build by running each step individually, however, should
work and will be done automatically for you if autoreconf fails.

Fortunately, glibtoolize was found which means that your system may simply
have a non-standard or incomplete GNU Autotools install.  If you have
sufficient system access, it may be possible to quell this warning by
running:

   sudo ln -s /usr/bin/glibtoolize /usr/bin/libtoolize

Found GNU Libtool version 1.5.22

Automatically preparing build ... done

The BZFlag build system is now prepared.  To build here, run:
  ./configure
  make

Re: Mac SVN/Compile instructions

Posted: Sun Mar 07, 2010 10:41 am
by tobylane
Undefined symbols:
"_uncompress", referenced from:
WorldBuilder::unpack(void*) in libClientBase.a(WorldBuilder.o)
"_inflateInit_", referenced from:
PNGImageFile::read(void*) in libMediaFile.a(PNGImageFile.o)
"_XTranslateCoordinates", referenced from:
SDLWindow::getPosition(int&, int&)in libPlatform.a(SDLWindow.o)
"_XGetWindowAttributes", referenced from:
SDLWindow::getPosition(int&, int&)in libPlatform.a(SDLWindow.o)
"_inflateEnd", referenced from:
PNGImageFile::read(void*) in libMediaFile.a(PNGImageFile.o)
_ft_gzip_file_done in libfreetype.a(ftgzip.o)
"_inflateInit2_", referenced from:
_FT_Stream_OpenGzip in libfreetype.a(ftgzip.o)
"_inflateReset", referenced from:
_ft_gzip_file_io in libfreetype.a(ftgzip.o)
"_gzopen", referenced from:
HubLink::loadFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) constin HubLink.o
"_gzread", referenced from:
HubLink::loadFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) constin HubLink.o
"_crc32", referenced from:
writeScreenshot(void*) in libClientBase.a(clientCommands.o)
writeScreenshot(void*) in libClientBase.a(clientCommands.o)
writeScreenshot(void*) in libClientBase.a(clientCommands.o)
writeScreenshot(void*) in libClientBase.a(clientCommands.o)
writeScreenshot(void*) in libClientBase.a(clientCommands.o)
writeScreenshot(void*) in libClientBase.a(clientCommands.o)
writeScreenshot(void*) in libClientBase.a(clientCommands.o)
writeScreenshot(void*) in libClientBase.a(clientCommands.o)
writeScreenshot(void*) in libClientBase.a(clientCommands.o)
writeScreenshot(void*) in libClientBase.a(clientCommands.o)
writeScreenshot(void*) in libClientBase.a(clientCommands.o)
writeScreenshot(void*) in libClientBase.a(clientCommands.o)
writeScreenshot(void*) in libClientBase.a(clientCommands.o)
writeScreenshot(void*) in libClientBase.a(clientCommands.o)
writeScreenshot(void*) in libClientBase.a(clientCommands.o)
writeScreenshot(void*) in libClientBase.a(clientCommands.o)
writeScreenshot(void*) in libClientBase.a(clientCommands.o)
writeScreenshot(void*) in libClientBase.a(clientCommands.o)
"_inflate", referenced from:
PNGImageFile::read(void*) in libMediaFile.a(PNGImageFile.o)
_ft_gzip_file_fill_output in libfreetype.a(ftgzip.o)
"_compress2", referenced from:
writeScreenshot(void*) in libClientBase.a(clientCommands.o)
"_XSync", referenced from:
SDLWindow::getPosition(int&, int&)in libPlatform.a(SDLWindow.o)
"_gzclose", referenced from:
HubLink::loadFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) constin HubLink.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [bzflag] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Re: Mac SVN/Compile instructions

Posted: Sun Sep 12, 2010 1:53 am
by PlasticTank
Thanks optic for the great tut, however I am having some problems compiling. Everything works great, and it does build an app, but the app is broken whenever I try to open it. Here are the errors at the end of the build.


The following build commands failed:
BZFlag:
PhaseScriptExecution "Run Script" /Users/Pieper/Desktop/bzflag-2.0.16/build/BZFlag.build/Default/BZFlag.build/Script-1492F4C10796300E0008E0BD.sh
PBXCp build/Default/BZFlag.app/Contents/MacOS/bzadmin src/bzadmin/bzadmin
PBXCp build/Default/BZFlag.app/Contents/MacOS/bzflag src/bzflag/bzflag
PBXCp build/Default/BZFlag.app/Contents/MacOS/bzfs src/bzfs/bzfs
PBXCp build/Default/BZFlag.app/Contents/Frameworks/libcrypto.0.9.7.dylib /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libcrypto.0.9.7.dylib
PBXCp build/Default/BZFlag.app/Contents/Frameworks/libcurl.3.dylib /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libcurl.3.dylib

Thanks

PlasticTank

(I do notice that it isn't build bzflag, bzadmin, or bzfs :P)

Re: Mac SVN/Compile instructions

Posted: Sun Sep 12, 2010 2:14 am
by optic delusion
I have no idea what that sh script is.
Constitution finished the 2.0.16 Official build just the other day. Why don't you use that? http://my.bzflag.org/bb/viewtopic.php?f=62&t=16149

Re: Mac SVN/Compile instructions

Posted: Mon Sep 13, 2010 12:29 am
by Enigma
Plastic Tank, it looks like it's just copying files to the BZFlag.app directory. You only need to use the xcode project if you want to create a double-clickable BZFlag.app bundle. Personally, I prefer to run autogen.sh, configure, and make to compile everything, and then use the xcode project to create a BZFlag.app bundle. Actually, I should say, "preferred," since I am on Gentoo Linux now and am not using my Mac anymore.

However, I couldn't tell you why that script is not working.

BTW, this didn't work because the only targe is "BZFlag."

Code: Select all

xcodebuild -target development
Spazzy actually meant:

Code: Select all

xcodebuild -configuration Development

Re: Mac SVN/Compile instructions

Posted: Tue Nov 23, 2010 9:51 pm
by RapidEcho
Ok, here goes nothing. I seem to be having similar errors as Crallion.
I have XCode 3.2.5 installed on my Macbook 5,1 running OSX 10.6.5. 2GB Ram, 2GHz Intel Processor.
I have been able to successfully build BZFlag in the past, but I can't think of anything I did differently. I am on the same computer, and perhaps the only thing different is that I was on 10.5.x then, and now I am on 10.6.x.
Are there any dependencies I need besides XCode and SDL?

As with Crallion, no app is created using the 'make' command.
When I use 'xcodebuild', the result is an incomplete app bundle in build/Deployment or build/Development. After running these builds from terminal, I try to open bzflag.xcodeproj and build it with XCode. This results in around 806 errors, many of which involve pbxcp and files that don't exist.

Attempt 1:

Code: Select all

cd bzflag
./autogen.sh
./configure
make
Resulting Errors with attempt 1:

Code: Select all

ld: warning: in ../c-ares/.libs/libcares.a, missing required architecture x86_64 in file
ld: warning: in /Library/Frameworks//SDL.framework/SDL, missing required architecture x86_64 in file
Undefined symbols:
  "_ares_gethostbyname", referenced from:
      AresHandler::queryHost(char*)  in libNet.a(libNet_la-AresHandler.o)
  "_ares_fds", referenced from:
      AresHandler::setFd(fd_set*, fd_set*, int&)in libNet.a(libNet_la-AresHandler.o)
  "_ares_init_options", referenced from:
      AresHandler::AresHandler(int)in libNet.a(libNet_la-AresHandler.o)
      AresHandler::AresHandler(int)in libNet.a(libNet_la-AresHandler.o)
  "_ares_destroy", referenced from:
      AresHandler::~AresHandler()in libNet.a(libNet_la-AresHandler.o)
      AresHandler::~AresHandler()in libNet.a(libNet_la-AresHandler.o)
  "_ares_process", referenced from:
      AresHandler::process(fd_set*, fd_set*)in libNet.a(libNet_la-AresHandler.o)
  "_ares_cancel", referenced from:
      AresHandler::queryHost(char*)  in libNet.a(libNet_la-AresHandler.o)
  "_ares_gethostbyaddr", referenced from:
      AresHandler::queryHostname(sockaddr*)       in libNet.a(libNet_la-AresHandler.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [bzfs] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Macbook:bzflag-2.0.16 connor$ PBXCp build/Development/BZFlag.app/Contents/MacOS/bzadmin src/bzadmin/bzadmin
-bash: PBXCp: command not found

Attempt 2:

Code: Select all

cd bzflag
./autogen.sh
./configure
xcodebuild -configuration Deployment
Resulting Errors with attempt 2:

Code: Select all

lipo: can't open input file: /var/folders/LC/LCtJ71X3Hk81r9yD6kMFe++++TQ/-Tmp-//cc2ALwoG.out (No such file or directory)
make[2]: *** [FontManager.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
PBXCp build/Deployment/BZFlag.app/Contents/MacOS/bzadmin src/bzadmin/bzadmin
    cd /bzflag-2.0.16
    /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -strip-debug-symbols -resolve-src-symlinks /bzflag-2.0.16/src/bzadmin/bzadmin /bzflag-2.0.16/build/Deployment/BZFlag.app/Contents/MacOS

pbxcp: bzadmin: No such file or directory
pbxcp: bzadmin: No such file or directory
PBXCp build/Deployment/BZFlag.app/Contents/MacOS/bzflag src/bzflag/bzflag
    cd /bzflag-2.0.16
    /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -strip-debug-symbols -resolve-src-symlinks /bzflag-2.0.16/src/bzflag/bzflag /bzflag-2.0.16/build/Deployment/BZFlag.app/Contents/MacOS

pbxcp: bzflag: No such file or directory
pbxcp: bzflag: No such file or directory
PBXCp build/Deployment/BZFlag.app/Contents/MacOS/bzfs src/bzfs/bzfs
    cd /bzflag-2.0.16
    /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -strip-debug-symbols -resolve-src-symlinks /bzflag-2.0.16/src/bzfs/bzfs /bzflag-2.0.16/build/Deployment/BZFlag.app/Contents/MacOS

pbxcp: bzfs: No such file or directory
pbxcp: bzfs: No such file or directory
PBXCp build/Deployment/BZFlag.app/Contents/Frameworks/libcrypto.0.9.7.dylib /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libcrypto.0.9.7.dylib
    cd /bzflag-2.0.16
    /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -strip-debug-symbols -resolve-src-symlinks /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libcrypto.0.9.7.dylib /bzflag-2.0.16/build/Deployment/BZFlag.app/Contents/Frameworks

strip: dynamic stub library can't be changed once created: /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libcrypto.0.9.7.dylib (for architecture i386)
pbxcp: warning: couldn't strip: /bzflag-2.0.16/build/Deployment/BZFlag.app/Contents/Frameworks/libcrypto.0.9.7.dylib: No such file or directory
Command /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp failed with exit code 1
Command /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp failed with exit code 1


The following build commands failed:
BZFlag:
	PhaseScriptExecution "Run Script" /bzflag-2.0.16/build/BZFlag.build/Deployment/BZFlag.build/Script-1492F4C10796300E0008E0BD.sh
	PBXCp build/Deployment/BZFlag.app/Contents/MacOS/bzadmin src/bzadmin/bzadmin
	PBXCp build/Deployment/BZFlag.app/Contents/MacOS/bzflag src/bzflag/bzflag
	PBXCp build/Deployment/BZFlag.app/Contents/MacOS/bzfs src/bzfs/bzfs
	PBXCp build/Deployment/BZFlag.app/Contents/Frameworks/libcrypto.0.9.7.dylib /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libcrypto.0.9.7.dylib
	PBXCp build/Deployment/BZFlag.app/Contents/Frameworks/libcurl.3.dylib /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libcurl.3.dylib
(6 failures)
Attempt 3:

Code: Select all

cd bzflag
./autogen.sh
./configure
xcodebuild -configuration Development
Resulting Errors with attempt 3:

Code: Select all

lipo: can't open input file: /var/folders/LC/LCtJ71X3Hk81r9yD6kMFe++++TQ/-Tmp-//ccICgBaX.out (No such file or directory)
make[2]: *** [FontManager.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
PBXCp build/Development/BZFlag.app/Contents/MacOS/bzadmin src/bzadmin/bzadmin
    cd /bzflag-2.0.16
    /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -resolve-src-symlinks /bzflag-2.0.16/src/bzadmin/bzadmin /bzflag-2.0.16/build/Development/BZFlag.app/Contents/MacOS

pbxcp: bzadmin: No such file or directory
pbxcp: bzadmin: No such file or directory
PBXCp build/Development/BZFlag.app/Contents/MacOS/bzfs src/bzfs/bzfs
    cd /bzflag-2.0.16
    /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -resolve-src-symlinks /bzflag-2.0.16/src/bzfs/bzfs /bzflag-2.0.16/build/Development/BZFlag.app/Contents/MacOS

pbxcp: bzfs: No such file or directory
pbxcp: bzfs: No such file or directory
PBXCp build/Development/BZFlag.app/Contents/MacOS/bzflag src/bzflag/bzflag
    cd /bzflag-2.0.16
    /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -resolve-src-symlinks /bzflag-2.0.16/src/bzflag/bzflag /bzflag-2.0.16/build/Development/BZFlag.app/Contents/MacOS

pbxcp: bzflag: No such file or directory
pbxcp: bzflag: No such file or directory
PBXCp build/Development/BZFlag.app/Contents/Resources/MacBZFlag.icns src/platform/MacOSX/MacBZFlag.icns
    cd /bzflag-2.0.16
    /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -resolve-src-symlinks /bzflag-2.0.16/src/platform/MacOSX/MacBZFlag.icns /bzflag-2.0.16/build/Development/BZFlag.app/Contents/Resources


The following build commands failed:
BZFlag:
	PhaseScriptExecution "Run Script" /bzflag-2.0.16/build/BZFlag.build/Development/BZFlag.build/Script-1492F4C10796300E0008E0BD.sh
	PBXCp build/Development/BZFlag.app/Contents/MacOS/bzadmin src/bzadmin/bzadmin
	PBXCp build/Development/BZFlag.app/Contents/MacOS/bzflag src/bzflag/bzflag
	PBXCp build/Development/BZFlag.app/Contents/MacOS/bzfs src/bzfs/bzfs
(4 failures)


If any more clarification of my methods is needed, I will try to help you help myself.
The Terminal output for all three attempts is attached.

Re: Mac SVN/Compile instructions

Posted: Tue Nov 23, 2010 10:57 pm
by optic delusion
When you run configure, it checks for an SDL version that is greater then 1.2.5. You do not want that. Back port to SDL 1.2.14, and I "think" your problem will be solved. Compile the SDL source code, DO NOT use the development or runtime libraries. I think you can compile the older version to write over the existing SDL.
I hope this works for you, it worked for me, but i was compiling via terminal without XCode. You should also trash your existing BZFlag source, and get new.

Re: Mac SVN/Compile instructions

Posted: Wed Nov 24, 2010 8:43 am
by RapidEcho
Is it necessary to check out a another source? Isn't there a clean option somewhere?
Checked a new one out anyway.

1. For my first 3 attempts, I used the SDL runtime library for Mac OS X
2. For this attempt, I built SDL-1.2.14 from source.
Query: Do I need to remove the runtime libraries, or will it work fine with runtime+source build?

After compiling SDL, I tried building BZFlag from source again.

Code: Select all

mkdir gnubzflag
cd gnubzflag
svn checkout https://bzflag.svn.sourceforge.net/svnroot/bzflag/branches/v2_0branch/bzflag/
cd bzflag
./autogen.sh
./configure
xcodebuild
Resulting Errors:

Code: Select all

Creating dirs
Copying data files
Copying plugins
** BUILD FAILED **

The following build commands failed:
BZFlag:
	PhaseScriptExecution "Run Script" /Users/connor/gnubzflag/bzflag/build/BZFlag.build/Default/BZFlag.build/Script-1492F4C10796300E0008E0BD.sh
	PBXCp build/Default/BZFlag.app/Contents/MacOS/bzadmin src/bzadmin/bzadmin
	PBXCp build/Default/BZFlag.app/Contents/MacOS/bzflag src/bzflag/bzflag
	PBXCp build/Default/BZFlag.app/Contents/MacOS/bzfs src/bzfs/bzfs
	PBXCp build/Default/BZFlag.app/Contents/Frameworks/libcrypto.0.9.7.dylib /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libcrypto.0.9.7.dylib
	PBXCp build/Default/BZFlag.app/Contents/Frameworks/libcurl.3.dylib /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libcurl.3.dylib
(6 failures)
'xcodebuild -configuration Development' has the same error output as my earlier attempt.

Re: Mac SVN/Compile instructions

Posted: Wed Nov 24, 2010 11:06 am
by blast
The errors listed there do not really tell us anything. Do not use xcodebuild until 'make' actually works properly. Using 'make' will give more info.

Re: Mac SVN/Compile instructions

Posted: Wed Nov 24, 2010 12:45 pm
by RapidEcho
As you wish, good sir.

Output of a fresh checkout and:
cd bzflag
./autogen.sh
./configure
make