Compiling BZFlag 2.0.10 Mac (fixed)

Questions or HOWTOs about the above? Post 'em here...
Post Reply
User avatar
McSpider
Private First Class
Private First Class
Posts: 49
Joined: Mon May 11, 2009 10:11 pm
Location: Yukon Canada
Contact:

Compiling BZFlag 2.0.10 Mac (fixed)

Post by McSpider »

Hi,
Im trying to compile BZFlag 2.0.10 from source so I can use plugins.
My operating system is Mac OS X 10.6.2.

I get these warnings from terminal when I run:
./configure --enable-optimized --enable-shared

Code: Select all

configure: WARNING: using an internal c-ares lib.
configure: WARNING: Consider installing an updated library at system level
configure: WARNING: link is http://daniel.haxx.se/projects/c-ares/

configure: WARNING: could not find an appropriate SDL version. BZflag will build without SDL
And this output when i run: make

Code: Select all

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 doc
Making all in man
make[2]: Nothing to be done for `all'.
Making all in faq
make[2]: Nothing to be done for `all'.
Making all in guide
Making all in Commands
make[3]: Nothing to be done for `all'.
Making all in Flags
make[3]: Nothing to be done for `all'.
Making all in Geometry
make[3]: Nothing to be done for `all'.
Making all in Installation
make[3]: Nothing to be done for `all'.
Making all in Tactics
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in howto
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all-am'.
Making all in include
make  all-am
make[2]: Nothing to be done for `all-am'.
Making all in man
sed -e 's|@BZFLAG_DATE[@]|2009-12-05|g' -e 's|@BZFLAG_VERSION[@]|2.0.10|g' -e 's|@INSTALL_DATA_DIR[@]|/usr/local/share/bzflag|g' './bzadmin.6.in' >bzadmin.6
sed -e 's|@BZFLAG_DATE[@]|2009-12-05|g' -e 's|@BZFLAG_VERSION[@]|2.0.10|g' -e 's|@INSTALL_DATA_DIR[@]|/usr/local/share/bzflag|g' './bzflag.6.in' >bzflag.6
sed -e 's|@BZFLAG_DATE[@]|2009-12-05|g' -e 's|@BZFLAG_VERSION[@]|2.0.10|g' -e 's|@INSTALL_DATA_DIR[@]|/usr/local/share/bzflag|g' './bzfs.6.in' >bzfs.6
sed -e 's|@BZFLAG_DATE[@]|2009-12-05|g' -e 's|@BZFLAG_VERSION[@]|2.0.10|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
/bin/sh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../include  -I../../../include -I../../../src/platform    -g -O2  -pipe -pedantic -fno-exceptions -W -Wall -Wundef -Wno-import -O3 -ffast-math -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -g -O2  -pipe -pedantic -fno-exceptions -W -Wall -Wundef -Wno-import -O3 -ffast-math -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -c -o MacDisplay.lo MacDisplay.cxx
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../include -I../../../include -I../../../src/platform -g -O2 -pipe -pedantic -fno-exceptions -W -Wall -Wundef -Wno-import -O3 -ffast-math -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -g -O2 -pipe -pedantic -fno-exceptions -W -Wall -Wundef -Wno-import -O3 -ffast-math -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -c MacDisplay.cxx -o MacDisplay.o
MacDisplay.cxx: In constructor ‘MacDisplay::MacDisplay(const char*, const char*)’:
MacDisplay.cxx:22: error: ‘NewRgn’ was not declared in this scope
MacDisplay.cxx: In member function ‘virtual bool MacDisplay::getEvent(BzfEvent&) const’:
MacDisplay.cxx:213: error: ‘::kEventWindowUpdate’ has not been declared
MacDisplay.cxx:214: error: ‘::kEventWindowDrawContent’ has not been declared
MacDisplay.cxx:216: error: ‘BeginUpdate’ was not declared in this scope
MacDisplay.cxx:217: error: ‘EndUpdate’ was not declared in this scope
MacDisplay.cxx: In member function ‘void MacDisplay::getKey(BzfKeyEvent&, char, UInt32) const’:
MacDisplay.cxx:278: warning: format ‘%lX’ expects type ‘long unsigned int’, but argument 3 has type ‘UInt32’
make[3]: *** [MacDisplay.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Could someone tell my how I can get this to work?

Never mind I got it to work by installing SDL from here: http://www.libsdl.org/download-1.2.php

although I now get this error when starting bzfs:
WARNING: unable to load the plugin; airspawn
using this command:
…/bzflag-2.0.10/src/bzfs/bzfs -loadplugin airspawn
McSpider - BZFlag Maps
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Compiling BZFlag 2.0.10 Mac (fixed)

Post by blast »

Provide the full path/name to the plugin (the .so file). From bzflag-2.0.10/:
src/bzfs/bzfs -loadplugin plugins/airspawn/.libs/airspawn.so
"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
McSpider
Private First Class
Private First Class
Posts: 49
Joined: Mon May 11, 2009 10:11 pm
Location: Yukon Canada
Contact:

Re: Compiling BZFlag 2.0.10 Mac (fixed)

Post by McSpider »

blast wrote:Provide the full path/name to the plugin (the .so file). From bzflag-2.0.10/:
src/bzfs/bzfs -loadplugin plugins/airspawn/.libs/airspawn.so
I cant find any .so files in the bzflag-2.0.10/plugins/airspawn folder.
The files I have in the airspawn folder have these endings .lo .o .cpp .def .la .sln .vcproj.
McSpider - BZFlag Maps
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Compiling BZFlag 2.0.10 Mac (fixed)

Post by blast »

I said in the .libs directory in there. The period at the start means it's a hidden object (file or 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
User avatar
McSpider
Private First Class
Private First Class
Posts: 49
Joined: Mon May 11, 2009 10:11 pm
Location: Yukon Canada
Contact:

Re: Compiling BZFlag 2.0.10 Mac (fixed)

Post by McSpider »

Ok I found the .so file and it works. thanks for the help.
McSpider - BZFlag Maps
Post Reply