openMVG: Compilation error on Ubuntu 16.10

After installing the dependencies, the compilation fails at the following point:

ubuntu01:~/Downloads/openMVG-1.1/openMVG/build$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D OpenMVG_BUILD_TESTS=ON -D OpenMVG_BUILD_EXAMPLES=ON -D CMAKE_C_COMPILER=/usr/bin/gcc-4.9 -D CMAKE_CXX_COMPILER=/usr/bin/g+±4.9 -D EIGEN_INCLUDE_DIR_HINTS=/usr/include/eigen3/Eigen/src/ -D CERES_DIR_HINTS=/usr/local/lib/ -D CLP_INCLUDE_DIR_HINTS=/usr/include/coin/ -D COINUTILS_INCLUDE_DIR_HINTS=/usr/include/coin/ -D OSI_INCLUDE_DIR_HINTS=/usr/include/coin/ -D FLANN_INCLUDE_DIR_HINTS=/usr/include/flann/ -D LEMON_INCLUDE_DIR_HINTS=/usr/include/lemon/ …/src – The C compiler identification is GNU 4.9.4 – The CXX compiler identification is GNU 4.9.4 – Check for working C compiler: /usr/bin/gcc-4.9 – Check for working C compiler: /usr/bin/gcc-4.9 – works – Detecting C compiler ABI info – Detecting C compiler ABI info - done – Detecting C compile features – Detecting C compile features - done – Check for working CXX compiler: /usr/bin/g+±4.9 – Check for working CXX compiler: /usr/bin/g+±4.9 – works – Detecting CXX compiler ABI info – Detecting CXX compiler ABI info - done – Detecting CXX compile features – Detecting CXX compile features - done – target changed from “” to “auto” – Performing Test check_c_compiler_flag__march_native – Performing Test check_c_compiler_flag__march_native - Success – Performing Test check_cxx_compiler_flag__march_native – Performing Test check_cxx_compiler_flag__march_native - Success – Optimizing for the host architecture using -march=native – Checking for C++11 compiler – Checking for C++11 compiler - available – Performing Test SUPPORTS_STD_CXX11 – Performing Test SUPPORTS_STD_CXX11 - Success – Performing Test SUPPORTS_STD_CXX01 – Performing Test SUPPORTS_STD_CXX01 - Success – Looking for C++ include thread – Looking for C++ include thread - found – Looking for C++ include chrono – Looking for C++ include chrono - found – Try OpenMP C flag = [-fopenmp] – Performing Test OpenMP_FLAG_DETECTED – Performing Test OpenMP_FLAG_DETECTED - Success – Try OpenMP CXX flag = [-fopenmp] – Performing Test OpenMP_FLAG_DETECTED – Performing Test OpenMP_FLAG_DETECTED - Success – Found OpenMP: -fopenmp
– Did not find MOSEK header – Did not find MOSEK library – Could not find mosek library on this machine. – Eigen 3.3.1 found (include: /usr/local/include/eigen3) – Found required Ceres dependency: Eigen version 3.3.1 in /usr/local/include/eigen3 – Found required Ceres dependency: glog – Performing Test GFLAGS_IN_GOOGLE_NAMESPACE – Performing Test GFLAGS_IN_GOOGLE_NAMESPACE - Success – Found required Ceres dependency: gflags – Found Ceres version: 1.12.0 installed in: /usr/local with components: [LAPACK, SuiteSparse, SparseLinearAlgebraLibrary, SchurSpecializations, OpenMP] – Flann 1.9.1 found (include: /usr/include/flann) – CoinUtils 2.9.15 found (include: /usr/include/coin) – Clp 1.15.10 found (include: /usr/include/coin) – Osi 0.106.9 found (include: /usr/include/coin) – Lemon 1.3.1 found (include: /usr/include/lemon) qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory – Found Sphinx: /usr/bin/sphinx-build
– Found Doxygen: /usr/bin/doxygen (found version “1.8.11”)

** OpenMVG version: 1.1.0 ** Build Shared libs: OFF ** Build OpenMVG tests: ON ** Build OpenMVG softwares: ON ** Build OpenMVG documentation: ON ** Build OpenMVG samples applications: ON ** Build OpenMVG openGL examples: OFF ** Enable code coverage generation: OFF ** Enable OpenMP parallelization: ON ** Build OpenCV+OpenMVG samples programs: OFF ** Use OpenCV SIFT features: OFF

– EIGEN: 3.3.1 (external) – CERES: 1.12.0 (external) – FLANN: 1.9.1 (external) (checked source header to confirm version) – LIBTIFF: 4.0.6 (external) – LIBPNG: 1.6.25 (external) – LIBJPEG (external) – CLP: 1.15.10 (external) – COINUTILS: 2.9.15 (external) – OSI: 0.106.9 (external) – LEMON: 1.3.1 (external)

– Configuring done – Generating done – Build files have been written to: /home/chuck/Downloads/openMVG-1.1/openMVG/build

… [ 41%] Linking CXX executable …/…/Linux-x86_64-RELEASE/openMVG_test_matching CMakeFiles/openMVG_test_matching.dir/matching_test.cpp.o: In function flann::serialization::SaveArchive::initBlock()': matching_test.cpp:(.text._ZN5flann13serialization11SaveArchive9initBlockEv[_ZN5flann13serialization11SaveArchive9initBlockEv]+0x47): undefined reference to LZ4_resetStreamHC’ CMakeFiles/openMVG_test_matching.dir/matching_test.cpp.o: In function flann::serialization::SaveArchive::flushBlock()': matching_test.cpp:(.text._ZN5flann13serialization11SaveArchive10flushBlockEv[_ZN5flann13serialization11SaveArchive10flushBlockEv]+0x4b): undefined reference to LZ4_compress_HC_continue’ matching_test.cpp:(.text._ZN5flann13serialization11SaveArchive10flushBlockEv[_ZN5flann13serialization11SaveArchive10flushBlockEv]+0xed): undefined reference to LZ4_compress_HC_continue' CMakeFiles/openMVG_test_matching.dir/matching_test.cpp.o: In function flann::serialization::LoadArchive::decompressAndLoadV10(_IO_FILE*)‘: matching_test.cpp:(.text._ZN5flann13serialization11LoadArchive20decompressAndLoadV10EP8_IO_FILE[_ZN5flann13serialization11LoadArchive20decompressAndLoadV10EP8_IO_FILE]+0xcf): undefined reference to LZ4_decompress_safe' CMakeFiles/openMVG_test_matching.dir/matching_test.cpp.o: In function flann::serialization::LoadArchive::loadBlock(char*, unsigned long, _IO_FILE*)’: matching_test.cpp:(.text._ZN5flann13serialization11LoadArchive9loadBlockEPcmP8_IO_FILE[_ZN5flann13serialization11LoadArchive9loadBlockEPcmP8_IO_FILE]+0x40): undefined reference to LZ4_decompress_safe_continue' CMakeFiles/openMVG_test_matching.dir/matching_test.cpp.o: In function flann::serialization::LoadArchive::initBlock(_IO_FILE*)‘: matching_test.cpp:(.text._ZN5flann13serialization11LoadArchive9initBlockEP8_IO_FILE[_ZN5flann13serialization11LoadArchive9initBlockEP8_IO_FILE]+0xc0): undefined reference to LZ4_setStreamDecode' CMakeFiles/openMVG_test_matching.dir/matching_test.cpp.o: In function flann::LinearIndex<flann::L2<float> >::saveIndex(_IO_FILE*)’: matching_test.cpp:(.text._ZN5flann11LinearIndexINS_2L2IfEEE9saveIndexEP8_IO_FILE[_ZN5flann11LinearIndexINS_2L2IfEEE9saveIndexEP8_IO_FILE]+0x74): undefined reference to LZ4_resetStreamHC' CMakeFiles/openMVG_test_matching.dir/matching_test.cpp.o: In function flann::KDTreeSingleIndex<flann::L2<float> >::saveIndex(_IO_FILE*)‘: matching_test.cpp:(.text._ZN5flann17KDTreeSingleIndexINS_2L2IfEEE9saveIndexEP8_IO_FILE[_ZN5flann17KDTreeSingleIndexINS_2L2IfEEE9saveIndexEP8_IO_FILE]+0x76): undefined reference to `LZ4_resetStreamHC’ collect2: error: ld returned 1 exit status openMVG/matching/CMakeFiles/openMVG_test_matching.dir/build.make:99: recipe for target ‘Linux-x86_64-RELEASE/openMVG_test_matching’ failed make[2]: *** [Linux-x86_64-RELEASE/openMVG_test_matching] Error 1 CMakeFiles/Makefile2:2359: recipe for target ‘openMVG/matching/CMakeFiles/openMVG_test_matching.dir/all’ failed make[1]: *** [openMVG/matching/CMakeFiles/openMVG_test_matching.dir/all] Error 2 Makefile:138: recipe for target ‘all’ failed make: *** [all] Error 2

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

Try to add -DLEMON_ENABLE_SOPLEX=NO to the cmake command line.