PlaneShift

Development => Development Deliberation => Topic started by: TecSoft on February 08, 2006, 02:02:51 am

Title: Problems with MinGW
Post 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?
Title:
Post by: Toadhead on February 09, 2006, 06:53:21 pm
Quote
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!
Title:
Post by: Xordan on February 09, 2006, 07:46:37 pm
Sounds like you didn\'t set your $CRYSTAL var.
Title:
Post by: DaveG on February 09, 2006, 11:35:40 pm
Quote
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:
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)
Title:
Post by: TecSoft on February 10, 2006, 12:54:23 am
Thanks for your help. Everything works now.