PlaneShift

Development => Development Deliberation => Topic started by: JeroMiya on January 01, 2005, 04:43:49 am

Title: Building PS on the Mac
Post by: JeroMiya on January 01, 2005, 04:43:49 am
Requirements:
1) XCode 1.5  and gcc update (available at developer.apple.com)
2) Fink installed (fink.sf.net, follow all the install instructions for self update etc..)
3) of course, latest CVS of CrystalSpace, cal3d, cel, and planeshift
4) Jam. You can get it here: http://public.perforce.com/public/jam/jam-2.5.tar     Build and install it wherever you like.
5) MySQL (you can download it at http://www.mysql.com/)
6) The following fink packages:
autoconf2.5
autogen
autogen-shlibs
autogen-dev
automake1.8
freetype2
freetype2-dev
freetype2-shlibs
libiconv
libiconv-dev
libiconv-shlibs
libjpeg-bin
libjpeg-shlibs
libjpeg-dev
libogg
libogg-shlibs
libpng3
libpng3-shlibs
libtool14
libtool14-shlibs
libvorbis0
libvorbis0-shlibs
m4

OK, you\'re ready. Make sure your fink paths  are setup correctly (read the website for info on how to do that. Should do it automatically when you install fink).

Steps:
1) Build and install cal3d
you needed updated autotools in order to get cal3d\'s autogen.sh to run. You may, in addition, need to remove the section in autogen.sh relating to checking for libtool. It should be close to the top. It didn\'t seem to detect my libtoolize version correctly, but it worked.

./autogen.sh
./configure --enable-debug
make
sudo make install

2) Build CrystalSpace

Ok, first run:
export CRYSTAL=${PWD}
./configure --enable-debug --enable-new-renderer --without-python

and check to see if all the required libs are detected. Also in certain cases where it checks if a library is sufficiently recent, check if it says \"yes\". The libs you want to be concerned with are libjpeg, libpng, freetype2, cal3d, libogg, and libvorbis.
You might have a problem with freetype2, because there is an older version of freetype2 installed in /usr/X11R6 that gets detected before the fink one. I\'m sure there is a better way, but I just renamed /usr/X11R6 temporarily.

build CS like so:
jam libs; jam plugins; jam cs-config
You might also want to jam walktest and run it to see if everything is working ok.

3) Build CEL
pretty straightforward:
cd ../cel
export CEL=${PWD}
export CSCONFPATH=${PWD}
./configure --enable-debug --enable-new-renderer --without-python
jam

Should build without incident.

4) Build Planeshift
cd ../planeshift
./autogen.sh
./configure --enable-debug --enable-new-renderer

Now, open Jamconfig and look for the line that says CURL.LFLAGS. If this line has -arch i686 or whatever, take that out of the line and save Jamconfig. Then:

jam

Now, as of this writing, there are a couple of errors that you\'ll see in updater. Take a look at the files that are not compiling, go to the lines the errors are on and you should see #elif CS_PLATFORM_MACOSX, change all these to #elif defined(CS_PLATFORM_MACOSX). I submitted a patch to the list but it hasn\'t been committed yet. run jam again and you should have a working client, server, and updater.

5) Download the art files
if you managed to build the updater, you should be able to run it by typing:
./updater.app/Contents/MacOS/updater

It should run and a window will pop up. Click \"update\", or if the button isn\'t exactly visible, it\'s the second button at the bottom. This will download all the art files, etc.. It will also download over your client  and updater with older versions. Once it\'s done, you\'ll need to delete the psclient.app and updater.app that it downloaded and rebuild those.

6) Run the client
Once you\'ve done that, you can run the client by typing:
./psclient.app/Contents/MacOS/psclient

Title:
Post by: JeroMiya on January 01, 2005, 04:45:29 am
also look in support/macosx for scripts that will, eventually, bundle up all the required plugins and libraries to make psclient.app double clickable in the finder. It currently isn\'t working too well though, but might in the near future lol.
Title: nice thread
Post by: Mathious on January 01, 2005, 04:44:07 pm
...this is a nice thread! Congrats!

will google for links to the above files and post them here for others....
Title: ....here goes....
Post by: Mathious on January 01, 2005, 05:35:01 pm
just gonna try and put together some links for all these files - so that others wont need to google or scrape around pokey parts of websites for the files they need.

1> xcode = http://developer.apple.com/tools/macosxtools.html
xcode does come with the latest version of os x (cd2 i think), so you might be able to save yourself some download time by using the cds.

2> Fink = http://prdownloads.sourceforge.net/fink/Fink-0.7.1-Installer.dmg?download

3> CrystalSpace = http://crystal.sourceforge.net/cvs-snapshots/bzip2/cs-current-snapshot.tar.bz2

Cal3D = http://kent.dl.sourceforge.net/sourceforge/cal3d/cal3d-0.9.1.tar.bz2

Cel = http://kent.dl.sourceforge.net/sourceforge/cel/cel98_002.tar.bz2

Planeshift =  http://cvs.sourceforge.net/cvstarballs/planeshift-cvsroot.tar.bz2

4> Jam = (already linked to but what the hey, gotta make this list as complete as possible) http://public.perforce.com/public/jam/jam-2.5.tar

5> MySQL = http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-max-4.1.8-apple-darwin7.6.0-powerpc.dmg/from/http://mysql.mirror.anlx.net/

6> Fink Packages = (all available at) http://fink.sourceforge.net/pdb/list.php
Title: the hardest part?...
Post by: Mathious on January 01, 2005, 05:59:17 pm
...well so far the hardest part has been downloading the fink packages.
They seem to be scattered across slow ftp servers and there are lots of versions for each package.
Where did you download all yours from JeroMiya?
Also any thoughts on where the best DL for PS source would be, as I found the link I have in one of Acraigs posts, and it only downloaded 15mb, of 99mb.
I just tried it again and now it will only dl about 700k

something to do with the constant development activity perhaps?
Title: Can anyone go into more detail?
Post by: Mathious on January 01, 2005, 09:12:45 pm
...im afraid Im totally stuck, ive never built anything from source before (except back in my youth - however that was me programming the source on bbc electrons, spectrums, rm\'s and other assorted antiques!).

Can anyone elaborate on the instructions posted by JeroMiya?

Title: ok so.....
Post by: Mathious on January 28, 2005, 05:09:42 pm
Well, im discovering that this is actually not as complicated as it seems, although most of the download links i previously posted seem to be pretty redundant as there is a much easier way to get the source code using terminal.

Im gonna try out the build and then perhaps find a host for a temparary version of PS until Dfryer can get the next release up an running.
(if any devs - esp Daniel, have any objection to me doing this please let me know - I dont wanna cause any problems!)
Title:
Post by: MagicFitz on January 29, 2005, 04:20:32 am
I\'m presently trying to compile the source into a working OS X version but unfortunately the limit of my computer skills is 1/2 a year of C programming and 1/2 a year of haskell (what a retarded language that was) in my first year at university.

whilst running ./autogen.sh for the cal3d libraries I get the following errors

./autogen.sh: line 64: test: : integer expression expected
Running \'aclocal-1.8 \'
/sw/share/aclocal/vorbis.m4:9: warning: underquoted definition of XIPH_PATH_VORBIS
  run info \'(automake)Extending aclocal\'
  or see http://sources.redhat.com/automake/automake.html#Extending%20aclocal
/sw/share/aclocal/ogg.m4:8: warning: underquoted definition of XIPH_PATH_OGG
/sw/share/aclocal/autoopts.m4:22: warning: underquoted definition of AG_PATH_AUTOOPTS

I followed the suggested link and read about extending aclocal.  To fix the underquoted definition errors I put square brackets around XIPH_PATH_VORBIS in line 9 of vorbis.m4.  I also did the same for the appropriate section in ogg.m4 and autoopts.m4.  I don\'t know if this is a solution but it certainly removed the errors.

That leaves me with the integer expression error on line 64 of autogen.sh

I don\'t know if anyone particularly wants me posting this information but I thought sharing knowledge (no matter how flawed my knowledge is ;) ) is better than silence.

Please tell me if I\'m sending people down the wrong path as I don\'t want to make anyones Planeshift life harder than it already is. :)
Title:
Post by: solubacni on January 30, 2005, 07:54:42 am
Quote
Originally posted by Mathious

Planeshift =  http://cvs.sourceforge.net/cvstarballs/planeshift-cvsroot.tar.bz2



You don\'t want this.  Use the CVS:
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/planeshift login
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/planeshift co -P planeshift
Title:
Post by: solubacni on January 30, 2005, 08:07:45 am
I have posted a mini-walkthrough (more like a log of what I did) on how to build planeshift.  I am currently downloading art, so we\'ll see how well it works.

http://muddy.ath.cx/planeshift-install.txt

I will be updating it as I go, so I\'d rather not post it here for the interest of saving myself time in editing two copies.

regards,
solubacni
Title: ....hmmmmmm
Post by: Mathious on January 30, 2005, 08:58:09 pm
Ok, so Im pretty confident with most parts of these instructions now - only problem is i cant get jam to work.

every time I use a jam command I get the error

-bash: jam: command not found

...im guessing this means Ive not installed it correctly?

..can anyone tell me how to install Jam properly?
Title: Can't download X Code
Post by: mrflecko on January 31, 2005, 12:07:35 am
i figured out how to download X Code 1.2, but where\'s 1.5?  I can\'t find it, and I dont\' currently pay for a ADC membership.

Thanks!

EDIT:
*** Please disregard this post, I figured it out, and feel like quite the moron...sorry to waste forum space! ****
Title:
Post by: solubacni on January 31, 2005, 04:25:04 am
Quote
Originally posted by Mathious
Ok, so Im pretty confident with most parts of these instructions now - only problem is i cant get jam to work.

every time I use a jam command I get the error

-bash: jam: command not found

...im guessing this means Ive not installed it correctly?

..can anyone tell me how to install Jam properly?


If you installed jam using fink you have to have /sw/bin in your PATH environment variable.  If you couldn\'t \"see\" jam in fink then you need to add the unstable trees to your /sw/etc/fink.conf.  See fink docs for further info.

Cheers,
solubacni
Title: Missing Packages
Post by: MagicFitz on January 31, 2005, 05:43:26 am
Hey,

I can\'t figure out where to download mysql14-dev, libjpeg-dev and libiconv-shlibs from.

Any help offered would be much appreciated.  These missing libraries might explain some of my problems with compiling Planeshift. ;)
Title:
Post by: solubacni on January 31, 2005, 06:50:01 am
Err... I don\'t think you \"download\" them, per se, but you do \"install\" them with Fink.

