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

Author Topic: Setting up sfml 2 and cmake with codeblocks  (Read 2775 times)

0 Members and 2 Guests are viewing this topic.

Zamadatix

  • Newbie
  • *
  • Posts: 27
    • View Profile
Setting up sfml 2 and cmake with codeblocks
« on: November 24, 2010, 09:47:21 pm »
I have decided to move to sfml 2 but am stuck and getting cmake to work. With a new normal codeblocks install and new cmake 2.8 install can anyone explain how to get cmake to make the projects for mingw properly (i get a lot of errors trying to follow the guid in the tutorial section)

Svenstaro

  • Full Member
  • ***
  • Posts: 222
    • View Profile
Setting up sfml 2 and cmake with codeblocks
« Reply #1 on: November 24, 2010, 10:52:51 pm »
Actually, it should all happen for you automatically. After calling cmake you can choose from a list of generators and Codeblocks will be on that list. What errors do you get?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Setting up sfml 2 and cmake with codeblocks
« Reply #2 on: November 24, 2010, 11:14:41 pm »
There's no need to create Code::Blocks projects, MinGW makefiles are enough and can be compiled more quickly/conveniently.

What errors do you get?
Laurent Gomila - SFML developer

Zamadatix

  • Newbie
  • *
  • Posts: 27
    • View Profile
Setting up sfml 2 and cmake with codeblocks
« Reply #3 on: November 24, 2010, 11:29:37 pm »
Ah I got it, I had to use MinGW makefiles instead of the codeblocks ones, thanks :)

 

anything