Author Topic: Crystal Space compile problems on SuSE 9.1  (Read 1619 times)

GyroTech

  • Wayfarer
  • *
  • Posts: 5
    • View Profile
Crystal Space compile problems on SuSE 9.1
« on: January 03, 2005, 04:18:21 am »
And before anyones says anything, I\'ve been to http://www.planeshift3d.com/wbboard/thread.php?threadid=9344&boardid=1&sid=ccce1f5cbef82aaee3145398820f508f&page=1!!

I\'ve got jam 2.5 (proper jam, not the bjam that SuSE wants) and I can compile other apps without problems (bar the stupid stupid places SuSE puts libraries...).
My problem is although using the steps from http://www16.brinkster.com/acraig/planeshift/buildmb.html, I can compile CS just fine, jam comlpetes with 1050 files updated. The problem comes when running the walktest :-

./walktest --recalc --relight
Warning: Failed to load `glx2d\'; use \'-verbose\' argument for details.
Warning: Failed to load `glx2d\'; use \'-verbose\' argument for details.
Segmentation fault

so when I try adding the verbose option I get :-

./walktest --recalc --relight -verbose
Warning: Failed to load `glx2d\'; reason(s):
/home/tim/psdev/CS/glx2d.so: File not found
/home/tim/psdev/CS/lib/glx2d.so: File not found
./glx2d.so: File not found
/home/tim/psdev/CS/glx2d.so: File not found
Warning: Failed to load `glx2d\'; reason(s):
/home/tim/psdev/CS/glx2d.so: File not found
/home/tim/psdev/CS/libglx2d.so: File not found
/home/tim/psdev/CS/lib/glx2d.so: File not found
/home/tim/psdev/CS/lib/libglx2d.so: File not found
./glx2d.so: File not found
./libglx2d.so: File not found
/home/tim/psdev/CS/glx2d.so: File not found
/home/tim/psdev/CS/libglx2d.so: File not found
Segmentation fault

and sure enough, I cannot find a glx2d anywhere. I have, however, managed to find wht seems to be the source and header files for the library in /plugins/video/canvas/openglx
So it seems there are there and not being made. Are there any commands I could try to find out why it seems to be skipping this rather important file??

I really am interested in PS so I would appriciate any help given.

TIA

Gyro

Fish

  • Hydlaa Citizen
  • *
  • Posts: 200
    • View Profile
(No subject)
« Reply #1 on: January 03, 2005, 06:06:00 am »
Install mesa_devel In YaST ( install and remove software )
Not mesa
Run jam again.

It worked for me.
Doing things just for the halibut.

GyroTech

  • Wayfarer
  • *
  • Posts: 5
    • View Profile
(No subject)
« Reply #2 on: January 03, 2005, 01:25:39 pm »
both mesa and mesa_devel are installed on my system.
Did you mean /only/ mesa_devel should be installed??

Fish

  • Hydlaa Citizen
  • *
  • Posts: 200
    • View Profile
(No subject)
« Reply #3 on: January 03, 2005, 03:54:42 pm »
I am at SuSE 9.0
No both are >probably?< OK.


This is the required files to build CS.

Extracted from On line Documentation for CS.
See http://www.crystalspace3d.org/tikiwiki/tiki-index.php?page=Documentation


Z Library
zlib is used for compression and archiving.
http://www.gzip.org/zlib/

PNG Library
libpng is used for loading Portable Network Graphics image files.
http://www.libpng.org/pub/png/libpng.html

JPEG Library
libjpeg is used for loading Joint Photographics Experts Group image files.
http://www.ijg.org/files/

Jam
Jam is a `make\' replacement with a much more intuitive and expressive file format. Internally, the Crystal Space build system is predicated upon Jam, however Crystal Space also features a `make\' emulation layer which allows you to build and install the project using `make\', so there is no strict need to download or install Jam. If, however, you plan to work on the Crystal Space build system or create your own external project based upon Jam, then you can download it from this location:
http://ftp://ftp.perforce.com/jam/
Jam documentation can be found at the Jam home page; see `Jam.html\', `Jambase.html\', and `Jamfile.html\'.
http://www.perforce.com/jam/jam.html
Jam is included pre-built in the `cs-win32libs\' convenience package (see cs-win32libs), so Mingw and Cygwin users who use that package get Jam for free. Other users will want to build it from source code. For such users, once Jam has been downloaded, follow these simple steps to build and install it. These instructions illustrate Jam 2.5, which is current as of this writing.
 
unzip jam-2.5.zip
cd jam-2.5
make
./jam0 install
If you are a Unix user, then you will probably need to have administrator privilege to install the executable since it will be installed as `/usr/local/bin/jam\'. To gain administrator privilege, you can use the `sudo\' command:
 
