Mac SVN/Compile instructions

Questions or HOWTOs about the above? Post 'em here...
User avatar
optic delusion
Special Forces
Special Forces
Posts: 962
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Re: Mac SVN/Compile instructions

Post by optic delusion » Fri Jul 10, 2009 1:13 am

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.
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.

jpenguin
Private First Class
Private First Class
Posts: 128
Joined: Wed Jun 11, 2008 11:56 pm

Re: Mac SVN/Compile instructions

Post by jpenguin » Sun Jul 12, 2009 2:36 am

I still prefer to run 'xcodebuild' from the terminal.

User avatar
Crallion
Private First Class
Private First Class
Posts: 201
Joined: Mon Mar 09, 2009 6:26 am
Location: The USA
Contact:

Re: Mac SVN/Compile instructions

Post by Crallion » Sun Jul 12, 2009 7:37 am

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?
Time is a great teacher, but unfortunately, it kills all its pupils ... - Louis Hector Berlioz

To err is human. To really foul up requires the root password.

User avatar
blast
General
General
Posts: 4647
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Mac SVN/Compile instructions

Post by blast » Sun Jul 12, 2009 1:09 pm

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.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1403
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Contact:

Re: Mac SVN/Compile instructions

Post by Spazzy McGee » Sun Jul 12, 2009 2:27 pm

Crallion: instead of xcodebuild, try using

Code: Select all

xcodebuild -target development
"Life is what happens to you while you're busy making other plans." - John Lennon

User avatar
Crallion
Private First Class
Private First Class
Posts: 201
Joined: Mon Mar 09, 2009 6:26 am
Location: The USA
Contact:

Re: Mac SVN/Compile instructions

Post by Crallion » Mon Jul 13, 2009 2:51 pm

Ok, thanks, I'll try again.
Time is a great teacher, but unfortunately, it kills all its pupils ... - Louis Hector Berlioz

To err is human. To really foul up requires the root password.

User avatar
Crallion
Private First Class
Private First Class
Posts: 201
Joined: Mon Mar 09, 2009 6:26 am
Location: The USA
Contact:

Re: Mac SVN/Compile instructions

Post by Crallion » Wed Aug 26, 2009 7:43 pm

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?
Time is a great teacher, but unfortunately, it kills all its pupils ... - Louis Hector Berlioz

To err is human. To really foul up requires the root password.

User avatar
blast
General
General
Posts: 4647
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Mac SVN/Compile instructions

Post by blast » Thu Aug 27, 2009 12:33 pm

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.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
Crallion
Private First Class
Private First Class
Posts: 201
Joined: Mon Mar 09, 2009 6:26 am
Location: The USA
Contact:

Re: Mac SVN/Compile instructions

Post by Crallion » Thu Aug 27, 2009 7:27 pm

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?
Time is a great teacher, but unfortunately, it kills all its pupils ... - Louis Hector Berlioz

To err is human. To really foul up requires the root password.

User avatar
blast
General
General
Posts: 4647
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Mac SVN/Compile instructions

Post by blast » Fri Aug 28, 2009 2:57 am

Try executing src/bzflag/bzflag from that directory.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

cFoo
Private First Class
Private First Class
Posts: 8
Joined: Sat Feb 13, 2010 6:21 am

Re: Mac SVN/Compile instructions

Post by cFoo » Sun Feb 14, 2010 6:10 am

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

User avatar
blast
General
General
Posts: 4647
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Mac SVN/Compile instructions

Post by blast » Sun Feb 14, 2010 4:16 pm

Are you building trunk or v2_0branch?
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

cFoo
Private First Class
Private First Class
Posts: 8
Joined: Sat Feb 13, 2010 6:21 am

Re: Mac SVN/Compile instructions

Post by cFoo » Sun Feb 14, 2010 6:02 pm

The main trunk. The branches work just fine. I wanted to test some changes against the latest source.

User avatar
blast
General
General
Posts: 4647
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Mac SVN/Compile instructions

Post by blast » Mon Feb 15, 2010 3:56 am

Try with a clean checkout and see if that works.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

cFoo
Private First Class
Private First Class
Posts: 8
Joined: Sat Feb 13, 2010 6:21 am

Re: Mac SVN/Compile instructions

Post by cFoo » Mon Feb 15, 2010 6:00 am

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.)

Enigma
Private First Class
Private First Class
Posts: 211
Joined: Sat Apr 23, 2005 3:13 am

Re: Mac SVN/Compile instructions

Post by Enigma » Sun Mar 07, 2010 7:22 am

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

tobylane
Private First Class
Private First Class
Posts: 130
Joined: Thu Jan 29, 2009 4:21 pm

Re: Mac SVN/Compile instructions

Post by tobylane » Sun Mar 07, 2010 10:41 am

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

User avatar
PlasticTank
Private First Class
Private First Class
Posts: 53
Joined: Sat Nov 22, 2008 5:45 pm

Re: Mac SVN/Compile instructions

Post by PlasticTank » Sun Sep 12, 2010 1:53 am

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)

User avatar
optic delusion
Special Forces
Special Forces
Posts: 962
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Re: Mac SVN/Compile instructions

Post by optic delusion » Sun Sep 12, 2010 2:14 am

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
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.

Enigma
Private First Class
Private First Class
Posts: 211
Joined: Sat Apr 23, 2005 3:13 am

Re: Mac SVN/Compile instructions

Post by Enigma » Mon Sep 13, 2010 12:29 am

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

Rapid Echo
Private First Class
Private First Class
Posts: 16
Joined: Thu Jul 15, 2010 2:15 pm

Re: Mac SVN/Compile instructions

Post by Rapid Echo » Tue Nov 23, 2010 9:51 pm

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.
Attachments
TerminalBZFlagBuildAttempts.txt
Tada.
(520.97 KiB) Downloaded 145 times
Last edited by Rapid Echo on Wed Nov 24, 2010 8:47 am, edited 1 time in total.

User avatar
optic delusion
Special Forces
Special Forces
Posts: 962
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Re: Mac SVN/Compile instructions

Post by optic delusion » Tue Nov 23, 2010 10:57 pm

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.
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.

Rapid Echo
Private First Class
Private First Class
Posts: 16
Joined: Thu Jul 15, 2010 2:15 pm

Re: Mac SVN/Compile instructions

Post by Rapid Echo » Wed Nov 24, 2010 8:43 am

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.

User avatar
blast
General
General
Posts: 4647
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Mac SVN/Compile instructions

Post by blast » Wed Nov 24, 2010 11:06 am

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.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

Rapid Echo
Private First Class
Private First Class
Posts: 16
Joined: Thu Jul 15, 2010 2:15 pm

Re: Mac SVN/Compile instructions

Post by Rapid Echo » Wed Nov 24, 2010 12:45 pm

As you wish, good sir.

Output of a fresh checkout and:
cd bzflag
./autogen.sh
./configure
make
Attachments
BZBuildUsingMake.txt
(307.79 KiB) Downloaded 145 times

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest