Author Topic: Planeshift has a weird way to search cel under linux when doing cvs bu  (Read 560 times)

BashOrk

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
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.
« Last Edit: January 22, 2005, 01:01:17 am by BashOrk »

supergrover

  • Traveller
  • *
  • Posts: 29
    • View Profile
(No subject)
« Reply #1 on: January 22, 2005, 01:07:40 am »
Shouln\'t this be in the developement forum?

BashOrk

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
(No subject)
« Reply #2 on: January 22, 2005, 01:12:25 am »
It\'s a bug or at least a problem...
But... Perhaps you are right, might not be a general CB-problem.
Please move it.

Karosh_Steinkatz

  • Hydlaa Citizen
  • *
  • Posts: 486
    • View Profile
(No subject)
« Reply #3 on: January 22, 2005, 01:17:39 am »
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 ;)


Back to Planeshift again \\o/

BashOrk

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
(No subject)
« Reply #4 on: January 22, 2005, 01:34:35 am »
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):
Code: [Select]
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.
« Last Edit: January 22, 2005, 02:52:40 am by BashOrk »