SFML community forums

Help => General => Topic started by: Srejv on November 27, 2007, 06:27:49 pm

Title: Compiling the libs
Post by: Srejv on November 27, 2007, 06:27:49 pm
I've been trying to compile the libaries using codeblocks (got the latest stuff from svn), but at first it depened on devIL, so I removed that, but now it only compiles the debug libs.  :(

What to do?
Title: Compiling the libs
Post by: Srejv on November 27, 2007, 10:11:04 pm
Okay, I found what was wrong. I had chosen "Debug" as target build. :) My bad.
Title: Compiling the libs
Post by: Srejv on November 27, 2007, 11:01:37 pm
Okay, so I've built the static libraries (for MingW), and now I'm trying to compile a simple window application. I get reference errors to the opengl lib from the graphics lib. :/ Also getting reference errors to win32 specific stuff.

I dunno what to do.  :(
Title: Compiling the libs
Post by: Laurent on November 28, 2007, 03:14:52 am
In static build, the external libraries are not linked automatically, so you have to do it in each program using SFML.

To include the external libraries directly into the SFML ones, like I do, you would have to do an extra-step using some Linux utilities (basically it just consists of unpacking the static libraries and adding their contents to the SFML ones -- gcc libs are just archives of object files). Unfortunately, I still haven't found the way to integrate it as a post-process step into the compiling, so you have to download the utilities and do it manually. You can find those utilities in Cygwin, for example.
Title: Compiling the libs
Post by: Srejv on November 28, 2007, 04:34:10 pm
Quote from: "Laurent"
To include the external libraries directly into the SFML ones, like I do, you would have to do an extra-step using some Linux utilities (basically it just consists of unpacking the static libraries and adding their contents to the SFML ones -- gcc libs are just archives of object files). Unfortunately, I still haven't found the way to integrate it as a post-process step into the compiling, so you have to download the utilities and do it manually. You can find those utilities in Cygwin, for example.


Could you write some kind of howto? (even if a short one) Please?  :roll:
Title: Compiling the libs
Post by: Laurent on November 29, 2007, 03:06:13 am
Yep, I'll try to do it as soon as possible.