PlaneShift
Gameplay => Newbie Help (Start Here) => Topic started by: larrydag on June 28, 2004, 05:21:49 am
-
I am a linux newb. I have Suse 9.1 and I am trying to install planeshift. Has anyone done so successfully on Suse 9.1? If so could you please give instructions or how to.
-
Build instructions aren\'t specific to any one distro. Many people have built planeshift on linux, regardless of \"flavor\", ergo, there is this guide: http://www16.brinkster.com/acraig/planeshift/buildmb.html ... Have fun!
josePhoenix
-
slowly but surely i am installing Planeshift. For those of you new to linux (i\'m one of you) I strongly recommend trying to install Planeshift because it is a good tutorial for learning.
Here are my current problems:
1) Jam problems--- I am using Suse 9.1 and it has Boost.Jam installed. It seems like the same as Jam and it lists the jam version as 3.1.4 but when I try to use jam on Crystal Space it get the JamFiles:16: loop and it just stops. I tried to install Jam-2.5 but when I use acraig\'s instructions on \"Jam-2.5$ make install\" it gives me an error message. I\'m stuck on this jam thing.
2)gl3d.so or iGraphics3D error--- I compiled Crystal Space using \"make -k all\" instead of jam. It seemed to work fine except i am getting this common 3D error a lot of folks are getting after i tried acraig\'s \"./walktest --recalc --relight\" script. Some of you guys suggested looking for the gl3d.so file. Well its not there. How do I get that file? Can I just add the file or do i need to recompile Crystal Space?
-
Well, first the obvious question for installing jam... Got root?
Please post the output of make install (I thought you used a binary version of jam to install jam or sumthin... maybe thats just me o_O)
Crystal Space\'s makefile is deprecated IIRC so I would first get jam working... Maybe you should set up an sshd and get someone to install it for you ;) Okay, maybe you don\'t want to give someone that much power >.>
josePhoenix
-
I tried to install Jam-2.5 but when I use acraig\'s instructions on \"Jam-2.5$ make install\" it gives me an error message. I\'m stuck on this jam thing.
The makefile of that tarball doesn\'t have the \"install\" target. Go to the linuxx86.bin subfolder where you compiled jam and copy jam to a location in your path (as root) like /bin or /usr/bin.
Note: when you get Planeshift MB from CVS use -rMB instead of -rMB010, since the first one is more recent (and has a working /spawn ;))
-
All in the name of fun, I\'m trying to build CB on my iBook right now...
Thanks for jogging my memory on the jam install thingy
josePhoenix
-
Here is the error that I was getting
make: *** No rule to make target `install\'. Stop.
I don\'t understand the Got Root? innuendo. Remember you\'re talking to a newbie so you must act like a newbie (you once we\'re yourself :) )
Thanks for all of your guys help. This is a real challenge. Me likey!
-
Originally posted by larrydag
Here is the error that I was getting
make: *** No rule to make target `install\'. Stop.
I don\'t understand the Got Root? innuendo. Remember you\'re talking to a newbie so you must act like a newbie (you once we\'re yourself :) )
Thanks for all of your guys help. This is a real challenge. Me likey!
I was never a newbie! I r teh leet 4 ever! << Ignore that... Ever heard of blood alcohol level? Well this is similar.. just its blood caffeine level!
the command you probably want is (sans quotes, but keep the inner ones) \"su -c \"cp ./bin.linuxx86/jam /usr/bin/\" \". As Karosh pointed out a few posts back, the jam makefile doesn\'t have an install target, so you have to manually copy it :P Discovered this myself just now while building on macosx!
About the got root thing. Make install will always fail (unless you set a prefix when you configure that is writable by you) unless you are root (got root == Did you run su before attempting to make install?) but, since the install target just doesn\'t exist, that has no bearing on this thread ;)
josePhoenix
-
I went to my Root folder and looked in /usr/bin and found the jam file. It is bjam-3.1.4. Isn\'t this a newer version of jam than 2.5. Why is jam looping for me? I am hesitant to copy the jam file Karosh suggests.
-
i\'m using Bison 1.875. Is that a problem?
-
Please edit instead of double posting ;)
if you have a symlink to jam already, then you can safely delete the symlink without harming the executable, and you can easily restore it.
if there isn\'t a symlink, and you just found bjam \'cuz it sounded like jam... then you can do this (no quotes, except the inner singlequotes) \"alias jam=\'/home/foo/development/jam-2.5/bin.linuxx86/jam\' >> ~/.bashrc\". Replace /home/foo/development/ with the path to the jam-2.5 folder.
Another way to do it is to write \"export PATH=/path/to/jam-2.5/bin.linuxx86/:$PATH\" ... But that will not carry over into a new shell, and could be annoying since each time you open a shell you have to type that out... :P
About Bison...
From acraigs instructions...
If you don\'t have a recent version of bison then you will need to get a more up to date file. Check your bison version by:
molblue$ bison -V
If it is not 1.35 you need to get a new file:
molblue$ cd $HOME/molblue/CS/plugins/aws
molblue$ wget -t0 -c http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/crystal/CS/plugins/aws/skinpars.cpp?rev=1.5
aws$ rm skinpars.cpp
aws$ mv skinpars.cpp\\?rev\\=1.5 skinpars.cpp
So, just try it with the current revision of the file you have, if that works then woohoo, the world is a utopia! Otherwise, follow acraig\'s steps...
Cheers!
josePhoenix
-
I assume I need root permissions to do this. I tried to do \"rm jam\" and it game me an error saying I don\'t have the right permissions.
By the way, the jam file says it is an executable of size 117KB. That seem awfully large to be just a file that shows a symlink. Maybe there is more to the symlink than I understand.
Also, thanks jose for hanging in there for me. I will get in the Planeshift community someday and hopefully I can contribute to its success somehow.
-
Why don\'t you rename your self-compiled version of jam to jam2 and copy it then over to /usr/bin? Problem fixed ;)
You will just have to type jam2 instead of jam if you want to compile the sources.
edit: you need to be root to copy it over
-
Well, if he does that he will have a problem with any automatic build scripts that call jam, but if all he\'s planning on doing with jam is compiling cs, cel, and ps then by all means go ahead!
josePhoenix
-
Then rename the boost.jam thingy to jam2 and copy the compiled one over... or just edit the scripts. It\'s not that hard to replace jam with jam2 in a file....
-
Still having problems. I copied my jam symlink file to jam2. Then I copied over jam from /jam-2.5 to /usr/bin. That fixed my jam problems. I then ran jam for CS using the scripts from acraig\'s site.
After walktest this is what I get (note i used -verbose)
larrydag@linux:~/molblue/CS> ./walktest --recalc --relight -verbose
Warning: Failed to load `gl3d\'; reason(s):
/home/larrydag/molblue/CS/gl3d.so: File not found
/home/larrydag/molblue/CS/lib/gl3d.so: File not found
./gl3d.so: File not found
/home/larrydag/molblue/CS/gl3d.so: File not found
Warning: Failed to load `gl3d\'; reason(s):
/home/larrydag/molblue/CS/gl3d.so: File not found
/home/larrydag/molblue/CS/libgl3d.so: File not found
/home/larrydag/molblue/CS/lib/gl3d.so: File not found
/home/larrydag/molblue/CS/lib/libgl3d.so: File not found
./gl3d.so: File not found
./libgl3d.so: File not found
/home/larrydag/molblue/CS/gl3d.so: File not found
/home/larrydag/molblue/CS/libgl3d.so: File not found
WARNING: could not load plugin \'crystalspace.graphics3d.opengl\'
Warning: Failed to load `csjngimg\'; reason(s):
/home/larrydag/molblue/CS/csjngimg.so: File not found
/home/larrydag/molblue/CS/lib/csjngimg.so: File not found
./csjngimg.so: File not found
/home/larrydag/molblue/CS/csjngimg.so: File not found
Warning: Failed to load `csjngimg\'; reason(s):
/home/larrydag/molblue/CS/csjngimg.so: File not found
/home/larrydag/molblue/CS/libcsjngimg.so: File not found
/home/larrydag/molblue/CS/lib/csjngimg.so: File not found
/home/larrydag/molblue/CS/lib/libcsjngimg.so: File not found
./csjngimg.so: File not found
./libcsjngimg.so: File not found
/home/larrydag/molblue/CS/csjngimg.so: File not found
/home/larrydag/molblue/CS/libcsjngimg.so: File not found
crystalspace.system: No iGraphics3D plugin!
Segmentation fault
larrydag@linux:~/molblue/CS>
-
It sounds to me that the plugins failed to build
Try to run jam again and it should skip the already build plugins and show the errors for the failed ones, please post it here
-
here it is. doesn\'t show much.
larrydag@linux:~/molblue/CS> jam
...patience...
...patience...
...found 2854 target(s)...
larrydag@linux:~/molblue/CS>
-
Make sure you have the correct opengl drivers for you graphics card installed. Or those files won\'t build correctly.
-
After running ./configure should I be getting a \"no\" on any of the checking lines?
Here is my output-----
larrydag@linux:~/molblue/CS> ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for flex... flex
checking for bison... bison
checking for ranlib... ranlib
checking for swig... no
checking for luaswig... no
checking for gnumake... no
checking for gmake... gmake
checking whether gmake sets $(MAKE)... yes
checking how to create a directory... mkdir
checking how to create a directory tree... mkdir -p
checking for nasm... no
checking for makedep... no
checking for perl5... no
checking for perl... perl
checking for perl ExtUtils::Embed module... yes
checking for perl DynaLoader module... yes
checking for python... python
checking for Python SDK... no
checking if Python SDK is usable... no
checking how to enable compilation warnings... -Wall
checking how to treat warnings as errors... -Werror
checking how to disable unknown #pragma warnings... -Wno-unknown-pragmas
checking how to disable C++ exceptions... -fno-exceptions
checking if -multiply_defined suppress is needed... no
checking whether to use CPU-specific instructions... yes
checking for code generation flags... -mcpu=pentiumpro -march=i686
checking how to enable optimizations... -O3
checking if g++ recognizes -fomit-frame-pointer... -fomit-frame-pointer
checking if g++ recognizes -ffast-math... -ffast-math
checking how to enable compiler debug output... -g3
checking checking if -I/usr/local/include is usable... yes
checking for pow in -lm... yes
checking for dlopen in -ldl... yes
checking for gethostbyname in -lnsl... yes
checking for pthread... yes
checking for pthread recursive mutexes... PTHREAD_MUTEX_RECURSIVE
checking how to run the C preprocessor... gcc -E
checking for X... no
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for int32... no
checking for windows.h... no
checking for OpenGL... no
checking for libz... yes
checking for libpng... yes
checking for libjpeg... yes
checking for libmng... no
checking for libmikmod... yes
checking for libogg... no
checking for lib3ds... no
checking for libode... no
checking for OpenAL... no
checking for freetype-config... no
checking for FreeType - version >= 2.0... no
checking for libvga... no
checking for libcal3d... no
checking if plugins require main()... yes
checking whether byte ordering is bigendian... no
checking for bool... yes
checking for stdint.h... (cached) yes
checking whether INT64_C works... yes
checking soundcard.h usability... no
checking soundcard.h presence... no
checking for soundcard.h... no
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking for winsock.h... no
checking for unistd.h... (cached) yes
checking for sys/types.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for socket support... yes
checking for socklen_t... yes
checking for C++ `explicit\' keyword... yes
checking for C++ new-style casts... yes
checking if g++ recognizes -fPIC... -fPIC
checking if qsqrt() compiles... yes
checking if qint() functions correctly... no
checking whether to enable Linux joystick support... no
checking build mode... optimize
checking if building plugins... yes
checking if enforcing smart pointer strictness... yes
checking whether to use extensive memory debugger... no
checking for installation directory... /usr/local/crystal
checking whether to cache makefiles... yes
checking whether to auto-refresh cached makefiles... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing include/volatile.h commands
config.status: include/volatile.h is unchanged
config.status: executing config.mak commands
config.status: config.mak is unchanged
config.status: executing cache.mak commands
Refreshing makefile cache.
-
I have a question, are you guys using Suse 9.1 Professional?
Because I have the free version :D
Its terribly hard for me to compile anything, I can\'t seem to instlal the RPM\'s for the gcc compilers. So I can\'t use half the games out there :(
-
Do you have the Suse 9.1 CD\'s? If so use Yast to compile gcc. Go to Yast -> Install and Remove Software then do a search for gcc. Select the gcc check boxes then accept.
-
I downloaded the ISO from the site.
-
alright. here is the solution for Suse 9.1 users.
You have to load the MESA devel stuff from Yast. You can do a search for MESA and you should find it. it will load some xfree86 stuff that you need. this should get crystal space working.
now i have a new problem. its with CEL. i am getting a loop in the ./celtst that says pctimer_wakeup. what does that mean? it seems to be looking for something it can\'t find.
-
CEL works. i believe you have to run ./cetst --relight
Now I\'m having problems with the psclient. I\'m getting errors.
-
Compile or runtime errors? Post them so that we can help you ;)
-
runtime errors with psclient
I am getting the similar iDialogManager errors that seems to be pretty common.
There seems like there are two common solutions to that problem. 1) recompiling CS with \"jam -a\" 2) copying over the cs-config files from CS to CEL
I don\'t know which one will work. Any suggestions?
-
I think you mean this one:
planeshift.application.client: No iDialogManager plugin!
planeshift.application.client: Failed to init app!
Look in your PS dir if there is the file psgui.so. If not run jam again and look out why it didn\'t compile. Then post the related jam errors.
-
psgui.so exists in my planeshift dir
-
Hmmm, it\'s getting complicated....
Try to rebuild CS, CEL and PS with jam -a. Thats the only thing coming up to my mind right now...
-
I got it working! That did the trick Karosh. Just did jam -a on everything. I must have missed a plugin or something.
If any suse users need help let me know.
-
I have a problem with CS. It compiles fine but trying ./walktest results:
nb-dschwan:/u01/games/molblue/CS # ./walktest
Segmentation fault
Edit:
jam -a:
include/qsqrt.h: In function `float qsqrt(float)\':
include/qsqrt.h:86: warning: use of memory input without lvalue in asm operand
2 is deprecated
include/qsqrt.h:86: warning: use of memory input without lvalue in asm operand
3 is deprecated
LinkApplication walktest
csConfigGen cs-config
Chmod1 cs-config
...failed updating 1 target(s)...
...skipped 2 target(s)...
...updated 798 target(s)...
nb-dschwan:/u01/games/molblue/CS # ./walktest
Segmentation fault
gcc is 3.3
-
Try to run the walktest with
./walktest -relight
on the first time
-
Okay that works (a windows opens...hope thats it). I am just checking out the planeshift sources. Then lets see what happens next.
Edit:
Same Error with the psclient. Now i will rebuild everything with jam -a.
-
The walktest is crashing (when run without -relight at the first time) since a while ago, so don\'t worry about it. CEL and PS should work fine.
Edit: The client crashes when run? Post the shell output, preferably with -verbose
-
So lets go. The client gives this output:
dennis@nb-dschwan:/u01/games/molblue/planeshift> ./psclient -verbose
Warning: Failed to load `sndogg\'; reason(s):
/u01/games/molblue/CS/sndogg.so: File not found
/u01/games/molblue/CS/lib/sndogg.so: File not found
./sndogg.so: File not found
/u01/games/molblue/cel/sndogg.so: File not found
/u01/games/molblue/cel/lib/sndogg.so: File not found
/u01/games/molblue/planeshift/sndogg.so: File not found
Warning: Failed to load `sndogg\'; reason(s):
/u01/games/molblue/CS/sndogg.so: File not found
/u01/games/molblue/CS/libsndogg.so: File not found
/u01/games/molblue/CS/lib/sndogg.so: File not found
/u01/games/molblue/CS/lib/libsndogg.so: File not found
./sndogg.so: File not found
./libsndogg.so: File not found
/u01/games/molblue/cel/sndogg.so: File not found
/u01/games/molblue/cel/libsndogg.so: File not found
/u01/games/molblue/cel/lib/sndogg.so: File not found
/u01/games/molblue/cel/lib/libsndogg.so: File not found
/u01/games/molblue/planeshift/sndogg.so: File not found
/u01/games/molblue/planeshift/libsndogg.so: File not found
WARNING: could not load plugin \'crystalspace.sound.loader.ogg\'
aws-debug: Couldn\'t find iGraphics2D plugin!!
Speicherzugriffsfehler
so i tried jam -a with cel, CS and planeshift.
Output in cel:
LinkPlugin pftools.so
C++ ./out/linuxx86/optimize/plimp/message.o
C++ ./out/linuxx86/optimize/plimp/propclas.o
C++ ./out/linuxx86/optimize/plimp/pl.o
C++ ./out/linuxx86/optimize/plimp/entity.o
C++ ./out/linuxx86/optimize/plimp/numreg.o
LinkPlugin plimp.so
C++ ./out/linuxx86/optimize/bltest/behave.o
C++ ./out/linuxx86/optimize/bltest/bl.o
LinkPlugin bltest.so
CelConfigGen cel-config
...updated 30 target(s)...
Output ./celtst --relight
WARNING: could not load plugin \'crystalspace.kernel.vfs\'
Couldn\'t load vfs plugin!
WARNING: could not load plugin \'crystalspace.kernel.vfs\'
WARNING: could not load plugin \'crystalspace.graphics3d.software\'
WARNING: could not load plugin \'crystalspace.engine.3d\'
WARNING: could not load plugin \'crystalspace.font.server.default\'
WARNING: could not load plugin \'crystalspace.graphic.image.io.multiplex\'
WARNING: could not load plugin \'crystalspace.level.loader\'
WARNING: could not load plugin \'crystalspace.utilities.reporter\'
WARNING: could not load plugin \'crystalspace.utilities.stdrep\'
Warning: Failed to load `blpython\'; use \'-verbose\' argument for details.
Warning: Failed to load `blpython\'; use \'-verbose\' argument for details.
WARNING: could not load plugin \'cel.behaviourlayer.python\'
WARNING: could not load plugin \'crystalspace.collisiondetection.rapid\'
No iEngine plugin!
Output in CS:
include/qsqrt.h: In function `float qsqrt(float)\':
include/qsqrt.h:86: warning: use of memory input without lvalue in asm operand
2 is deprecated
include/qsqrt.h:86: warning: use of memory input without lvalue in asm operand
3 is deprecated
LinkApplication walktest
csConfigGen cs-config
Chmod1 cs-config
...failed updating 1 target(s)...
...skipped 2 target(s)...
...updated 798 target(s)...
Output in planeshift:
In file included from src/common/util/texfactory.h:22,
from src/tools/texparse/texparse.cpp:33:
/u01/games/molblue/CS/include/csutil/csdllist.h:25:3: warning: #warning csDLList is deprecated. Please use csList from csutil/list.h
LinkApplication texparse
C++ ./out/linuxx86/ase2spr.o
C++ ./out/linuxx86/spr.o
C++ ./out/linuxx86/ase.o
LinkApplication ase_2_spr
...failed updating 1 target(s)...
...skipped 1 target(s)...
...updated 141 target(s)...
Edit: Output of psclient is verbose now
Edit: So i found one error, rejammed everything. Now i get a Planeshift Windows but it hangs up with the following:
dennis@nb-dschwan:/u01/games/molblue/planeshift> ./psclient
no CEL environment variable set!
Warning: Failed to load `sndogg\'; use \'-verbose\' argument for details.
Warning: Failed to load `sndogg\'; use \'-verbose\' argument for details.
WARNING: could not load plugin \'crystalspace.sound.loader.ogg\'
disabling TCL support
block_size: 8192
Mounting maps: dungeon hydlaa tower podium temple.
planeshift.application.client: Planeshift Molecular Blue
planeshift.application.client: This game uses Crystal Space Engine created by Jorrit and others
planeshift.application.client: 0.97 rdev [Unix-x86-GCC]
crystalspace.font.freefont2: Could not open fontfile /fonts/ttf/arial.ttf!
loading definitions file /planeshift/gui/psgui.def...
load successful (0 windows, 1 skins loaded.)
aws-debug: setting up global AWS palette...
aws-debug: finished palette setup.
planeshift.application.client: psEngine initialized.
Warning: Failed to load `sndogg\'; use \'-verbose\' argument for details.
Warning: Failed to load `sndogg\'; use \'-verbose\' argument for details.
crystalspace.pluginmgr.loadplugin: WARNING: could not load plugin \'crystalspace.sound.loader.ogg\'
LoadSound: Cannot create sound data from file \'/planeshift/art/music/gui/jingle_splash.ogg\'
Couldn\'t create Resource \'splash\'
Warning: Failed to load `plimp\'; use \'-verbose\' argument for details.
Warning: Failed to load `plimp\'; use \'-verbose\' argument for details.
crystalspace.pluginmgr.loadplugin: WARNING: could not load plugin \'cel.physicallayer\'
Couldn\'t load plugin for PlLayer.
Constructing psdWarning: 0x844f978
LoadSound: Cannot create sound data from file \'/planeshift/art/music/maintheme1.0.ogg\'
Couldn\'t create Resource \'mainmenu\'
ChangeBGSong: Sound \'mainmenu\' not found!psAuthenticationClient::Authenticate(Isexxxxx,xxxxxx,0)
planeshift.application.client: PSLoader: step 1: success
Speicherzugriffsfehler
-
Warning: Failed to load `sndogg\'; use \'-verbose\' argument for details.
Warning: Failed to load `sndogg\'; use \'-verbose\' argument for details.
crystalspace.pluginmgr.loadplugin: WARNING: could not load plugin \'crystalspace.sound.loader.ogg\'
Seems like your CS sndogg plugin wasn\'t built. Check if libogg, libvorbis and libvorbisfile are installed.
no CEL environment variable set!
Have you set the export? You need all three of them:
export CRYSTAL=/u01/games/molblue/CS
export CEL=/u01/games/molblue/cel
export CSCONFPATH=/u01/games/molblue/cel
This should be all to do. If it still doesn\'t work you can catch me on the #planeshift channel on irc.freenode net or irc.quakenet.org.
But since you seem to be from germany you can find me on #planeshift.de on irc.quakenet.org too ;)
edit: wrong paths
-
Yes it walks :) But i think i first have to read the manual.
Thank you.
-
What manual are you referring to?