jukkae / rascal

A roguelike.
Other
1 stars 0 forks source link

Compile: Bundle into distributable #75

Closed jukkae closed 6 years ago

jukkae commented 6 years ago

Package into bundle with SFML framework (or dylib, apparently)

jukkae commented 6 years ago

https://stackoverflow.com/questions/1596945/building-osx-app-bundle

jukkae commented 6 years ago
$ otool -L rascal 
rascal:
    @rpath/SFML.framework/Versions/2.4.2/SFML (compatibility version 0.0.0, current version 0.0.0)
    @rpath/sfml-window.framework/Versions/2.4.2/sfml-window (compatibility version 2.4.0, current version 2.4.2)
    @rpath/sfml-graphics.framework/Versions/2.4.2/sfml-graphics (compatibility version 2.4.0, current version 2.4.2)
    @rpath/sfml-system.framework/Versions/2.4.2/sfml-system (compatibility version 2.4.0, current version 2.4.2)
    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0)
    /usr/local/opt/boost/lib/libboost_serialization.dylib (compatibility version 0.0.0, current version 0.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)

, which basically means that only non-system libraries are sfml framework and its different parts, that are searched for from rpath, and libboost, which has a hard-coded path

jukkae commented 6 years ago

https://github.com/auriamg/macdylibbundler/ did work in fixing boost path – just figure out how to build the bundle!

jukkae commented 6 years ago

There's a makefile example here https://stackoverflow.com/questions/1596945/building-osx-app-bundle

jukkae commented 6 years ago