PlaneShift
Gameplay => General Discussion => Topic started by: confused on January 08, 2005, 11:51:15 am
-
I did the following
Executing the commands manually of the Linux auto-installer script (http://www.planeshift3d.com/wbboard/thread.php?threadid=12987&boardid=13&styleid=3) due to that the CVS downloads did not complete.
I used the following commands:
For cal3D:
./autogen.sh
./configure
make
make install
For CS:
./configure --enable-new-renderer
jam
make install
export CRYSTAL=/usr/local
echo $CRYSTAL
walktest --relight
edited .bashrc of user account to add the export path
For CEL
./autogen.sh
./configure --enable-new-renderer --disable-jamtest
jam
export CEL=/usr/local
echo $CEL
edited .bashrc of user account to add the export path
For PS CB
./autogen.sh
./configure --enable-new-renderer
Obtain the following error, PS CB does seem to find cs-config indicating $CRYSTAL is set correct but usage of cs-config seems incorrect.
===================================================
./configure --enable-new-renderer
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 file name... 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 if -shared is accepted... -shared
checking if -soname is accepted... yes
checking for install... install
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for socklen_t... yes
checking for stdint-types... found in stdint.h
creating include/psstdint.h - (just to include stdint.h)
checking for Crystal Space - version >= 0.99... Unknown lib: cel
Usage: cs-config [OPTIONS] [LIBRARIES]
Options:
[--prefix]
[--exec-prefix]
[--version]
[--long-version]
[--libdir]
[--includedir]
[--libs]
[--cflags]
[--cxxflags]
[--makevars]
[--help]
Libraries:
csutil
csgeom
csgfx
cstool
csws
Note that the Crystal Space directory is detect by looking at the CRYSTAL
environment variable. Make sure this variable is set correctly.
Unknown lib: cel
Usage: cs-config [OPTIONS] [LIBRARIES]
Options:
[--prefix]
[--exec-prefix]
[--version]
[--long-version]
[--libdir]
[--includedir]
[--libs]
[--cflags]
[--cxxflags]
[--makevars]
[--help]
Libraries:
csutil
csgeom
csgfx
cstool
csws
Note that the Crystal Space directory is detect by looking at the CRYSTAL
environment variable. Make sure this variable is set correctly.
no
configure: error:
*** Crystal Space could not be found. The latest version is always available
*** from http://crystal.sourceforge.net/
*** Be sure also that you have either installed Crystal Space or set the
*** CRYSTAL environment variable properly.
-
First - you should compile crystalspace with cal3d support:
(add option --with-libcal3d=path_to_your_cal3d_dir when configuring crystalspace). Second - you should set some environment variables:
+ CRYSTAL (path to your crystalspace dir)
+ CSCONFPATH (path to your cel dir)
+ CEL (same as above)
If you encounter problems with cal3d after launching planeshift, ensure that you have a path to the lib dir in your cal3d installation in LD_LIBRARY_PATH environmental variable.
-
CS did pickup the cal3d headers and libs, as they were installed in the default location /usr/local
Only variable I have not set is CSCONFPATH
Even after setting the CSCONFPATH=/usr/local, I still obtain the above error.
If I change CRYSTAL to anything other than /usr/local walktest fails to start.
-
OK, found the problem!
It is CEL actually. That is why cs-config is throwing out errors.
There is no make install for CEL as for CS to install the build files to the correct locations in /usr/local/, such as /usr/local/bin/, /usr/local/include/, /usr/local/lib/ and /usr/local/share/.
The README file stops at jam command.
How does one install the CEL build files?
EDIT:
I deleted the CEL sources and retrieved it from the CVS again.
./configure --enable-new-renderer (no errors)
jam
celtst -relight (with a man model that animates as you move, also no visible defects could be seen)
./cel-conf --prefix (returns /usr/local)
Checked installation location (/usr/local) and nothing appears in the obvious places /usr/local/bin/, /usr/local/include/, /usr/local/lib/ and /usr/local/share/.
jam does not seem to do any installation of files, nor does ./configure create any makefiles for installing CEL file to either the default (/usr/local) or --prefix=???? locations. What files must go where in order to get other applications that make use of CEL to compile and run correctly? As one must do the installation part of CEL building manually.
I really want to join in the fun. :(