i.e. if you have Fink installed
Code: [Select]

fink install mysql14-dev libjpeg-dev libiconv-shlibs


Cheers,
solubacni
Title:
Post by: MagicFitz on January 31, 2005, 07:47:05 am
Thanks for the speedy respone (same day isn\'t something I expected :) ).

The problem I have (I should\'ve been clearer in the first place) is that fink can\'t seem to find these libraries to install.

For mysql14-dev I get a \"no package found for specification mysql14-dev\" and for the other two I get \"no matching version found for libiconv-shlibs/libjpeg-dev.\"

I take it this is a problem peculiar to my situation and no one elses? :(

Maybe I will have to just wait.
Title:
Post by: dfryer on January 31, 2005, 08:11:07 am
Perhaps your fink installation/configuration is wacked?  I know mine usually is...  Have you tried the \"fink list\" command, as in \"fink list libjpeg\" ?  That might tell you what is available.

I am slowly committing fixes that I\'ve made in my own local copy to CVS in order to make things easier for people interested in compiling it from source.

Of course, a whole lotta you would be much happier to not *have* to :)
Title: jam problem
Post by: mrflecko on January 31, 2005, 11:42:13 am
Hi all

I\'m trying to install jam from the link provided early in this thread, but I have no idea how to install it based on the package I installed.  Fink can\'t find \'jam\' (or a number of other packages, for that matter), and I\'m a little lost at this stage without it.

Can anyone help me out?

Thanks!
Title:
Post by: Mathious on January 31, 2005, 07:41:10 pm
Quote
Originally posted by solubacni

If you installed jam using fink you have to have /sw/bin in your PATH environment variable.  If you couldn\'t \"see\" jam in fink then you need to add the unstable trees to your /sw/etc/fink.conf.  See fink docs for further info.

Cheers,
solubacni


nice one - thing thinks should be working fine now - TY for the tip Solubacni!

Edit:
Everything seems to be compiling fine now - just wanna say thanks to all who have contributed to this thread.

And to anyone out there who wants to play PS - get the source code and build - its no walk in the park esp for newbs, but well worth it!
Title:
Post by: MagicFitz on February 01, 2005, 01:00:05 am
I did a little slewthing and you were right Mr. Fryer :)  My Fink config was whacked.  For all those in a similar position to what I was in you need to add

unstable/main

and

unstable/crypto

to the Trees line in your fink.conf file, found in /sw/etc/

It must be that the missing libraries are classified as unstable and as such aren\'t found when Fink searches the stable list. :)

Hope this helps someone!..I\'m off to compile the Planeshift...the wonderful Planeshift of OZ. ;)

EDIT: What a retard....I didn\'t even read solubacni\'s response...which would\'ve saved some time searching through the Fink website.
Title:
Post by: solubacni on February 01, 2005, 03:28:36 am
I\'ve since connected, haphazardly created a character and screwed around for a bit.  Still a bit of work to go before this is playable, I think.  It has recently dawned on me just how huge this project is.  Wow.

Perhaps there ought to be some careful solicitation of professional \"sponsors\" to help make this happen?  Lots of work to do...
Title: ...looks like I spoke too soon
Post by: Mathious on February 01, 2005, 07:03:56 pm
How do I configure the crystal enviroment variable? I seem to get that error after I try to compile anything from Cel onwards....

Edit:
...silly me - just read Solubacni\'s guide to install in its entirety once more - I think I may have found the answers... the stuff in the read me in the support directory right?
Title: Tearing out my hair....
Post by: Mathious on February 01, 2005, 08:14:28 pm
Matt:~/Desktop/PS/planeshift Matt$ ./updater.app/Contents/MacOS/updater
Crystal Space for MacOS/X 0.99 r0 [MacOS/X-powerpc-GCC]
Ported to MacOS/X by Eric Sunshine

NOTIFY: MacOS/X 2D OpenGL driver for Crystal Space 0.99 r0
Written by Matt Reda
WARNING: Could not open driver database file \'/config/gldrivers.xml\'
NOTIFY: OpenGL renderer: ATI Radeon 9200 OpenGL Engine (vendor: ATI Technologies Inc.) version 1.3 ATI-1.3.36
NOTIFY: Using windowed mode at resolution 640x480.
NOTIFY: Pixel format: Color: 0 Alpha: 0 Depth: 0 Stencil: 0 AccumColor: 0 AccumAlpha: 0 MultiSamples: 0
WARNING! Crystal Space performs better in 24 or 32 bit display mode!
WARNING: Shader /shader/std_lighting.xml not available  Failure imminent!
Bus error


The updater starts - then terminal gives me the above..... any thoughts?
Title:
Post by: dfryer on February 01, 2005, 08:17:28 pm
If you\'re operating on the command line, and the directory containing crystal space is  \"/Users/mathious/CS\", then you can use the command \"defaults write NSGlobalDomain CrystalSpaceRoot /Users/mathious/CS\"

The name of your CS folder will probably be different, but that\'s just an example.  Note that this does not actually set the CRYSTAL environment variable, but the mac version of crystal space also uses the \"defaults\" system to find things.

The changes to internallibs.sh are necessary if you\'re using different versions of the shared libraries from me.  Running internallibs.sh is also not necessary if you\'ve compiled it on your own machine and you have all the depedencies installed via fink.

EDIT:

In response to the immediately previous post, either you\'re missing the file or your vfs.cfg is looking in the wrong place for it.  If you\'re relying on Crystalspace in a separate directory, you shouldn\'t have a vfs.cfg in the same folder as your updater.  The vfs.cfg which I mistakenly committed to planeshift cvs is only applicable to a \"packaged\" configuration of planeshift.
Title:
Post by: Mathious on February 01, 2005, 08:27:49 pm
Thanks for the uber-speedy response Daniel, unfortunately I still cant get it going.
I get similar read outs when I try to launch any of the applications - here is what i get trying to launch PsClient.app :-

Matt:~/desktop/ps/planeshift Matt$ ./psclient.app/Contents/MacOS/psclient
Crystal Space for MacOS/X 0.99 r0 [MacOS/X-powerpc-GCC]
Ported to MacOS/X by Eric Sunshine

crystalspace.maploader: Could not get model converter
crystalspace.maploader: Could not get model crossbuilder
ERROR: Failed to load plug-in module `/Users/Matt/Desktop/PS/planeshift/psclient.app/Contents/Resources/opcode.csplugin\'.
Reason: File does not exist (/Users/Matt/Desktop/PS/planeshift/psclient.app/Contents/Resources/opcode.csbundle)
WARNING: could not load plugin \'crystalspace.collisiondetection.opcode\'

crystalspace.canvas.openglcommon.driverdb:
  Could not open driver database file \'/config/gldrivers.xml\'
  WARNING! Crystal Space performs better in 24 or 32 bit display mode!
Bus error

Also: if I remove VFS.cfg from the Planeshift folder terminal returns this :

Matt:~ Matt$ /Users/Matt/Desktop/PS/planeshift/updater.app/Contents/MacOS/updater
Crystal Space for MacOS/X 0.99 r0 [MacOS/X-powerpc-GCC]
Ported to MacOS/X by Eric Sunshine

ERROR: csInitializer::SetupConfigManager failed!
Is your CRYSTAL environment variable set?
Matt:~ Matt$


Im gonna be patient with it though - after all, if I can stand to try and build it 5 times, im sure I can try and figure out what im doing wrong now lol.
But seriously - does anyone know what im doing wrong here?
I think ive followed all the instructions as best as I can...

Edit:
I suppose its important to keep in mind that I (and no doubt others trying to build PS) am simply trying to make sense of instructions. Truth be told I honestly dont know 100% what Im doing, although I am trying my best to understand.
Title:
Post by: dfryer on February 01, 2005, 08:42:26 pm
Try copying the entire CS/data/shader/ and CS/data/config/ folders into planeshift/data.  If folders with those names exist, merge the contents.
Title:
Post by: Mathious on February 01, 2005, 08:53:24 pm
...tried copying the folders - same thing happening with updater:-

Crystal Space for MacOS/X 0.99 r0 [MacOS/X-powerpc-GCC]
Ported to MacOS/X by Eric Sunshine

ERROR: csInitializer::SetupConfigManager failed!
Is your CRYSTAL environment variable set?
Matt:~ Matt$

Edit: Im a dumbass! forgot to pu the vfs.cfg back in the planeshift folder.
Tried re-running the updater and this was the terminal output:-

Crystal Space for MacOS/X 0.99 r0 [MacOS/X-powerpc-GCC]
Ported to MacOS/X by Eric Sunshine

WARNING: could not load plugin \'crystalspace.renderloop.step.generic.type\'
Failed to load plugin crystalspace.renderloop.step.generic.type; pandemonium will ensue.
NOTIFY: MacOS/X 2D OpenGL driver for Crystal Space 0.99 r0
Written by Matt Reda
NOTIFY: Applied: Work around broken ATI point sprites
NOTIFY: OpenGL renderer: ATI Radeon 9200 OpenGL Engine (vendor: ATI Technologies Inc.) version 1.3 ATI-1.3.36
NOTIFY: Using windowed mode at resolution 640x480.
NOTIFY: Pixel format: Color: 0 Alpha: 0 Depth: 0 Stencil: 0 AccumColor: 0 AccumAlpha: 0 MultiSamples: 0
WARNING! Crystal Space performs better in 24 or 32 bit display mode!
Critical files () not found (Server only)
Could not open fontfile /planeshift/data/ttf/verdana.ttf!
Bus error

Edit:
Just tried downloading the replacement VFS.cfg from cvs (as suggested in the \"MacOs Package\" Thread) and PSclient is now double clickable and starts up - although it does not look like it\'s been told how to connect to laanx.
The updater still doesnt work though.

With regard to updating 3.0.0.4 (I know this is sorta in the wrong thread but hey :p ) - I tried running the (my old binary package install) updater and it returns the error that the repository file could not be downloaded.
Just downloading the Full updated package as we speak - eta 7 hours... *yawn*
Title: By the way...
Post by: Mathious on February 01, 2005, 09:25:15 pm
...been meaning to ask about your sig:-
 \"Quidquid latine dictum sit, altum sonatur.\"
....what does it mean?

Edit:
..Scratch that Dfryer - a quick bit of googling explained your sig - very nice!
:D
Title:
Post by: MagicFitz on February 02, 2005, 01:15:06 am
It looks like I may be out of the compilation race guys.

No matter what I do to my copy of Fink (including sacrificing several chickens to the FinkGod) it can\'t seem to find the source code for libjpeg-dev or libiconv-shlibs.

\"fink list\" doesn\'t show them as available packages and neither does the fink website.  I\'ve looked through dselect and apt-get as well (despite them being poor seconds to fink list, IMO) and they don\'t show up there either.

If anyone has any pointers as to where I can get these libraries from.  I\'d be very appreciative otherwise I\'ll just have to wait for the compiled version to be officially released.

Maybe someone could go to their /sw/src/ directory and upload the compressed source code found in there to somewhere on the net for me? ;)  I don\'t, however, expect anyone to do this as its a major hassle.

At least this dusted off my old computer science skills a bit.  Unfortunately it also showed me that by and large they are dead and twitching on the floor. ;)

Good luck to everyone compiling and thanks for all the help.  I\'ll check back every so often to see how people are going.

Your 1 man compilation cheer squad ;),

Fitz
Title:
Post by: dfryer on February 03, 2005, 06:07:41 pm
To be quite honest, I don\'t see libiconv-shlibs either... you could try libiconv-dev, but I don\'t even know what it\'s used for, so you could always press on without it.  If you have some version of libjpeg as well, you should be fine.

Perhaps, in fact, try libjpeg-shlibs and libiconv-dev?

Just a thought :)
Title:
Post by: Mathious on February 05, 2005, 01:35:24 pm
Well I seem to have a working client (ish) - only one problem though, It cant seem to \"see\" the laanx server - anyone know what file I need to edit / what the server address is?
Title:
Post by: solubacni on February 07, 2005, 07:53:23 pm
Quote
Originally posted by MagicFitz
It looks like I may be out of the compilation race guys.

No matter what I do to my copy of Fink (including sacrificing several chickens to the FinkGod) it can\'t seem to find the source code for libjpeg-dev or libiconv-shlibs.


As dfryer said, you probably have that backward.

My fink list for those two packages looks like this:
Code: [Select]

 i      libiconv         1.9.2-11      Character set conversion library
 i      libiconv-bin     1.9.2-11      Executables for libiconv package
 i      libiconv-dev     1.9.2-11      Developer files for libiconv package
 i      libjpeg 6b-16                  JPEG image format handling library
 i      libjpeg-bin      6b-16         Executables for libjpeg package
 i      libjpeg-shlibs   6b-16         Shared libraries for libjpeg package


If those don\'t show up then you need to go to the fink docs at their site and add the unstable branches to your tree in /sw/etc/fink.conf.

Cheers,
solubacni
Title:
Post by: Mathious on May 20, 2005, 01:01:08 pm
Quote
Originally posted by Mathious
How do I configure the crystal enviroment variable? I seem to get that error after I try to compile anything from Cel onwards....


...Just had a go at rebuilding PS - but it\'s been a while, and im getting the same error as above.
It happens after I have built CS, and causes the build of CEL to stop dead in its tracks :(

Any thoughts people?
Title:
Post by: Mathious on May 21, 2005, 07:41:24 pm
....no seriously - how do I configure the crystal enviroment variable?

im on rebuild (from scratch) number 5 now, and I cant see that Im doing anything wrong :(
Title:
Post by: buddha on May 21, 2005, 09:15:41 pm
This would be great as a Fink package, you know.  I wish I knew how to do that.

Are there people working on a general BSD framework?

I wish I could help, Mathious.
Title:
Post by: Mathious on May 21, 2005, 10:26:13 pm
Im gonna start crying...
...I did know how to get round this problem, but I cant for the life of me remember... ah well, back to the drawing board *sniff*
Title:
Post by: dfryer on May 22, 2005, 10:18:30 pm
If you\'re using tcsh, setenv CRYSTAL /your/path/to/CS
if using bash, it\'s something like export CRYSTAL=/your/path/to/CS -if it doesn\'t work, try without the equals sign.
Title:
Post by: Mathious on May 23, 2005, 12:39:13 pm
well I gave it a whirl, but to no avail;

Code: [Select]
configure: error:
*** Crystal Space could not be found or was unusable. The latest version is
*** always available from [URL]http://www.crystalspace3d.org/[/URL]
*** Also, be sure that you have either installed Crystal Space or set the
*** CRYSTAL environment variable properly.
Title:
Post by: legine on May 29, 2005, 01:35:04 pm
Mathious wrote:
Quote

Matt:~/Desktop/PS/planeshift Matt$ ./updater.app/Contents/MacOS/updater
Crystal Space for MacOS/X 0.99 r0 [MacOS/X-powerpc-GCC]
Ported to MacOS/X by Eric Sunshine

NOTIFY: MacOS/X 2D OpenGL driver for Crystal Space 0.99 r0
Written by Matt Reda
WARNING: Could not open driver database file \'/config/gldrivers.xml\'
NOTIFY: OpenGL renderer: ATI Radeon 9200 OpenGL Engine (vendor: ATI Technologies Inc.) version 1.3 ATI-1.3.36
NOTIFY: Using windowed mode at resolution 640x480.
NOTIFY: Pixel format: Color: 0 Alpha: 0 Depth: 0 Stencil: 0 AccumColor: 0 AccumAlpha: 0 MultiSamples: 0
WARNING! Crystal Space performs better in 24 or 32 bit display mode!
WARNING: Shader /shader/std_lighting.xml not available Failure imminent!
Bus error


try to run the updater with the option auto:
./updater.app/Contents/MacOS/updater -auto.

The problem was there are files missing and they come after first update it seems :)

Cheers
legine

EDIT:
try
export CRYSTAL=\"/your/path/to/CS\"
^^
Title: compile server
Post by: named on December 28, 2005, 12:26:43 pm
Have anyone manage to compile the server?
Title:
Post by: dfryer on December 30, 2005, 05:23:08 am
Yes, the server compiles if you have the right version of mysql installed.
Title:
Post by: named on December 30, 2005, 09:51:16 am
Quote
Originally posted by dfryer
Yes, the server compiles if you have the right version of mysql installed.


Can you make yours av. for download?
I cant get the libs from fink to work.

regards,
named
Title:
Post by: backeroo on December 30, 2005, 08:19:28 pm
It might also work with the last mysql-Version ( >5 ).  There\'e a new version of the npc_triggers.sql on cvs where they\'ve worked around the trigger-keyword problem. At least i was able to load all the tables into my mysql 5.0.15 DB. But you have to use also a workaround for the php part :

mysql> SET PASSWORD FOR
    -> \'some_user\'@\'some_host\' = OLD_PASSWORD(\'newpwd\');

as the php-part seems to use a pre-4.1 client-security-protocoll.  The OLD_PASSWORD part forces pre 4.1 authentication.

I still have not everything working yet , but i was able to do a registration/verification with this.

regards

  backeroo
Title:
Post by: named on January 12, 2006, 02:52:16 pm
Quote
Originally posted by backeroo
It might also work with the last mysql-Version ( >5 ).  There\'e a new version of the npc_triggers.sql on cvs where they\'ve worked around the trigger-keyword problem. At least i was able to load all the tables into my mysql 5.0.15 DB. But you have to use also a workaround for the php part :

mysql> SET PASSWORD FOR
    -> \'some_user\'@\'some_host\' = OLD_PASSWORD(\'newpwd\');

as the php-part seems to use a pre-4.1 client-security-protocoll.  The OLD_PASSWORD part forces pre 4.1 authentication.

I still have not everything working yet , but i was able to do a registration/verification with this.

regards

  backeroo


No success so far. Did you manage to do it?
Title:
Post by: backeroo on January 12, 2006, 06:52:35 pm
The www-thing only works partly ( for me, by now).

PS-Server came up without errors, but i havn\'t tested if i can login by now. Too Lazy, sorry.

Where did you crash?

regards

  backeroo

EDIT: Argh, cancle this, I somehow managed to vaporize my dbmysql.csbundle completely, and the Server is asking for it. I\'ve checked everywhere but have no clue where it came from. ( Feeling so stupid, right now ). Does anyone know where this plugin is build?
Title:
Post by: named on February 01, 2006, 10:43:25 pm
I finaly did spot my problems, seams to be the fink library:s.
Is not the standard paths. and did a downgrade of sql.

Have to get this sorted and get back to you.

regards,
named
Title:
Post by: named on February 20, 2006, 09:22:58 pm
When building Planeshift I get:

...failed C++ ./out/macosxppc/debug/plugins/sndsys/renderer/software/drivers/coreaudio/driver_coreaudio.o ...
...skipped sndsyscoreaudio.csbundle for lack of driver_coreaudio.o...

Cant figure it out...

I need help / Ideas.

regards
Title:
Post by: dfryer on February 26, 2006, 07:19:59 am
Which CS date is this from?  The sound plugin (coreaudio for the mac) is broken at the moment anyways, but should compile.  CS as of the 17th has a minor break on the Mac though, there\'s an #if that needs to be changed to #ifdef
Title:
Post by: named on February 26, 2006, 11:32:37 am
Hi dfryer Im glad to get a respond here :-)

Using cal3d-0.9.1, cant compile/build cal3d-0.10.0 or any CS version?
Where do I find the \"#if that needs to be changed to #ifdef\"?

After building Planeshift (ignoring the coreaudio error).
When I start the server I get:

[40mWARNING: could not load plugin \'crystalspace.kernel.vfs\'
 * This likely means that the plugins could not be found.
 If you\'re a user: Check the working directory the application starts from - usually, it is the same as the directory with the executable.
  If in doubt, contact the vendor.
 If you\'re a developer: Check if the CRYSTAL environment var points to the
  correct location - usually the directory CS was built in.
ERROR: csInitializer::SetupConfigManager failed!
Is your CRYSTAL environment variable set?

Could all this weird things be related to gcc-4.0?
(Im on OS X 10.4.4.5 latest Xcode)

Post edited for this reason :
https://sourceforge.net/tracker/index.php?func=detail&aid=1311220&group_id=649&atid=100649

Anyone got experience of this?
Title:
Post by: backeroo on February 26, 2006, 07:11:20 pm
I guess it\' s here :

libs/csutil/radixsort.cpp:57:18: #if with no expression

regards

  backeroo
Title:
Post by: Cha0s on February 26, 2006, 09:44:31 pm
Yes, gcc 4 = bad. Don\'t use it. There\'s a script to change gcc version somewhere on the Mac... Don\'t recall it exactly at the moment. Probably findable in Google...
Title:
Post by: backeroo on February 26, 2006, 10:24:03 pm
gcc_select 3.3 as root or with sudo.

regards

  backeroo
Title:
Post by: named on February 27, 2006, 09:06:38 am
After the change to gcc 3.3 and building Planeshift with ./configure --enable-debug --enable-new-renderer    jam
I get :
warning: `friend\' is not at beginning of declaration
warning: `static\' is not at beginning of declaration
warning: `virtual\' is not at beginning of declaration

Planeshift does compile anyway but of course it wont start, getting:
[40mWARNING: could not load plugin \'crystalspace.kernel.vfs\'

Im lost here.......
What OS ver. are you guys using to make this work? 10.3.8?
Im on.
G5 dual 2.0
8.5g ram
ATi 9600xt

Os X 10.4.5
Xcode 2.2
Title:
Post by: backeroo on February 27, 2006, 09:38:31 pm
Didn\'t say i got it working. But anyway, got almost the same Configuration then you, named (except memory, of course).

I\'m already stuck in finding a working CS/cel, planeshift compiles on.

So, which CS/cel version are the Gurus building on?

regards

  backeroo
Title:
Post by: mizar2 on February 28, 2006, 04:25:59 am
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
(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).
Title:
Post by: named on February 28, 2006, 11:48:52 am
Hi.

Thanks mizar2!!!
Did miss the:
 \"export CSDIR=${~/src/CS} or setenv CSDIR ~/src/CS
export PSDIR=${~/src/planeshift} or setenv PSDIR ~/src/planeshift
export CELDIR=${~/src/cel} or setenv CELDIR ~/src/cel \"

About the libiconv-shlibs , strange should be in fink. Dont really get it how you can compile/build without them.

About the CS/cel version, I use the latest CVS.

I did use these:
dlcompat
http://www.opendarwin.org/projects/dlcompat/
3dcal
http://cal3d.darwinports.com/                                  
libpng
http://www.libpng.org/pub/png/libpng.html
libjpeg
http://ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz

So ... Im gone try again :-)
Title:
Post by: Optagon on April 16, 2006, 11:29:48 am
Hello! Today i could build my PS client from source and played PS as fine.
thank you Mizar for your very kindful instructions!!!

i installed all the libraries and also MySQL using Fink
i once installed cal3d using Darwin Ports but it is out dated. ( i also heard about it in IRC PlaneShift Channel.)
i also built it with gcc 4.0.1

My shell is bash so i wrote ...
export CRYSTAL=~/src/CS
export CEL=~/src/cel
export CSCONFPATH=~/src/cel
export CSDIR=~/src/CS
export PSDIR=~/src/planeshift
export CELDIR=~/src/cel
export CFLAGS=-O3
export CXXFLAGS=-O3
----------------------------
export CPPFLAGS=\"-I/sw/include/mysql -I~/src/cel/include\"
export LDFLAGS=\"-L/sw/lib/mysql\"

once i finished to build PlaneShift, i could run pssetup.app and updater.app from Terminal.
but it was not useful.
and also psclient.app didn\'t contain some important files.
so I manually copied all the files that should be in there from 013 version.
(also copied all files that wasn\'t in other directories but is in 013)

then i ran Updater.jar for updating. it worked fine.
i use PSClientCMD.jar for launching PS client.
Using -fullbright is much smoother than usual for me

*sorry for my bad english
Title:
Post by: mizar2 on April 16, 2006, 04:48:33 pm
The instuctions I listed are the debug configuration so it may be slower then the released build, I\'m playing around with building an optimized PS/CS/cel with gcc 4.0.1 but with the source I chose and my options the center section of the arena is very dark even after relighting--my optimized build of 014b relights everything in 1/10 the time of the last released build of 013 (win some, lose some).

If you run the java updater you get the art & data files, along with the Mac apps now, which mostly work, so you may not be running what you built unless you rebuild PS after updating--not that this is a bad thing.  I haven\'t tested the server but I think it got built in my tests.  I have no idea what the other apps in the PS or CS areas do.

ps: Optagon - bad english, no. It wouldn\'t pass for an English major in school but then most of mine is not up to that standard either.