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

Author Topic: Step by step guide how to build SFML and setup a sample project (SOLVED)  (Read 1671 times)

0 Members and 3 Guests are viewing this topic.

dunkha

  • Newbie
  • *
  • Posts: 13
    • View Profile
Hi,

I've been trying to build SFML and setup a sample project without success. I'm running OSX and I want to use CMake to build the project and setup my sample project. I've been following the tutorial https://github.com/SFML/SFML/wiki/Tutorial%3A-Build-your-SFML-project-with-CMake. I finally was able to build and install my project but when I tried to run the program I got error libraries are missing.

I realised I hadn't built SFML but it seems Mac Version of SFML is missing CMake files to build it. I downloaded the version that should contain all the source files and I was able to build it but now when I try to rebuild and then make (make install) my project I get errors from missing library again. I think all the source files are not compatible with OSX probably or maybe something else is messed up.

I'm quite lost here. Could someone point me a step-by-step guide how to build SFML and setup a sample project using CMake?
« Last Edit: March 07, 2017, 07:10:31 am by dunkha »

dunkha

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Step by step guide how to build SFML and setup a sample project
« Reply #1 on: March 07, 2017, 07:10:12 am »
Hello,

this morning I got my sample project working! :) I just deleted all the files that cmake does and run it again. Then I was able to install the project with make and run it. An empty black window opened without errors just like it was supposed to. If anyone wants to know how I built SFML in OSX without any IDE and setup a sample project can leave a reply to this topic and I can try to help you. It was quite tricky one and I needed to pick up clues from different sources and sum them all together to get it working.