Author Topic: Build in Mac OS X instructions  (Read 2021 times)

AlanOne

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
Build in Mac OS X instructions
« on: July 11, 2003, 08:51:42 am »
I have managed to get the source to compile and run and have written what I did (see link)

http://www.norrington.net/PlaneShift.rtf

Note: I was not paying a great deal of attention to what I was doing so it may be missing bits. I am going to run through my own instructions at the weekend to make sure they work.

At the moment the client lets you make a character but says that it cannot reach the server (this might be the unreachable server, or a bug in the net code - I don\'t know - need a localhost server to test (I get a 400ms ping to it - on ADSL))

I am in the process of creating a wrapper app (just three buttons and a bit of run thread code) that will let you create a distributable, drag it into Applications/double-click kind of, application.

Some feedback on people managing to duplicate my results would be great (esp. if they fix the net connect problem)

Regards

Ben

---------
Note that jam only seems to work for planshift if run from clean - it fails if it is only updating part of the system (not sure why)
« Last Edit: July 11, 2003, 03:56:28 pm by AlanOne »

AlanOne

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
(No subject)
« Reply #1 on: July 22, 2003, 04:29:16 pm »
Warning. I have now found and fixed the bug in the net code. This fix is not in the SourceAndArt.tar.gz. Please do not connect to the server using these instructions (it can take the server offline and that is no fun for anyone).

idapiman

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
Still valid
« Reply #2 on: January 28, 2004, 08:30:22 pm »
I would like to get an OSX build up and running, before I go through these steps I have a few questions.

1) Is the document above still valid?
2) Is this the most up to date information, on building the OSX version?
3) Is there a forum/irc/iChat group that I can ask PS OSX questions to?

Thanks
-idapiman

AlanOne

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
New Instructions soon
« Reply #3 on: January 28, 2004, 09:19:59 pm »
These instructions are so out of date that I would suggest not using them at all. First off you should get your code from the CVS not the SourceAndArt pack as that does not have the fix to the net code (you may crash the server if you use these instructions without the fix - it is just a couple of lines in message.h).*

I will have a try at building it now and write a new set of instructions. I will assume an untouched 10.3 install (with Dev pack) as a start point.

So far. (Not sure this will work)
1. Install Darwin Ports (http://darwinports.opendarwin.org/)
2. /opt/local/bin/port install jam
3..8 ----\"------ libpng zlib jpeg libogg libvorbis freetype (as separate lines)
TODO
9. Get sources
10. Compile
11. Enjoy :-)

---------------------------
*Actually use the Source and Art pack first to see if my instructions work for you. Then switch to the CVS version to help with the next version. Note: MB (source and art) is the only one that can connect to the server. The CVS version is for the next release and you need to setup your own server (something I have never got to compile on Mac OS X - though partly because I refused to install such an old version of MySQL as is requiered.)
« Last Edit: February 03, 2004, 12:27:33 am by AlanOne »

idapiman

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
So far, not good
« Reply #4 on: February 02, 2004, 10:51:29 pm »
I followed the initial steps to get darwin ports and the libs listed.

I then got the latest CS out of CVS and I can get a sort of working walk test, but I get warning that png and gifs are unknown file format.   I did get the libpng and libmng libraries.  

Is it even important that I can\'t run walktest completely?  

Should I just go ahead and build the other projects?  I feel as if I should have CS working correctly before I move forward with PS that needs this for the game.  

More help would be appreciated.

Thanks

dfryer

  • Veteran
  • *
  • Posts: 1070
    • View Profile
(No subject)
« Reply #5 on: February 02, 2004, 11:50:09 pm »
I think you might need to have PNGs working correctly - can you determine why the png loader plugin failed to build?  Looking at the output/log from configure might be helpful...
I\'ve never used darwinports, but I would expect that all the appropriate search paths are added (to find png libs etc.)
Quidquid latine dictum sit, altum sonatur.

AlanOne

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
(No subject)
« Reply #6 on: February 03, 2004, 12:15:17 am »
I had something like this

./configure-jam CPPFLAGS=\"$CPPFLAGS -I/opt/local/include\" LDFLAGS=\"$LDFLAGS -L/opt/local/lib\"

I have started rewriting the instructions to work on 10.3. They are not finished yet but you will find them here

http://www.norrington.net/projects/planeshift/

With the rough draft

http://www.norrington.net/projects/planeshift/Planeshift.rtf

NOTE: These are for the MB release and not the up coming CB release (MB uses an old version of CS which is in the source and art pack - see link)

idapiman

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
CS make walkall errorrs
« Reply #7 on: February 03, 2004, 05:21:55 pm »
When I try to build make the walkall target I get the following questionable output:

make walkall >> mybuild.log
libtool: file: out/MACOS_X/POWERPC/optimize/anonrndbuf.o has no symbols
libs/csutil/csstring.cpp: In member function `csString& csString::RTrim()\':
libs/csutil/csstring.cpp:302: warning: comparison between signed and unsigned
   integer expressions
libtool: file: out/MACOS_X/POWERPC/optimize/memdebug.o has no symbols
make: *** No rule to make target `cspngimg\', needed by `walkall\'.  Stop.

This is with current (as of a couple days ago) CS.    

Is anyone else on OSX 10.3 seeing this?

Thanks

idapiman

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
more errors from make install
« Reply #8 on: February 03, 2004, 05:25:45 pm »
any information on this error?


make install >> mymakeinstall.log
make[1]: *** No rule to make target `cs-config\', needed by `install_all\'.  Stop.
make: *** [install] Error 2


-idapiman

idapiman

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
Fixed one issue
« Reply #9 on: February 04, 2004, 12:57:07 pm »
Quote
Originally posted by idapiman
When I try to build make the walkall target I get the following questionable output:

make walkall >> mybuild.log
libtool: file: out/MACOS_X/POWERPC/optimize/anonrndbuf.o has no symbols
libs/csutil/csstring.cpp: In member function `csString& csString::RTrim()\':
libs/csutil/csstring.cpp:302: warning: comparison between signed and unsigned
   integer expressions
libtool: file: out/MACOS_X/POWERPC/optimize/memdebug.o has no symbols
make: *** No rule to make target `cspngimg\', needed by `walkall\'.  Stop.

This is with current (as of a couple days ago) CS.    

Is anyone else on OSX 10.3 seeing this?

Thanks


I fixed this by adding links to /opt/local/lib and /opt/local/include from /usr/local/ .

The make install still fails with the same message, but I can run walk test successfully (very dark, adjusting the whitepoint doesn\'t seem to do anything, the software renderer looks correct though,  I am on a powerbook 17\")

idapiman

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
Compiling planeshift now
« Reply #10 on: February 04, 2004, 02:42:57 pm »
I at least have CS and cel built to the point that I can attempt to Build PS now.

I\'ll post further questions on the development deliberation board.

AlanOne and dfryer, thanks for the support, I\'ll see ya in the dev forum.

-idapiman

thebryster

  • Traveller
  • *
  • Posts: 11
    • View Profile
Help!!
« Reply #11 on: February 12, 2004, 04:45:21 am »
I am still using jaguar and I can\'t seem to get Planeshift to work on my mac. I keep trying to get CS up but it doesn\'t work. I don\'t know what I am doing wrong.... Can you guys tell me the step buy step play (I also have know idea what you mean on step 3. alanone) Thanks!

AlanOne

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
(No subject)
« Reply #12 on: February 12, 2004, 10:21:40 am »
Step 3 is
/opt/local/bin/port install libpng
/opt/local/bin/port install libz
etc

Also this line might help

defaults write NSGlobalDomain CrystalSpaceRoot $PWD

run it in the CS directory if you want to run any of the apps and they are complaining they cannot find the plugins

Note the new rough draft instructions for 10.3 should also work in 10.2
« Last Edit: February 12, 2004, 10:23:49 am by AlanOne »

thebryster

  • Traveller
  • *
  • Posts: 11
    • View Profile
(No subject)
« Reply #13 on: February 12, 2004, 02:24:32 pm »
Ok thanks alanone! One other thing:  copy /plugins/aws/sl* (4 files) from version 0.96 of CS into CS/plugins/aws/  and edit plugins/aws/Jamfile to reflect (add slp.cpp sllex.cpp to FILES and remove all the lex stuff which make skin*)
I don\'t understand. Should I delete all the skin or just the ones with \"lex\"? Could you post how the file is supposed to look after the changes? and also I am at the g++ step... It says I don\'t have libcssys.a I checked and I don\'t I jammed CS again and it skipped all these other files because I don\'t have libcssys.a(please be patient with me I am very new to this)
« Last Edit: February 12, 2004, 05:01:05 pm by thebryster »

AlanOne

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
(No subject)
« Reply #14 on: February 12, 2004, 07:49:07 pm »
The Jamfile in aws should look like the following

-----

SubDir TOP plugins aws ;

FILES = av3dtxt.cpp av3dtxtm.cpp aws3dfrm.cpp awsadler.cpp awsbarct.cpp
        awsbl.cpp awschkbx.cpp awscmdbt.cpp awscmpt.cpp awscomp.cpp
        awsControlBar.cpp aws.cpp awscspt.cpp awsEngineView.cpp awsfparm.cpp
        awsgbl.cpp awsgrpfr.cpp awsimgvw.cpp awsitmv.cpp awskcfct.cpp
        awskeycn.cpp awslabel.cpp awslstbx.cpp awsMenu.cpp awsmgr.cpp
        awsmled.cpp awsntbk.cpp awsPanel.cpp awsparser.cpp awsprefs.cpp
        awsradbt.cpp awsscrbr.cpp awsscr.cpp awsslot.cpp awsstbar.cpp
        awsstdsk.cpp awsTabCtrl.cpp awstex.cpp awstimer.cpp awstxtbx.cpp
        awswin.cpp slp.cpp sllex.cpp ;
Plugin aws :
        $(FILES)
;
# silence the compiler (we can\'t avoid the warnings in autogenerated code)
C++FLAGS on [ FGristFiles skinlex.o ] += -Wno-unused-function -Wno-unused-label ;
LinkWith aws : csgeom csgfx cssys cstool csutil ;

Help aws : \"Alternate Windowing System plug-in\" ;

----
You can find those 4 files on my site btw. There is no need to delete any files just remove their name from the FILES = list to make it look like the one above.

Not sure what to do about the libcssys.a - it could be a dependency on the aws but I am not sure.