Hello, I created the game and how I try to run it on another macu I have an error about the libsfml-system and where should I add it or how should I compile it differently?
C++ & SFML program running on another Mac
Add a Comment
Hello, I created the game and how I try to run it on another macu I have an error about the libsfml-system and where should I add it or how should I compile it differently?
In general Mac apps are meant to be self contained. If your app depends on a third-party library, you must package that library within your app. The usual place for such things in the
Contents/Frameworks/
directory within your app’s bundle.
When doing this you must also configure your app’s reference to the library to be relative rather than absolute (using tokens like
@executable_path
or
@rpath
). This happens automatically when you build the library with Xcode but it can be tricky when dealing with third-party libraries. My recommendation is that you first create a test project with a test dynamic library (you can create that from the Mac OS > Library template and then selecting Dynamic from the Type popup) and see how the resulting app gets packaged. Then try replicating this with your own build system.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"