Since building planeshift changes slightly with time and previous information is missing a few details that confuses people I\'m updating this as I learn new things. The source code from the dates I chose builds without errors. If you run the java updater you get the art and data files and more, including whatever the current Mac apps are. So if you want to run your build you need to rebuild after updating. I recommend keeping two planeshift directories, one official one and your built one.
This is with OS X 10.4.6 and you need to understand how to setup up Fink unstable (update Fink before going to unstable)--Darwin Ports may also work but I have not played with that yet at all. [m] marks my fixes.
Use Fink unstable to install: autoconf2.5, autogen, autogen-dev, autogen-shlibs, automake1.8, jam, freetype2, freetype2-dev, freetype2-shlibs, libiconv, libiconv-bin, libiconv-dev, libjpeg, libjpeg-bin, libjpeg-shlibs, libogg, libogg-shlibs, libpng3, libpng3-shlibs, libtool14, libtool14-shlibs, libvorbis0, libvorbis0-shlibs, m4, curl-dev, openssl097-dev, mysql15-dev, mysql, mysql-client (libiconv-shlibs is part of libiconv)
[m] based on crystalspace configure output I also added as an experiment: lib3ds bison swig swig-shlibs lcms lcms-shlibs libmng2 libmng2-shlibs libmikmod libmikmod-shlibs libcaca-dev sdl
[m] to use svn to get files from sourceforge, install: svn-client-ssl
----------------------------
cd ; mkdir src ; cd src
setenv CRYSTAL ~/src/CS
setenv CEL ~/src/cel
setenv CSCONFPATH ~/src/cel
setenv CSDIR ~/src/CS
setenv PSDIR ~/src/planeshift
setenv CELDIR ~/src/cel
setenv CFLAGS -O3
setenv CXXFLAGS -O3
If your shell is bash instead of tcsh use \"export CRYSTAL=path\" instead of \"setenv CRYSTAL path\", etc.
----------------------------
[m] for OS X 10.4 only
cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od login
cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od co -d dlcompat proj/dlcompat
cd dlcompat
make clean
autoconf
./configure --enable-fink --prefix=/sw
make
sudo make install
cd ..
----------------------------
sudo gcc_select 3.3
** I\'m not sure if this is neccessary anymore, I\'m building with 4.0.1 now
** do \"sudo gcc_select 4.0\" after you are done and before updating fink
----------------------------
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/cal3d login
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/cal3d co -P cal3d
cd cal3d
[m] emacs -nw autogen.sh
[m] -if libtool --version < /dev/null > /dev/null 2>&1 ; then
[m] +if libtoolize --version < /dev/null > /dev/null 2>&1 ; then
./autogen.sh
./configure --enable-debug
[m] emacs -nw src/cal3d/Makefile
[m] to search in emacs use: crtl-s all_lib
[m] -all_libraries = @all_libraries@
[m] +all_libraries =
make
sudo make install
cd ..
----------------------------
cvs -d:pserver:anonymous@cvs.crystalspace3d.org:/cvsroot/crystal login
cvs -z3 -d:pserver:anonymous@cvs.crystalspace3d.org:/cvsroot/crystal co -D \"2006-04-14 00:00:00\" crystal
or
svn co
https://svn.sourceforge.net/svnroot/crystal crystal
(side effect your crystal space and cel files could be from different dates)
----
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/cel login
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/cel co -D \"2006-04-14 00:00:00\" cel
----------------------------
if sourceforge is acting up you can grab a tarball from the CrystalSpace site for CS and cel -- I used one from late on Apr. 13, look down the page to CVS section
<
http://www.crystalspace3d.org/tikiwiki/tiki-index.php?page=Download> (this seems to be the easiest way to get matching versions of crystal space and cel, especially given the issues with source forges cvs server lately).
----------------------------
cd CS
./configure --enable-debug --enable-new-renderer --without-python
jam libs ; jam plugins ; jam cs-config
----------------------------
cd ../cel
./configure --enable-debug --enable-new-renderer --without-python
jam
----------------------------
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/planeshift login
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/planeshift co -P planeshift
cd ../planeshift
setenv CPPFLAGS \"-I/sw/include/mysql -I~/src/cel/include\"
setenv LDFLAGS \"-L/sw/lib/mysql\"
./autogen.sh
./configure --enable-debug --enable-new-renderer
jam
cd ~/src/planeshift/psclient.app/Contents/Resources
~/src/planeshift/support/macosx/cslibs.sh
-- regarding the errors ---
[m] cssgiimg & cswalimg gone 13-Jan-2006
[m[ opcode renamed to csopcode 16-Dec-2005
[m] no files in CS contain strings \'sndogg\' or \'sndplex\'
[m] \'snddoft\' & \'casnddrv\' & \'sndwav\' & \'sndmod\' seem to be gone as well
[m] given that cslibs.sh is totally out of date I used the following
[m] cp ~/src/CS/*.cs* ~/src/planeshift/psclient.app/Contents/Resources/.
------------------------------
cd ~/src/planeshift/updater.app/Contents/Resources/
~/src/planeshift/support/macosx/updaterlibs.sh
cd ~/src/planeshift
~/src/planeshift/support/macosx/internallibs.sh
-----------
[m] I manually copied cspngimg.csbundle & freefnt2.csbundle
to ~/src/planeshift/pssetup.app/Contents/Resources/.
-----------
copy art, etc. from PC, Linux, or Mac install (untested at the moment). See note at top about using Java Updater (thanks Optagon).