SFML community forums

Help => General => Topic started by: shahn on April 13, 2010, 01:36:03 pm

Title: Compiling sfml2 with mingw (without Codeblocks)
Post by: shahn on April 13, 2010, 01:36:03 pm
Hi!

I am trying to compile the sfml2 svn snapshot with mingw (without Codeblocks on Windows XP). When invoking "make", I get the following error:

Code: [Select]

../../src/SFML/System/Thread.o:C:\msys\1.0\home\Administrator\nikki\playground\sfml\sfml2\build\make/../../src/SFML/System/Thread.cpp:97: undefined reference to `sf::priv::ThreadImpl::~ThreadImpl()'


(and the same for line 85)

My guess is, that this has something to do with the platform-dependent implementation of threads (although this might just be a wild guess).

So my question is this: Is it supported to compile sfml like this? AKA Is this just a temporary failure in svn that will be fixed?

Or should I use Codeblocks to compile sfml2? (From what I understand, using Codeblocks (with the mingw-compiler) is "the SFML-way" (tm) to compile things on windows. So I guess this problem doesn't exist when using Codeblocks.

Thanks for any advice.
Title: Compiling sfml2 with mingw (without Codeblocks)
Post by: Laurent on April 13, 2010, 01:45:01 pm
There are no makefiles for MinGW, the only way to compile is to use Code::Blocks.
Title: Compiling sfml2 with mingw (without Codeblocks)
Post by: shahn on December 08, 2010, 02:34:03 pm
Just to update this information:

The sfml2 branch uses cmake now, which is able to generate makefiles for mingw.