Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Compiling sfml2 with mingw (without Codeblocks)  (Read 2236 times)

0 Members and 1 Guest are viewing this topic.

shahn

  • Newbie
  • *
  • Posts: 16
    • View Profile
Compiling sfml2 with mingw (without Codeblocks)
« 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Compiling sfml2 with mingw (without Codeblocks)
« Reply #1 on: April 13, 2010, 01:45:01 pm »
There are no makefiles for MinGW, the only way to compile is to use Code::Blocks.
Laurent Gomila - SFML developer

shahn

  • Newbie
  • *
  • Posts: 16
    • View Profile
Compiling sfml2 with mingw (without Codeblocks)
« Reply #2 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.

 

anything