![]() ![]() The relative path seems to be set during installation in the generated cmake_install.cmake file via the install_name_tool command as shown here. Volumes/ramdisk/osx_ffmpeg/lib/libopencv_core.2.4.dylib Volumes/ramdisk/osx_ffmpeg/lib/libopencv_core.2.4.3.dylib: Otool -D /Volumes/ramdisk/osx_ffmpeg/lib/libopencv_core.2.4.3.dylib The libraries in the build location after the make command but before the "make install" are configured with the correct absolute path name corresponding to the build tree location: opt/local/lib/libopencv_core.2.4.3.dylib: Otool -D /opt/local/lib/libopencv_core.2.4.3.dylib ![]() The CMAKE_INSTALL_PREFIX=/opt/local puts the libraries in the correct place after a "make install" but the embedded path names are configured with a relative path name such as "lib/libopencv " and not "/opt/local/lib/libopencv" as desired. When I compile OpenCV for Mac OSX 10.8 using XCode 4.5.2 and cmake 2.8.9 my installed libraries aren't configured with the correct corresponding installation path.Ĭmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=RELEASE -D WITH_QT=ON -D WITH_OPENGL=ON -DCMAKE_INSTALL_PREFIX=/opt/local. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |