-
-
Notifications
You must be signed in to change notification settings - Fork 891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build error: undefined reference to symbol [...] #364
Comments
I run either of these commands with OpenMVS: |
pls try the latest release |
Hello, I still get this error with the latest release |
I never tested OpenMVS with OpenCV 4.x, pls submit a patch if OpenMVS needs one |
It's OpenCV3.2 |
ok, so it seems I have OpenCV4 under I try to make with
|
I resolve the problem with OpenCV, as I uninstall completely the 4.x and re-install and compile 3.3.1 My cmake
and the build error
|
Ok, in my case the problem was solved by setting |
Okay... Yes... I met exactly the same issue.... This is a kind of weird... Maybe openMVS is NOT compatible with OpenCV4 yet... And @elliestath 's solution works for me... |
Hello,
I'm using Ubuntu 18.04, I've build and installed all OpenMVS required libraries, but I got the follwing error during build, as shown below. I have no idea what is that symbol reference.
Can anyone help me?
Thank you
*** LIBRARIES FOUND WHEN USING CMAKE ***
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY)
-- Can't find CUDA. Continuing without it.
-- WARNING: BREAKPAD was not found: Please specify BREAKPAD directory using BREAKPAD_ROOT env. variable
-- Can't find BreakPad. Continuing without it.
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- iostreams
-- program_options
-- system
-- serialization
-- regex
-- Eigen 3.2.10 found (include: /usr/local/include/eigen3)
-- Found OpenCV: /usr/local (found version "3.4.1")
-- OpenCV 3.4.1 found (include: /usr/local/include;/usr/local/include/opencv)
-- CGAL 4.11 found (include: /usr//include)
-- VCG found (include: /home/ryuuji/program-files/vcglib)
-- GLEW found (include: /usr/include)
-- GLFW3 3.2.1 found (include: )
*** BUILD ERROR ***
[ 85%] Linking CXX executable ../../bin/InterfaceVisualSFM
/usr/bin/x86_64-linux-gnu-ld: CMakeFiles/InterfaceVisualSFM.dir/InterfaceVisualSFM.cpp.o: undefined reference to symbol '_ZN2cv7imwriteERKNS_6StringERKNS_11_InputArrayERKSt6vectorIiSaIiEE'
//usr/local/lib/libopencv_imgcodecs.so.3.4: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
apps/InterfaceVisualSFM/CMakeFiles/InterfaceVisualSFM.dir/build.make:95: recipe for target 'bin/InterfaceVisualSFM' failed
make[2]: *** [bin/InterfaceVisualSFM] Error 1
CMakeFiles/Makefile2:399: recipe for target 'apps/InterfaceVisualSFM/CMakeFiles/InterfaceVisualSFM.dir/all' failed
make[1]: *** [apps/InterfaceVisualSFM/CMakeFiles/InterfaceVisualSFM.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2Steps to reproduce the problem
The text was updated successfully, but these errors were encountered: