Building OSX App Bundle

There are two ways to create an app bundle on MacOSX, the Easy and the Ugly. The easy way is just to use XCode. Done. The problem is sometimes you can’t. In my case I’m building an app that builds other apps. I can’t assume the user has XCode installed. I’m also using MacPorts to … Read more

dyld: Library not loaded … Reason: Image not found

Find all the boost libraries (where exefile is the name of your executable): $ otool -L exefile exefile: @executable_path/libboost_something.dylib (compatibility version 0.7.0, current version 0.7.0) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 65.1.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0) and for each libboost_xxx.dylib, do: $ install_name_tool -change @executable_path/libboost_something.dylib /opt/local/lib/libboost_something.dylib exefile and finally verify using otool … Read more