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

Author Topic: Xcode 4 SFML 2 Installation woes  (Read 3460 times)

0 Members and 1 Guest are viewing this topic.

cordr81

  • Newbie
  • *
  • Posts: 5
    • View Profile
Xcode 4 SFML 2 Installation woes
« on: June 19, 2011, 11:27:33 pm »
I'm having trouble getting my installation working right.  Admittedly I'm new to OS X and Xcode, so I'm sure the problem is between the monitor and the chair.  Most of my experience lies with Windows, MSVC and C++.   I've been flipping between the 1.6 tutorials and 2.0 build instructions and am stuck now.

Here's where I'm at:
-Got the 2.0 version from the git repository
-Followed instructions to compile it and successfully compiled with Cmake
-I moved the templates from the 2.0 git repository over into Xcode
-I create a new "SFML Application" project
-try to build and it complains about SFML/Graphics.hpp missing
-Add sfml/include directory to "header search Path" ("/Users/droc/Dev/sfml/include" for me)
-Try to build again and get error "ld: library not found for -lsfml-system-d"
-Copy my built debug libraries to "/Library/Frameworks'
-Add  those to the "Linked Frameworks and Libraries" in Xcode
-At that point it says the build succeeded, but it fails to run, giving me this and nothing pops up:

"warning: Unable to read symbols for libsfml-system-d.dylib (file not found).
warning: Unable to read symbols from "libsfml-system-d.dylib" (not yet mapped into memory).
warning: Unable to read symbols for libsfml-window-d.dylib (file not found).
warning: Unable to read symbols from "libsfml-window-d.dylib" (not yet mapped into memory).
warning: Unable to read symbols for libsfml-graphics-d.dylib (file not found).
warning: Unable to read symbols from "libsfml-graphics-d.dylib" (not yet mapped into memory).
warning: Unable to read symbols for libsfml-audio-d.dylib (file not found).
warning: Unable to read symbols from "libsfml-audio-d.dylib" (not yet mapped into memory).
warning: Unable to read symbols for libsfml-network-d.dylib (file not found).
warning: Unable to read symbols from "libsfml-network-d.dylib" (not yet mapped into memory).
[Switching to process 4416 thread 0x0]
dyld: Library not loaded: libsfml-system-d.dylib
  Referenced from: /Users/droc/Library/Developer/Xcode/DerivedData/SFMLtest-goveuakpsknzcmekfidwdvnkdxxi/Build/Products/Debug/SFMLtest.app/Contents/MacOS/SFMLtest
  Reason: image not found"

Any idea what I'm doing wrong?  This looks like a great library and I'm looking forward to using it.  Thanks in advance for any help.

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Xcode 4 SFML 2 Installation woes
« Reply #1 on: June 19, 2011, 11:55:04 pm »
Quote from: "cordr81"
Here's where I'm at:
-Got the 2.0 version from the git repository
-Followed instructions to compile it and successfully compiled with Cmake
-I moved the templates from the 2.0 git repository over into Xcode
-I create a new "SFML Application" project
Until this point you've done everything right. Except maybe you didn't run 'sudo make install' which will copy the headers to /usr/local/include and the .dylibs to /usr/local/lib. If you do run this command it should work.

Does this solve your problem ?
SFML / OS X developer

cordr81

  • Newbie
  • *
  • Posts: 5
    • View Profile
Xcode 4 SFML 2 Installation woes
« Reply #2 on: June 20, 2011, 12:48:28 am »
Success, thanks!