Re: [CMake] dyld: library not loaded

2011-08-31 Thread Michael Jackson
You may want to take a look at the Qt Demo application linked from the Wiki. http://www.cmake.org/Wiki/BundleUtilitiesExample ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.

Re: [CMake] dyld: library not loaded

2011-08-31 Thread Michael Jackson
Please keep replies on the list so others may join or benefit from the conversation. You will need to add the "macosx_bundle" flag to your add_executable() command. This tells CMake to generate the instructions to create a proper OS X application bundle. Next you will need to explore adding a

Re: [CMake] dyld: library not loaded

2011-08-31 Thread Michael Jackson
You need to copy the library into the .app bundle at MeshVisualization.app/Contents/Libraries/. Your "add_executable()" command should have the "MACOSX_BUNDLE" set in. See the help listing for the add executable. ___ Mike Jackson

[CMake] dyld: library not loaded

2011-08-31 Thread Yifei Li
Hi all, My app MeshVisualization uses a library called OpenMesh. I had a runtime error when running the app: dyld: Library not loaded: @executable_path/../Libraries/libOpenMeshCore.2.0.dylib Referenced from: /Users/yifli/Documents/MeshVisualization/build/Build/bin/MeshVisualization Reason: