I am installing on a local Ubuntu 16.04 natively using the commands/instructions here.. On the last step, when I run cmake, I get the following errors:
34%] Building CXX object modules/odm_georef/CMakeFiles/odm_georef.dir/src/FindTransform.cpp.o
[ 39%] Building CXX object modules/odm_georef/CMakeFiles/odm_georef.dir/src/Logger.cpp.o
[ 43%] Linking CXX executable …/…/bin/odm_georef
/usr/bin/ld: cannot find -lvtkftgl
/usr/bin/ld: cannot find -lvtkFiltersParallelFlowPaths
/usr/bin/ld: cannot find -lvtkParallelMPI
/usr/bin/ld: cannot find -lvtkFiltersParallelGeometry
/usr/bin/ld: cannot find -lvtkFiltersParallelMPI
/usr/bin/ld: cannot find -lvtkFiltersParallelStatistics
/usr/bin/ld: cannot find -lvtkFiltersPython
/usr/bin/ld: cannot find -lvtkWrappingPythonCore
/usr/bin/ld: cannot find -lvtkWrappingTools
/usr/bin/ld: cannot find -lvtkFiltersReebGraph
/usr/bin/ld: cannot find -lvtkGeovisCore
/usr/bin/ld: cannot find -lvtkInteractionStyle
/usr/bin/ld: cannot find -lvtkInteractionWidgets
/usr/bin/ld: cannot find -lvtkRenderingAnnotation
/usr/bin/ld: cannot find -lvtkRenderingVolume
/usr/bin/ld: cannot find -lvtkViewsCore
collect2: error: ld returned 1 exit status
modules/odm_georef/CMakeFiles/odm_georef.dir/build.make:494: recipe for target ‘bin/odm_georef’ failed
make[2]: *** [bin/odm_georef] Error 1
CMakeFiles/Makefile2:170: recipe for target ‘modules/odm_georef/CMakeFiles/odm_georef.dir/all’ failed
make[1]: *** [modules/odm_georef/CMakeFiles/odm_georef.dir/all] Error 2
Makefile:83: recipe for target ‘all’ failed
What is going on here?
The system cannot find VTK. Make sure libvtk6-dev
is installed. The wiki is out of date, I wouldn’t follow the instructions there. Follow this guide instead: http://docs.opendronemap.org/building.html#native-installation-ubuntu-16-04
Have you run configure.sh install
?
Hi,
I stumbled upon exactly the same issue and error message. The following message appear when I execute “bash configure.sh install”. Hope there is a solution for this missing library since installing libvtk6-dev manually does not solve this error.
Thanks in advance
Budi
Indonesia
[ 17%] Built target odm_extract_utm
[ 21%] Linking CXX executable …/…/bin/odm_orthophoto
[ 26%] Linking CXX executable …/…/bin/odm_georef
[ 30%] Linking CXX executable …/…/bin/odm_meshing
[ 52%] Built target odm_25dmeshing
/usr/bin/ld: cannot find -lvtkftgl
/usr/bin/ld: cannot find -lvtkFiltersParallelFlowPaths
/usr/bin/ld: cannot find -lvtkParallelMPI
/usr/bin/ld: cannot find -lvtkFiltersParallelGeometry
/usr/bin/ld: cannot find -lvtkFiltersParallelMPI
/usr/bin/ld: cannot find -lvtkFiltersParallelStatistics
/usr/bin/ld: cannot find -lvtkFiltersPython
/usr/bin/ld: cannot find -lvtkWrappingPythonCore
/usr/bin/ld: cannot find -lvtkWrappingTools
/usr/bin/ld: cannot find -lvtkFiltersReebGraph
/usr/bin/ld: cannot find -lvtkGeovisCore
/usr/bin/ld: cannot find -lvtkInteractionStyle
/usr/bin/ld: cannot find -lvtkInteractionWidgets
/usr/bin/ld: cannot find -lvtkRenderingAnnotation
/usr/bin/ld: cannot find -lvtkRenderingVolume
/usr/bin/ld: cannot find -lvtkViewsCore
collect2: error: ld returned 1 exit status
modules/odm_orthophoto/CMakeFiles/odm_orthophoto.dir/build.make:441: recipe for target ‘bin/odm_orthophoto’ failed
make[2]: *** [bin/odm_orthophoto] Error 1
CMakeFiles/Makefile2:280: recipe for target ‘modules/odm_orthophoto/CMakeFiles/odm_orthophoto.dir/all’ failed
make[1]: *** [modules/odm_orthophoto/CMakeFiles/odm_orthophoto.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
/usr//usrbin//ldbin:/ ldcannot find: -cannot lvtkftglfind
-/lvtkftglusr
//binusr//binld/ld:: cannotcannot find -find lvtkFiltersParallelFlowPaths-lvtkFiltersParallelFlowPaths
//usrusr//bin/binld/:ld: cannotcannot findfind --lvtkParallelMPI
lvtkParallelMPI/
usr//bin/usrld:/ bincannot/ findld :- cannotlvtkFiltersParallelGeometry
find/ usr-lvtkFiltersParallelGeometry/
bin//ld:usr /cannotbin/ ldfind: - cannotlvtkFiltersParallelMPI
/ usrfind/ -lvtkFiltersParallelMPIbin
//usrld/:bin /cannotld: findcannot -find lvtkFiltersParallelStatistics
/-usrlvtkFiltersParallelStatistics/
/usrbin/bin//ldld:: cannot cannotfind find --lvtkFiltersPython
lvtkFiltersPython/
usr//bin/usrld/: bincannot/ ldfind: -cannotlvtkWrappingPythonCore
find /-usr/lvtkWrappingPythonCorebin
//ld:usr /cannot binfind/ ld-:lvtkWrappingTools
cannot/ usrfind/ bin-/lvtkWrappingToolsld
usrcannot/ findbin /-lvtkFiltersReebGraphld
cannot usrfind/ -lvtkFiltersReebGraphbin
//usrld/:bin cannot /findld -: lvtkGeovisCore
cannot/ usr/findbin /-lvtkGeovisCoreld
usrcannot/ binfind/ ld-:lvtkInteractionStyle
cannot/ usrfind/ bin-/lvtkInteractionStyleld
usrcannot/ binfind/ -ld:lvtkInteractionWidgets cannot
find/ -lvtkInteractionWidgetsusr
//usrbin//binld/:ld :cannot cannotfind -find lvtkRenderingAnnotation-lvtkRenderingAnnotation
//usr/usrbin//binld/:ld :cannot cannot findfind - -lvtkRenderingVolumelvtkRenderingVolume
//usrusr//binbin//ldld:: cannot cannotfind find --lvtkViewsCore
lvtkViewsCore
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
modules/odm_meshing/CMakeFiles/odm_meshing.dir/build.make:438: recipe for target ‘bin/odm_meshing’ failed
make[2]: *** [bin/odm_meshing] Error 1
modules/odm_georef/CMakeFiles/odm_georef.dir/build.make:494: recipe for target ‘bin/odm_georef’ failed
make[2]: *** [bin/odm_georef] Error 1
CMakeFiles/Makefile2:225: recipe for target ‘modules/odm_meshing/CMakeFiles/odm_meshing.dir/all’ failed
make[1]: *** [modules/odm_meshing/CMakeFiles/odm_meshing.dir/all] Error 2
CMakeFiles/Makefile2:170: recipe for target ‘modules/odm_georef/CMakeFiles/odm_georef.dir/all’ failed
make[1]: *** [modules/odm_georef/CMakeFiles/odm_georef.dir/all] Error 2
Makefile:83: recipe for target ‘all’ failed
make: *** [all] Error 2
Configuration Finished
1.Make sure that you actually have VTK built or try building manually from GitHub - Kitware/VTK: Mirror of Visualization Toolkit repository (DO NOT FORGET TO BUILD VERSION 6.0)
2. Try adding LINK_DIRECTORIES(/path/to/your/VTK/build/lib) to the CMakeLists.txt and run sudo cmake -L/path/to/your/VTK/build/lib …
3. Try installing pip install PyVTK
4. If all does not work try checking /path/to/your/VTK/build/lib and /usr/bin/ld: cannot find -lfilename there should be *.so file for that if names are not same e.g there can be version written (lvtkftgl8.1.so) try writing the name without version name (lvtkftgl.so)
These worked on me. Hope it helps.
3 Likes
Hello, I am trying to install ODM in a gcloud instance, but I am stuck at the VTK install issue.
-Do I really need to install VTK 6.0.0?? (it is from 2013)
1 Like
Sorry for late answer. I assume some problem occurs on some devices when the program uses new version of vtk. To be honest i did not search why it occurs, i just looked for the solution
If you really need to use the newer version of VTK you can try 4th step on my answer. I have never tried but if you really need you can give it a try.