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

Author Topic: Compilation of SFML  (Read 1331 times)

0 Members and 1 Guest are viewing this topic.

fayastone

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Email
Compilation of SFML
« on: November 24, 2014, 11:45:12 am »
Hello everyone,

I'm trying since few days to install SFML on my computer in order to use it with Code::blocks on my windows 7.

A long way was wainting for me and I think I've done the most part of it.

I've installed Cmake, mingw and codeblocks. Downloaded SFML sources (from http://sfml-dev.org/download/sfml/2.1/, the last link : "All Source code").

Then I followed the tutorial http://sfml-dev.org/tutorials/2.0/compile-with-cmake-fr.php to compile SFML.

I did it because when following this tutorial : http://sfml-dev.org/tutorials/2.1/start-cb.php , I got an error saying it was 'Impossible to find the begginning of the _gxx... procedural" something like this.

So I followed point to point the tutorial to compile it and in the end, the SFML was succefully compiled.
But I see that the result is far to be the expected :
-There is no directory named "bin", the ".dll" are in the directory "lib" with the ".a" files.
-The is no "include" directory (only what you can see on the screenshot)
-The under-directories of the compiled SFML are full of "Cmake[...]" files.

To compile I used the command "mingw32-make all".

Could you help me solve this ?

Thank you for reading.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Compilation of SFML
« Reply #1 on: November 24, 2014, 12:12:02 pm »
mingw32-make install

... as explained in the tutorial
Laurent Gomila - SFML developer

fayastone

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Email
Re: Compilation of SFML
« Reply #2 on: November 24, 2014, 01:32:23 pm »
Ok thank you very much, It worked and all the directories are installed.

I typed this command and got a failure error, due to the fact that if my CMAKE_INSTALL_PREFIX --> C:/Program Files(x86)/SFML do not exists the directory won't be created.

Also after having my compield SFML I still got the error :

Quote
the procedure entry point __gxx_personality_v0 could not be located in the dynamic link library libstdc++6

I solved this thanks to this link :

http://stackoverflow.com/questions/18668003/the-procedure-entry-point-gxx-personality-v0-could-not-be-located-in-the-dnyam

Only have to move the libstdc++6.dll from minGW/bin to the executive folder of my project. Now, the test works perfectly.

Thank you very much again for your answer and explanations  :D

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Compilation of SFML
« Reply #3 on: November 24, 2014, 01:34:18 pm »
Quote
I typed this command and got a failure error, due to the fact that if my CMAKE_INSTALL_PREFIX --> C:/Program Files(x86)/SFML do not exists the directory won't be created.
The directory is created automatically, but since you need the admin rights to create something under C:/Program Files(x86), it failed in your case (it would have worked if you had launched the console where you typed "make install" with admin rights).
Laurent Gomila - SFML developer

 

anything