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

Author Topic: CMake Error: Undefined Reference To Font (using MINGW64 GCC 4.7)  (Read 1653 times)

0 Members and 1 Guest are viewing this topic.

Stupidmonkey

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

System Windows 7 64 bit

I'm not too crash hot with these things, but I managed to compile SFML2 with cmake and rubens mingw 32 bit target toolchain (gcc 4.7 ) because I was getting seg fault errors from the pre-compiled sfml2 .dlls

I'm now trying compile SFML2 with cmake from source again, but with rubens mingw 64 bit compiler (gcc 4.7)  and I'm receiving the following cmake error as reported in the following link:

https://gist.github.com/LaurentGomila/SFML/issues/217

Please see 3.png

I need help with the following:
1) An explanation in laymans terms why cmake is failing.
2) An optional work around for dummies.

I have SFML2 working for gcc 4.7 (32bit target), but it will drive me insane if I can't get it to work under gcc 4.7 (64 bit target) - I may need help  :o

Any assistance would be highly appreciated!


[attachment deleted by admin]

Stupidmonkey

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: CMake Error: Undefined Reference To Font (using MINGW64 GCC 4.7)
« Reply #1 on: June 02, 2012, 06:01:52 am »
Cmake from LG's source

[attachment deleted by admin]

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: CMake Error: Undefined Reference To Font (using MINGW64 GCC 4.7)
« Reply #2 on: June 02, 2012, 08:37:26 am »
Quote
1) An explanation in laymans terms why cmake is failing.
SFML doesn't provide its dependencies in 64-bits version.

Quote
2) An optional work around for dummies.
Recompile all the dependencies of SFML with your 64-bits compiler :)

Quote
but it will drive me insane if I can't get it to work under gcc 4.7 (64 bit target)
May I ask why? There's really no reason no to use 32-bits on Windows.
Laurent Gomila - SFML developer

Stupidmonkey

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: CMake Error: Undefined Reference To Font (using MINGW64 GCC 4.7)
« Reply #3 on: June 02, 2012, 01:04:55 pm »
Thank you for replying so quickly. I'm actually utilising SFML2 32 bit and I am quite happy at the moment to be honest.

It took me a week (i'm slow) to figure out that it wasn't the gcc 4.7 compiler causing the seg fault with the .dlls, but that I had to recompile for SFML2 with gcc 4.7 for my system lol.

I just like to nut things out and I would have just keep trawling the websites until I found a way to make it work so long story short I thought I would post here.

Thanks again for allowing me to think about other things and for maintaining an awesome gift to the programming community :)

 

anything