sudo ./jam0 install
If you want to install Jam at a location other than the default, then set the `BINDIR\' variable to the directory in which you want it installed (this example shows it being installed in the user\'s private `$HOME/bin\' directory):
 
./jam0 -sBINDIR=$HOME/bin install

The Netwide Assembler
NASM is used by Crystal Space on certain platforms for assembly language routines, for performance enhancement. This is optional.
http://nasm.sourceforge.net/

ASCII Art Library
This library is used for 2D rendering in text mode. This is optional and only needed for fun. Currently a modified version of aalib is required and can be downloaded from:
http://aa-project.sourceforge.net/

Maps: Needed if you want to see examples of Crystal Space at work. A few data files are provided in the Crystal Space release itself, but more can be downloaded from http://ftp://ftp.sunsite.dk/pub/projects/crystal/. Most files can just be placed in the CS/data directory.


I got as far as getting a blank screen. I ran out of time. I need to get the Maps code loaded so if you get this to work I will be :D and asking you for tips. Maybe we can write a quick and dirty SuSE howto on CS and PlaneShift. SuSE seams to have extra requirements not covered. I have compiled CS with no problems in the past.

I found that is helped to blow out CS and try again at one point. It seamed to help. However if I get it to work I will test that out to see if I an just fooling my self.
« Last Edit: January 03, 2005, 03:57:38 pm by Fish »
Doing things just for the halibut.

confused

  • Hydlaa Citizen
  • *
  • Posts: 269
    • View Profile
(No subject)
« Reply #4 on: January 03, 2005, 05:33:48 pm »
This looks complicated, definitely await for Linux binaries.

Fish

  • Hydlaa Citizen
  • *
  • Posts: 200
    • View Profile
(No subject)
« Reply #5 on: January 03, 2005, 07:07:46 pm »
confused

Since at last count there is over a 1,000 Linux distributions out there, many with several versions still being supported.  And, seeing at least 6 distributions that I\'ve seen being discussed, each with several variance, it might be awhile before you get your RPM.  As far as I can tell, learn how to compile it or use windows.  

I use windows and it works fine.  Just trying to learn SuSE though :D.
Doing things just for the halibut.

confused

  • Hydlaa Citizen
  • *
  • Posts: 269
    • View Profile
(No subject)
« Reply #6 on: January 03, 2005, 07:48:50 pm »
MB, even though I never played it I did end up with the Linux binaries that started up with no problems, required no installation (just unpacked it into a directory in the home directory) except for a link that someone provided on the forums.

Could someone write an Idiots Guide for a Non-Programmer to Compile PS CB., that is it included everything that is needed to compile PS and CS, in the correct order.

GyroTech

  • Wayfarer
  • *
  • Posts: 5
    • View Profile
(No subject)
« Reply #7 on: January 03, 2005, 09:01:15 pm »
Quote
Originally posted by Fish
This is the required files to build CS.

--snip--
ASCII Art Library
This library is used for 2D rendering in text mode. This is optional and only needed for fun. Currently a modified version of aalib is required and can be downloaded from:
http://aa-project.sourceforge.net/

Maps: Needed if you want to see examples of Crystal Space at work. A few data files are provided in the Crystal Space release itself, but more can be downloaded from http://ftp://ftp.sunsite.dk/pub/projects/crystal/. Most files can just be placed in the CS/data directory.


I got as far as getting a blank screen. I ran out of time. I need to get the Maps code loaded so if you get this to work I will be :D and asking you for tips. Maybe we can write a quick and dirty SuSE howto on CS and PlaneShift. SuSE seams to have extra requirements not covered. I have compiled CS with no problems in the past.

I found that is helped to blow out CS and try again at one point. It seamed to help. However if I get it to work I will test that out to see if I an just fooling my self.


The only thing i don\'t have from your list was NASM, which is now installed and I\' jamming the entire source tree once again...

I hve noticed, however, in my ./configure-jam output, it can not find the GLX headers\\libraries... since the missing file for me is glx2d, this may well be the problem  :))  But, with SuSE being SuSE, I have no idea where they might be hidden away...

Anyone else know??

Nedhrys

  • Traveller
  • *
  • Posts: 13
    • View Profile
(No subject)
« Reply #8 on: January 04, 2005, 03:26:48 pm »
hi, confused

i agree 150% - not clued-up enough yet to figure all this stuff out...but as an old rpg-fan, i can\'t wait to get started.

have a cool one,

nedhrys