PlaneShift
Development => Development Deliberation => Topic started by: TecSoft on February 08, 2006, 02:02:51 am
-
Hello everyone. I compiled Crystal Space but when I try to do ./configure in /d/PlaneShift_Source_Code/planeshift (my planeshift source dir) it says Crystal Space libraries aren\'t there. They aren\'t found. What can I do to fix this?
-
it says Crystal Space libraries aren\'t there
This doesn\'t mean the Crystal Space libraries aren\'t there, it means the linker cannot find the libraries required.
First locate the path to these library files. Next (assuming you are using Visual Studio 2003 .NET), go to Tools>Options>Projects>VC++ Directories and select: (Platform: W32, Show directories for: Libary files).
Next add the path to the library files, for example \"C:\\Crystal Space\\lib\".
It could also be that the lib file is required but you havent linked it with your project. In that case go to Project>[ProjectName] Properties>Linker>Input and add the name of the library file to the \"Additional Dependencies\" list.
Hope this helps.
edit: oopsie, stupid me. I see you are using the MingW compiler. So what IDE are you using? If you are just using the free MingW compiler with no IDE you probably need to use the \"-LC:\\Crystal Space\\lib\" option while compiling, or set the lib directory as system variable (read some info in how to do this here: http://www.wilsonmar.com/1envvars.htm ). I cant help you too much with this. I can realy recommend you to quit using MingW and pay some money for a good professional IDE/compiler like Visual Studio. I\'m not saying MingW is bad (some commercial game studios even use MingW), i\'m just saying it would be much easier for a new programmer to use MS VC++.
Good luck!
-
Sounds like you didn\'t set your $CRYSTAL var.
-
Originally posted by Toadhead
I can realy recommend you to quit using MingW and pay some money for a good professional IDE/compiler like Visual Studio.
No one should ever have to pay for software. (Besides, I think there\'s a free version of MSVC.) Regardless, telling someone to go out and buy something instead of helping is just arrogant.
TecSoft: I\'ll repeat what I told you on IRC:
- Set your environmental variables:
export CEL=/c/development/cel
export CRYSTAL=/c/development/cs
export CSCONFPATH=/c/development/cel
- Compile Cal3d:
cd /c/development/cal3d
autogen.sh
configure --enable-debug --prefix=/c/development/cal3d
make all
make install
- Compile CS:
cd /c/development/cs
configure --enable-debug --with-cal3d=/c/development/cal3d
jam clean
jam cs-config libs plugins
- Compile CEL:
cd /c/development/cel
configure --enable-debug
jam cel-config libs plugins
- Compile PS:
cd /c/development/planeshift
autogen.sh
configure --enable-debug --with-mysqlclient=/c/development/mysql --with-cal3d=/c/development/cal3d
jam
If you\'re recompiling, I\'d reccomend doing a \"jam clean\" (or with Cal3d a \"make clean\"; though that doesn\'t change much) to start fresh, most of the time. Obviously, you\'ll have to change the paths to you own, and if you\'re not building the server you won\'t need the mysql path. Building in debug mode is also optional; I\'d recommend against it it you\'re using a slower computer, or you\'re just not going to need it.
If you\'re really lazy (like me) you can just make a script with all this, and dump it in your home dir. (c:\\MinGW\\msys\\home\\[user] usually; scripts are *.sh or no extension)
-
Thanks for your help. Everything works now.