PlaneShift

Development => Development Deliberation => Topic started by: idapiman on February 04, 2004, 08:05:25 pm

Title: Building PS on mac OSX 10.3
Post by: idapiman on February 04, 2004, 08:05:25 pm
I have been able to build CS, cel, cal3d, (at least to the point that I can run the CS walktest and I can attempt to build PS.

All source is from current CVS gets.

When building PS with jam I get a bunch of skipped steps, and then a bunch of errors.  

...skipped psserver.app for lack of ...
...skipped psserver for lack of psserver.app...
...skipped psclient.app for lack of ...
...skipped psclient for lack of psclient.app...
...skipped pssetup.app for lack of ...
...skipped pssetup for lack of pssetup.app...
...skipped texparse.app for lack of ...
...skipped texparse for lack of texparse.app...
...skipped ase_2_spr.app for lack of ...
...skipped ase_2_spr for lack of ase_2_spr.app...
...skipped updater.app for lack of ...
...skipped updater for lack of updater.app...
...skipped psnpcclient.app for lack of ...
...skipped psnpcclient for lack of psnpcclient.app...

errors from csutli files
starting with
CS/include/csutil/csunicode.h:39:4: #error Unknown wchar_t size.:


Is anyone in the dev team building on OSX?

thanks
-idapiman
Title:
Post by: Xandria on February 05, 2004, 04:46:00 am
I asked Vegeance about it, and here\'s what he had to say:

(19:44:36) Vengeance: There are no regular Mac devs
(19:44:56) Vengeance: We have 3-4 people who sometimes come here and build on Mac and supposedly it works.

Your best bet would be to try to log into IRC (#planeshift on irc.freenode.net) until one of these \"Mac devs\" come on, and ask them what steps need to be taken to get it to work.
Title:
Post by: dfryer on February 05, 2004, 07:51:36 pm
I occasionally build (or try to build) PS for mac to varying degrees of completion.  I just did a fresh checkout of cs, cel, and ps last night, so I\'ll try to do a rebuild (it\'s been a couple months) and see if I can help you.

For the record, I\'m using 10.2.8 and gcc 3.3 - I\'m not sure if 10.3 does anything weird with header files.  By the way, does Crystal Space seem to work \"normally\" for you (i.e. no weird colours...)?

Thanks,
Daniel
Title:
Post by: dfryer on February 05, 2004, 08:19:32 pm
Anonymous CVS as of last night is broken: it needs Eric Sunshine\'s most recent fixes to the mk/jam/macosx.jam file from crystal space.
If you\'re running into stuff like this:

./mk/jam/macosx.jam: line 71: syntax error at keyword }
./mk/jam/msvcgen.jam: line 34: syntax error at keyword {
./mk/jam/msvcgen.jam: line 376: syntax error at keyword }
warning: unknown rule ConstructLibraryTarget
./mk/jam/macosx.jam: line 72: syntax error at keyword }
warning: unknown rule ConstructLibraryTarget
... and more like that

then you need to copy cs/mk/jam/macosx.jam from a very recent copy of crystalspace into planeshift/mk/jam/macosx.jam
Title:
Post by: acraig on February 05, 2004, 08:33:05 pm
dfryer Ok, thanks for the heads up. I will do this when I get home this evening.
Title:
Post by: dfryer on February 05, 2004, 08:52:19 pm
FWIW, I also get these:
AppExe psclient.app/Contents/MacOS/psclient
ld: Undefined symbols:
psContain(csString const&, csArray, csArrayMemoryAllocator > const&)

(I haven\'t looked to see where this is defined)

src/common/psprop/character/pschardata.cpp:62: error: cannot allocate an object
   of type `celPcCharacterData\'
src/common/psprop/character/pschardata.cpp:62: error:   because the following
   virtual functions are abstract:
/Users/dfryer/source/cel/include/physicallayer/propclas.h:221: error:   virtual
   bool iCelPropertyClass::PerformAction(unsigned int, iCelParameterBlock*)

(Is this just a freaky mac build problem, or broken CVS? Once again, I haven\'t looked yet)

and finally, dbmysql.csbundle must be directly linked with libz in order to succeed under Mac OS X

idapiman, I haven\'t encountered your csunicode.h wchar_t problem, all though it rings a bell.  It may be that the ./configure process is slightly off, or some environment variable isn\'t being properly set.  I\'ll have to check and see if I\'ve made any bad and sneaky modifications to my codebase which are causing the problem to be glossed over.

Edit:  Heh, you\'ll have to translate the smilies :)

idapiman: btw, I noticed you were using \"make\" for crystal space.  I believe the jam system is better-maintained (although I\'m not entirely sure)
If you\'re still getting dark rooms in walktest, maybe walktest --relight would help (can\'t remember whether it does that automatically now...)
Title: CS walktest colors....
Post by: idapiman on February 06, 2004, 04:47:00 pm
dfryer,

I don\'t get strange colors when I use walktest, the relight option doesn\'t seem to change the whitepoint at all, but the software renderer looks ok.


I hope to devote some time to tracking down the compile errors, it looks like mine are due to some missing paths or something.  

I\'ll let the forum know what my results are.

-ipdaiman
Title: making progress
Post by: idapiman on February 06, 2004, 07:31:25 pm
I am making progress by editing the configure script to include more of the stuff from the CS configure file.  I also had a different sql install path.   I still have errors, but I feel like I can get this working with a couple hours of work this weekend.

If there are other changes I need let em know, otherwise I\'ll post what I had to change to get a successful build.
Title:
Post by: orogor on February 10, 2004, 01:48:21 pm
Good luck on getting PS working with mac , they are a lot of peoples waiting for it , so i sincerely hope you will succed.

I _strongely_ recommend you to join #planeshift and #crystalspace on the freenode server , because the devs comes here at less once a day and it really easy to catch em.
Title:
Post by: yvendill on February 17, 2004, 11:18:02 am
I am happy than ppl take care of PS on Mac. I am not a Dev but if I can help just tell me.
Title:
Post by: aircows on March 11, 2004, 06:26:17 am
Same here, my Apple is at your disposal.  So long as whatever you want tested doesn\'t completely ruin the system.

EDIT:  yeah, thinking about it, i probably should have put up my system specs too, well here they are, straight from System Profiler :)

Hardware Overview:

  Machine Model:  PowerBook G4 (12 inch)
  CPU Type:   PowerPC G4  (3.3)
  Number Of CPUs:  1
  CPU Speed:   867 MHz
  L2 Cache (per CPU):    256 KB
  Memory: 640 MB (PC2100)
  Bus Speed: 133 MHz
  Boot ROM Version:  4.55f4

GeForce4 MX:

  Type:   display
  Bus:   AGP
  VRAM (Total):  32 MB
  Vendor:  nVIDIA (0x10de)
  Device ID: 0x0179
  Revision ID:    0x00a5
  ROM Revision:   2030

System Software Overview:

  System Version:  Mac OS X 10.3.2 (7D24)
  Kernel Version: Darwin 7.2.0

A tad bit to much if you ask me, but if for some sick reason you actually need more info than that, my email is aircows{AT}yahoo.com
Title:
Post by: Krispy on March 12, 2004, 04:32:06 pm
I too would love to help Beta Test the OS X release. If you need them, here are my system specs:
 
  Machine Model: Power Mac G5
  CPU Type: PowerPC 970  (2.2)
  Number Of CPUs:   2
  CPU Speed: 2 GHz
  L2 Cache (per CPU):  512 KB
  Memory: 1 GB
  Bus Speed:    1 GHz
  System:   Mac OS 10.3.2
  Graphics Card: ATI Radeon 9600 Pro
  Monitor: Viewsonic P95f+b
 
*note* If you\'re looking for a monitor, this one kicks. It can support up to 2048 x 1536 at 60 Hertz, and 1280 x 960 at an amazing 100 Hertz.
And it\'s black!
Title:
Post by: dfryer on March 13, 2004, 10:30:27 pm
Thanks Krispy, some time closer to the CB release (hopefully before, but that\'s up to the devs) I\'d like to get a mac distribution together.  Your machine would give us a pretty good upper limit on the expected performance :)
Title:
Post by: Sonikusan on March 17, 2004, 04:38:45 am
Sign me up, bebe!

G3 @ 800Mhz
ATI RADEON 9500
360Mb Ram

*Anxiety*
Title:
Post by: Oranus on March 19, 2004, 02:44:58 am
Well, as long as we\'re going for Mac OS X sign-ups, I\'d love to test as well. I\'ve got:

Proccessor: G4 800mhz
RAM: 512mb
OS: Mac OS 10.3.3
Graphics: GeForce 4MX

Seeya,

-Oranus
Title:
Post by: JeroMiya on March 24, 2004, 06:14:57 pm
It is not generally allowed to release binaries of CVS. People would complain about the unfinished graphics and blab about it all over the internet and people would lose interest, when in the end I think CB will rock.

Anyway, I\'ve got PS building and running fine on my machine in OSX 10.3.2 and 10.3.3. At one point most of the UI wasn\'t showing up because ignorewindow needs a dummy file to load, but someone said they were addressing that. Also, you always fall through the world when you log in, so you have to /spawn. Other than that, there are still general crashing issues which I don\'t think are specific to OSX, and a serious progressive stalling issue that is specific to OSX when the server /spawns a map. If anyone is experienced with compiling planeshift, debugging from the command line gdb, and with using Apple\'s profiling tools, then I could use some help tracking this problem down. The function that is causing the problem is recursive, and it looks like something is being added to one side of the recursion each frame, but I can\'t say for sure.

BTW: I\'m not an official dev (yet), but I\'ve been trying to do some work to get the mac version up to speed.
Title:
Post by: Cha0s on March 25, 2004, 12:00:50 am
I\'m in, I\'d love to take a look.

Specs:
Speed: 667 TiBook
RAM: 1 GB
Graphics: The default 16 MB ATI RAGE card (forget which one exactly)
OS: 10.3.3
Title:
Post by: aircows on March 25, 2004, 12:23:33 am
What are you using to make Planeshift?  Are you using \"make\" or something like XCode or Codewarrior?
Title:
Post by: dfryer on March 25, 2004, 09:08:50 pm
CrystalSpace uses make or \"jam\"  (Just Another Make, I think) .. I can\'t remember if PS uses make or jam (it\'s pretty much the same, you just type \"make\" or \"jam\" after chanting words in a strange tongue and sacrificing a chicken)

For dynamic projects like PS and CrystalSpace, it\'s almost impossible to keep things like Xcode or codewarrior projects up to date, unless an automated system can be constructed.  It would be possible to make an AppleScript based tool for building projects, but it sounds like a hairly proposition with little benefit.
Title:
Post by: josephoenix on June 30, 2004, 05:41:40 am
Quote
Originally posted by dfryer
(it\'s pretty much the same, you just type \"make\" or \"jam\" after chanting words in a strange tongue and sacrificing a chicken)


Thats funny ^_^
/me chants words in a strange tongue and sacrafices a chicken to reopen the thread...
I am trying to build on OS X 10.3, but Walktest builds as a \".app\" folder and can\'t pass options to it... Also, running it thru the open command as usual seems to keep it from spitting out its usual wealth of debugging info. :P

I\'m trying to build from HEAD (I guess I\'m impatient enough to grab cvs even though there is no art...) and CS and CEL build okay... just that walktest doesn\'t work, and PS\'s configure complains about a missing cs-config :-/ ...

This is what configure spits out when it fails:
Code: [Select]

configure: WARNING: Can not find cs-config in path you provided
no
configure: error:
*** Crystal Space could not be found. The latest version is always available
*** from [URL]http://crystal.sourceforge.net/[/URL]
*** Be sure also that you have either installed Crystal Space or set the
*** CRYSTAL environment variable properly.


I tried playing soothing music and singing to my iBook as I ran configure, but no cigar.

As for the environment var, running export with no args produces this:
Code: [Select]

josephoenix:~/PlaneshiftCB/development/planeshift josephoenix$ export
declare -x CEL=\"/Users/josephoenix/development/PlaneshiftCB/cel\"
declare -x CRYSTAL=\"/Users/josephoenix/development/PlaneshiftCB/CS\"
declare -x CSCONFPATH=\"/Users/josephoenix/development/PlaneshiftCB/cel\"
~the rest is removed for brevity\'s sake~


If anyone could impart some words of wisdom, I could... give them a WhiteThing (tm) (http://www.invisionthings.com/forums/html/emoticons/whitething.gif) Please, I\'m running out of chickens!

josePhoenix
Title:
Post by: Karosh_Steinkatz on June 30, 2004, 04:35:39 pm
Quote

josephoenix:-->~/PlaneshiftCB/development<--/planeshift josephoenix$ export

declare -x CEL=\"/Users/josephoenix/-->development/PlaneshiftCB<--/cel\"


Seems like you have the wrong order of the directories in your exports.

edit: bugfixes
Title:
Post by: josephoenix on June 30, 2004, 08:46:49 pm
Err, oops... When I get access to my iBook again later today, I\'ll see whether that truly was wrong or whether I typed it incorrectly into the post box :-/

Thanks, Karosh!

josePhoenix
Title:
Post by: Karosh_Steinkatz on July 01, 2004, 09:38:28 am
Can I have a WhiteThing (tm) now? :D
Title:
Post by: dfryer on July 02, 2004, 09:05:11 am
jose, to run .app programs from the command line, you do it like this:  ./walktest.app/Contents/MacOS/walktest -with-some-funky-option-thangs

If your environment variables seem to be correctly pointed, try \"jam csconfig\" in the CS directory.  Some times it doesn\'t build by default.

There have been reports of the occasional wierd rendering in CS under 10.3.  I\'m still at 10.2.8, so I can\'t verify whether they\'re card specific.

I don\'t think I\'ve ever set CSCONFPATH... one other thing to do (if you\'re ever launching CS apps *without* the command line) is this:
defaults write NSGlobalDomain CrystalSpaceRoot /whatever/your/path/to/CS/is
This enables apps which are started in a context without the env. vars set up to function correctly (since they can use the NextStep style \"defaults\" system)
Title:
Post by: josephoenix on July 02, 2004, 02:56:43 pm
Thank you, everyone!

for you, Karosh: (http://www.invisionthings.com/forums/html/emoticons/whitething.gif)

for you, dfryer: (http://www.invisionthings.com/forums/html/emoticons/whitething.gif)

josePhoenix
Title:
Post by: Mohegan_Flo on July 12, 2004, 07:49:10 am
Dam my mac is slow i thought it was actually pretty  but here my specs its slow:(lol

Machine Model:    PowerBook G3
  CPU Type: PowerPC 750  (82.2)
  Number Of CPUs:    1
  CPU Speed:   333 MHz
  L2 Cache (per CPU):    512 KB
  Memory: 192 MB
  Bus Speed:  67 MHz
  Boot ROM Version:   151
Title:
Post by: dfryer on July 12, 2004, 09:47:10 am
Mohegan_Flo: well, all computers eventually are surpassed :)  By the time Planeshift is a \"mature\" game, my current computer will be almost useless :)  (of course, it\'s nearly obsolete now, by most gaming standards)
Title:
Post by: Oranus on August 02, 2004, 01:23:51 am
Actually, forget that, I\'ll wait for the easy installer. Not sure I want a bunch of weird install files runing around. Good luck to all of you, and if you need a beta tester for a client version, call me.

-Gabe