PlaneShift
Support => Technical Help: IN GAME bugs (after loading world) => Topic started by: BashOrk on January 22, 2005, 01:00:51 am
-
Hi!
Planeshift behaves weird when I try to build it under Linux/CVS/Gentoo (tried to write my own automagic ebuild).
When I set $CEL to `cs-config --prefix` planeshifts configure doesn\'t find cel-config and is not able to find the include files as they are installed under /opt/crystal-cvs/include/cel and not (where PS looks for them) /opt/crystal-cvs/include.
So I thought I would be enough to set $CEL to \"/opt/crystal-cvs/bin\" so PS configure can find cel-config and find out about the includedir itself.
This didn\'t work, either!!! So I looked into ./configure and found out that it looks for cel-config at $CEL, where it looks also for the includefiles. I don\'t think cel-config ever lies in the upper directory of include and cel seems to install its includefiles to $prefix/include/cel.
So I think there should be some work done on the configure script so it is able to find cel-config, get the includedir from it and so on.
-
Shouln\'t this be in the developement forum?
-
It\'s a bug or at least a problem...
But... Perhaps you are right, might not be a general CB-problem.
Please move it.
-
It\'s easy once you get used to it. This is how I do it (with starting in /home/user/dev/ as example):
cd ~/dev
cd cal3d
./autogen.sh
./configure
make
sudo make install
export CRYSTAL=$HOME/dev/CS
export CEL=$HOME/dev/cel
export CSCONFPATH=$HOME/dev/cel
cd ../CS
./configure --enable-debug
jam
cd ../cel
./configure --enable-debug
jam
cd ../planeshift
./autogen.sh
./configure --enable-debug --enable-new-renderer
jam
./updater
./psclient
Ready to play ;)
-
This works???
I set CSCONFPATH and CEL to `cs-config --prefix` (what should have the same effect as setting both to $HOME/dev/cel, but gcc gives me errors that it can\'t find it\'s includes. (e.g. Can\'t find file behaviourlayer/SOMEFILE.h)
CRYSTAL is set to /opt/crystal-cvs by a gentoo env.d script.
The actual code is (looks nearly the same for CS and CEL):
src_compile() {
local prefix=$(cs-config --prefix)
export CEL=${prefix}
export CSCONFPATH=${prefix}
./autogen.sh
./configure \\
--prefix=${prefix} \\
--with-cs-prefix=${prefix} \\
$(use_enable debug) || die
jam all || die
}
src_install() {
local prefix=$(cs-config --prefix)
jam -sprefix=\"${D}\"${prefix} install || die
}
P.S. I \"fixed\" this with several symlinks. Works for the moment, but seems a very dirty fix for me.