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

Author Topic: Cant compile with cmake so i used the installer (OS X)  (Read 2380 times)

0 Members and 1 Guest are viewing this topic.

stabilizer

  • Newbie
  • *
  • Posts: 3
    • View Profile
Cant compile with cmake so i used the installer (OS X)
« on: August 06, 2012, 09:54:48 pm »
Hey!

I'm trying to install SFML on my mac(mountain lion). I'm very new to os-x just bought the computer :P

I tried to compile the sfml 2.0 source with cmake but it giving me some weird error
CMake Error at /Applications/CMake 2.8-8.app/Contents/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
  Could NOT find Freetype (missing: FREETYPE_LIBRARY) (found version "2.4.4")
Call Stack (most recent call first):
  /Applications/CMake 2.8-8.app/Contents/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
  /Applications/CMake 2.8-8.app/Contents/share/cmake-2.8/Modules/FindFreetype.cmake:106 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  src/SFML/Graphics/CMakeLists.txt:78 (find_package)


Configuring incomplete, errors occurred!
 

so i decided to use the installer from the downloads section, i installed got the templetes on xcode BUT i can't compile and run... It gives me this error:
ld: library not found for -lsfml-system
clang: error: linker command failed with exit code 1 (use -v to see invocation)
 

i googled it and found that i should change "SFML_LINK_DYLIBS_SUFFIX" to nothing(leave it empty) but i my settings it already empty...

So i don't know what to do... Can someone please help me fix this problem?

Thanks!
« Last Edit: August 06, 2012, 09:57:37 pm by stabilizer »

Maniax

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Cant compile with cmake so i used the installer (OS X)
« Reply #1 on: August 09, 2012, 12:00:40 am »
Replace the file "TemplateInfo.plist" located at /Library/Developer/Xcode/Templates/SFML/SFML Application Base.xctemplate

with the updated file (Git Page)

Done :)

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Cant compile with cmake so i used the installer (OS X)
« Reply #2 on: August 15, 2012, 01:20:16 pm »
The Freetype error is linked to this issue : https://github.com/SFML/SFML/issues/241 You have to install XQuartz on your machine first.
SFML / OS X developer