openMVS icon indicating copy to clipboard operation
openMVS copied to clipboard

Error while building

Open fightmoney opened this issue 4 years ago • 2 comments

Hi, I have a problem while sudo make install Ubuntu 18.04

/usr/bin/ld: CMakeFiles/ReconstructMesh.dir/ReconstructMesh.cpp.o: undefined reference to symbol '_ZN2cv6String10deallocateEv'
//usr/local/lib/libopencv_core.so.3.4: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
/usr/bin/ld: CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o: undefined reference to symbol '_ZN2cvmlERKNS_3MatES2_'
//usr/local/lib/libopencv_core.so.3.4: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
/usr/apps/ReconstructMesh/CMakeFiles/ReconstructMesh.dir/build.make:95: recipe for target 'bin/ReconstructMesh' failed
make[2]: *** [bin/ReconstructMesh] Error 1
bin/ld: CMakeFiles/InterfaceVisualSFM.dir/InterfaceVisualSFM.cpp.o: undefined reference to CMakeFiles/Makefile2:567: recipe for target 'apps/ReconstructMesh/CMakeFiles/ReconstructMesh.dir/all' failed
make[1]: *** [apps/ReconstructMesh/CMakeFiles/ReconstructMesh.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
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/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/build.make:95: recipe for target 'bin/InterfaceCOLMAP' failed
make[2]: *** [bin/InterfaceCOLMAP] Error 1
apps/InterfaceVisualSFM/CMakeFiles/InterfaceVisualSFM.dir/build.make:95: recipe for target 'bin/InterfaceVisualSFM' failed
make[2]: *** [bin/InterfaceVisualSFM] Error 1
CMakeFiles/Makefile2:457: recipe for target 'apps/InterfaceVisualSFM/CMakeFiles/InterfaceVisualSFM.dir/all' failed
make[1]: *** [apps/InterfaceVisualSFM/CMakeFiles/InterfaceVisualSFM.dir/all] Error 2
CMakeFiles/Makefile2:402: recipe for target 'apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/all' failed
make[1]: *** [apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/all] Error 2
/usr/bin/ld: CMakeFiles/DensifyPointCloud.dir/DensifyPointCloud.cpp.o: undefined reference to symbol '_ZN2cv6String10deallocateEv'
//usr/local/lib/libopencv_core.so.3.4: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
apps/DensifyPointCloud/CMakeFiles/DensifyPointCloud.dir/build.make:95: recipe for target 'bin/DensifyPointCloud' failed
make[2]: *** [bin/DensifyPointCloud] Error 1
CMakeFiles/Makefile2:512: recipe for target 'apps/DensifyPointCloud/CMakeFiles/DensifyPointCloud.dir/all' failed
make[1]: *** [apps/DensifyPointCloud/CMakeFiles/DensifyPointCloud.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

how to solve it? thank you very much

fightmoney avatar May 02 '21 13:05 fightmoney

Have you solved the problem? I meet the same error.

whulc avatar Oct 08 '21 07:10 whulc

Note: I am not an openMVS developer.

It seems dependencies are not on the command line of the linker. Can you give a more extensive output log of the following command?

make VERBOSE=1

I add VERBOSE=1 so that one can see the compilation and linking command lines.

lrineau avatar Oct 08 '21 09:10 lrineau