Author Topic: Quick Reference (The sequel) / How to make Linux binaries  (Read 3115 times)

malverian

  • Hydlaa Resident
  • *
  • Posts: 56
    • View Profile
Quick Reference (The sequel) / How to make Linux binaries
« on: May 04, 2002, 04:00:56 pm »
1) First off, to the Linux users, to install Planeshift:

cvs -z3 -d:pserver:anonymous:@cvs.crystal.sf.net:/cvsroot/crystal co CS
cd CS

### NOTE! You will need to edit mk/user.mak and uncomment the mp3, freefont, and and freefnt2 plugins.

make linux MODE=debug
make all
su -c \'make install\'
export CRYSTAL=/usr/local/crystal
cd ..
cvs -z3 -d:pserver:anonymous:@cvs.cel.sf.net:/cvsroot/cel co cel
cd cel
cp $CRYSTAL/bin/cs-config ./
./autogen.sh
./configure
make
export CEL=`pwd`
export CSCONFPATH=$CEL
cd ..
cvs -z3 -d:pserver:anonymous:@cvs.planeshift.sf.net:/cvsroot/planeshift co planeshift
cd planeshift
./autogen.sh
./configure
make
for a in `find $CEL -name \"*.so\"`; do cp $a ./; done

# ANOTHER NOTE: You will need to get the map file from the windows distribution. It\'s suggested you copy the entire \'art\' directory. I have gzipped it for convenience here: http://lockless.dyndns.org/~malverian/planeshift/needed/art.tar.gz

./psclient
# Or: src/client/psclient

2) If you\'re having alot of slowdown, edit your psclient.cfg file and change the resolution down to perhaps 800 x 600. You can also comment out the loading of wav and mp3 modules.

3) If you have no hardware OpenGL on your video card.. use Software mode.
« Last Edit: May 06, 2002, 07:01:11 pm by malverian »

MatzeB

  • Hydlaa Resident
  • *
  • Posts: 68
    • View Profile
(No subject)
« Reply #1 on: May 04, 2002, 04:32:41 pm »
I\'m also working on rpm packages. But I\'ve got 1 big problem at the moment. There seems to be a problem with Crystal Space OSS sound driver and nvidia opengl drivers (sound driver uses alarm signal for timing, which seems to be not compatible with nvidia opengl driver...) that lead to crashes after a bit of moving around. So either disable sound or opengl if you\'re using it on linux...
We\'re working on the problem.

jorrit

  • Developers
  • Hydlaa Citizen
  • *
  • Posts: 497
    • View Profile
(No subject)
« Reply #2 on: May 04, 2002, 04:56:57 pm »
Hmm... I\'m using sound (OSS) and nvidia drivers on linux together just fine (with PlaneShift). However this is a rather old version of the nvidia drivers.

Greetings,
Project Manager of Crystal Space, CEL, CrystalBlend and Crystal Core. Please support Crystal Space with a donation.

MatzeB

  • Hydlaa Resident
  • *
  • Posts: 68
    • View Profile
(No subject)
« Reply #3 on: May 04, 2002, 06:59:40 pm »
I\'m running in optimized mode, in debug it seemed fine. I\'m using NVidia drivers v. 2880

Midivar

  • Traveller
  • *
  • Posts: 42
    • View Profile
(No subject)
« Reply #4 on: May 04, 2002, 06:59:45 pm »
Quote

cvs -z3 -d:pserver:anonymous:@cvs.crystal.sf.net:/cvsroot/crystal


Note that the : after anonymous is one too many.

malverian

  • Hydlaa Resident
  • *
  • Posts: 56
    • View Profile
(No subject)
« Reply #5 on: May 05, 2002, 04:55:10 am »
Note that you are wrong Midivar. In fact the trialing : is for password. And since annonymous has no password, it is empty. This prevents you from having to cvs login before checking out a module. Perhaps you should know what you\'re talking about before trying to prove someone wrong :)

malverian

  • Hydlaa Resident
  • *
  • Posts: 56
    • View Profile
(No subject)
« Reply #6 on: May 05, 2002, 05:51:45 pm »
BUMP, I edited the guide a bit. Good luck to all will-be Planeshift users :)

Midivar

  • Traveller
  • *
  • Posts: 42
    • View Profile
(No subject)
« Reply #7 on: May 06, 2002, 02:08:23 am »
Quote
Originally posted by malverian
Note that you are wrong Midivar. In fact the trialing : is for password. And since annonymous has no password, it is empty. This prevents you from having to cvs login before checking out a module. Perhaps you should know what you\'re talking about before trying to prove someone wrong :)


I agree that I don\'t know what I was talking about-- I rarely use CVS, in fact only to check out snapshots from interesting projects like PS. But, with the : after anonymous my cvs complained, while without the : it worked fine. So, for my case, I was right, somehow.

malverian

  • Hydlaa Resident
  • *
  • Posts: 56
    • View Profile
(No subject)
« Reply #8 on: May 06, 2002, 11:28:01 am »
What version of CVS do you have?

Notice to any interested.. I\'m going to be releasing linux Planeshift binaries on my webserver and linking to them in a new topic.. likely named \'Planeshift Linux Binaries\'.

Morp

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
(No subject)
« Reply #9 on: May 06, 2002, 04:16:07 pm »
Hey, Malverian. It\'s me. You know me. And it\'s so typical my first post on this forum would be correcting you ;)

Anyway, you made a teensy ommission which really really messes things up with your \"script\".

Here are some corrections:

Correction 1:
You said:
You need to uncomment freefont AND freefnt2.

You really need:
Only one of them should be uncommented. Most people only need freefnt2. However, if you use freefnt2 psclient.cfg must be edited to use \"default\" font server, not the freefont one.


Correction 2:
You put:
make
export CEL=`pwd`
cd ..

You actually need:
make
export CEL=`pwd`
su -c \"cp cel.cex $CRYSTAL\"
cd ..


Cheerio!
« Last Edit: May 06, 2002, 04:32:58 pm by Morp »

Midivar

  • Traveller
  • *
  • Posts: 42
    • View Profile
(No subject)
« Reply #10 on: May 06, 2002, 07:10:19 pm »
My cvs is rather old... version 1.11
But hey, by all means... make those binaries available. Saves me fixing that compiler error. My gcc is rather old, too. :)

Midivar

  • Traveller
  • *
  • Posts: 42
    • View Profile
(No subject)
« Reply #11 on: May 06, 2002, 07:13:15 pm »
Oh, and specifically, cvs says:

> cvs -z3 -d:pserver:anonymous:@cvs.crystal.sf.net:/cvsroot/crystal co CS
Fatal error, aborting.
anonymous:: no such user
cvs checkout: authorization failed: server cvs.crystal.sf.net rejected access to /cvsroot/crystal for user anonymous:
cvs checkout: used empty password; try \"cvs login\" with a real password

> cvs -z3 -d:pserver:anonymous@cvs.crystal.sf.net:/cvsroot/crystal co CS

This works just fine.

Molybdenum

  • Wayfarer
  • *
  • Posts: 3
    • View Profile
windows compile
« Reply #12 on: May 07, 2002, 01:32:29 am »
I want to tinker witrh source, and probably make it quite a bit worse, but what is the main app file? and what are the libs and include files neede?
« Last Edit: May 07, 2002, 01:34:31 am by Molybdenum »

xtrax

  • Wayfarer
  • *
  • Posts: 1
    • View Profile
(No subject)
« Reply #13 on: May 27, 2002, 06:08:53 pm »
Get an error after the first make all command;
*-------------------------------------------------------------------------*
  Building Crystal Script Python plug-in
  Building for LINUX/GCC/X86 in debug mode
*-------------------------------------------------------------------------*
\\
g++ -Wl,-shared -Wl,-soname -Wl,cspython.so -o cspython.so out/LINUX/X86/debug/cs_pyth.o out/LINUX/X86/debug/cspython.o out/LINUX/X86/debug/pytocs.o -lcsgeom -lcssys_D -lcsutil -lcssys_D -lcsutil -ldl -lm -lz  -g3 -Lout/LINUX/X86/debug/ -L/usr/lib/python2.2/config -L/usr/lib/python2.2 -lpython2.2  -lpthread -lutil \\

/usr/i386-slackware-linux/bin/ld: cannot find -lpython2.2
collect2: ld returned 1 exit status
make[1]: *** [cspython.so] Error 1
make: *** [cspython] Error 2

I\'ve just installed the newest Python version, but that didn\'t work.

Any ideas?