Hello, I am successfully able to use CMake to generate the OpenCV dynamic library. The program I am working on is giving me errors loading these libraries, so I am trying to compile static libraries instead.
So, I set the following: BUILD_SHARED_LIBS:BOOL=OFF and fail with: ld: library not found for -ldc1394 In CMakeCache.txt the lines pertinent to lib1394 are: 1394_LIBRARY:FILEPATH=/opt/local/lib/libdc1394.dylib // I added this manually. I also tried .a WITH_1394:BOOL=ON opencv_highgui_LIB_DEPENDS:STATIC=... ;dc1394; ... // truncated for post ALIASOF_libdc1394-2_PREFIX:INTERNAL=/opt/local ALIASOF_libdc1394-2_CFLAGS:INTERNAL=-I/opt/local/include ALIASOF_libdc1394-2_CFLAGS_I:INTERNAL= ALIASOF_libdc1394-2_CFLAGS_OTHER:INTERNAL= ALIASOF_libdc1394-2_FOUND:INTERNAL=1 ALIASOF_libdc1394-2_STATIC_CFLAGS:INTERNAL=-I/opt/local/include ALIASOF_libdc1394-2_STATIC_CFLAGS_I:INTERNAL= ALIASOF_libdc1394-2_STATIC_CFLAGS_OTHER:INTERNAL= ALIASOF_libdc1394-2_STATIC_INCLUDE_DIRS:INTERNAL=/opt/local/include ALIASOF_libdc1394-2_STATIC_LDFLAGS:INTERNAL=-L/opt/local/lib;-ldc1394 ALIASOF_libdc1394-2_STATIC_LDFLAGS_OTHER:INTERNAL= ALIASOF_libdc1394-2_STATIC_LIBDIR:INTERNAL= ALIASOF_libdc1394-2_STATIC_LIBRARIES:INTERNAL=ldc1394 ALIASOF_libdc1394-2_STATIC_LIBRARY_DIRS:INTERNAL=/opt/local/lib ALIASOF_libdc1394-2_STATIC_LIBS:INTERNAL= ALIASOF_libdc1394-2_STATIC_LIBS_L:INTERNAL= ALIASOF_libdc1394-2_STATIC_LIBS_OTHER:INTERNAL= ALIASOF_libdc1394-2_STATIC_LIBS_PATHS:INTERNAL= ALIASOF_libdc1394-2_VERSION:INTERNAL=2.1.3 ALIASOF_libdc1394-2_libdc1394-2_INCLUDEDIR:INTERNAL= ALIASOF_libdc1394-2_libdc1394-2_LIBDIR:INTERNAL= ALIASOF_libdc1394-2_libdc1394-2_PREFIX:INTERNAL= ALIASOF_libdc1394-2_libdc1394-2_VERSION:INTERNAL= The generated paths are all correct. The files that exist are: /opt/local/include/dc1394/ /opt/local/lib/libdc1394.22.1.5.dylib /opt/local/lib/libdc1394.22.dylib -> libdc1394.22.1.5.dylib /opt/local/lib/libdc1394.a /opt/local/lib/libdc1394.dylib -> libdc1394.22.1.5.dylib /opt/local/lib/libdc1394.la >From what I can see, everything is configured correctly. Can someone shed some light as to why I fail when compiling the static library but not the dynamic library? I could simply turn 1394 off but this type of error then occurs in a different library, so I would like to get to the root of the issue. Thanks -- View this message in context: http://cmake.3232098.n2.nabble.com/Issues-with-Library-Dependency-while-building-OpenCV-Static-tp7581059.html Sent from the CMake mailing list archive at Nabble.com. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake