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

Author Topic: Run an SFML project on OS X without installing Freetype on the user system.  (Read 1619 times)

0 Members and 1 Guest are viewing this topic.

Dragnalith

  • Newbie
  • *
  • Posts: 22
    • View Profile
I am working on an SFML project driven by CMake: http://github.com/Dragnalith/Nawp
To avoid cross-platform dependency problems I have included SFML in my repo, managed with the subtree merge feature of git. SFML CMakeLists.txt is included in my main CMakeLists.txt with add_subdirectory. When I do the build, everything is built automatically, wonderful!

My problem is on OS X, because of Freetype you need to install SFML (e.g do a make install) to copy the framework on your system, otherwise you have a yld: Library not loaded. This step breaks my seamless build workflow.

I'd like to make my app look for the framework in the path of my project and not in /Library/Framework. How can I do that?

(On Windows, one solution would be to copy the .dll in the same folder as my .exe, but I don't know how it works on OS X)

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Create a bundle application. More details here http://www.sfml-dev.org/tutorials/2.1/start-osx.php
SFML / OS X developer

 

anything