Cmake install error


#1

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?


#2

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?


#3

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
:confused: usrcannot/ findbin /-lvtkFiltersReebGraphld
:confused: cannot usrfind/ -lvtkFiltersReebGraphbin
//usrld/:bin cannot /findld -: lvtkGeovisCore
cannot/ usr/findbin /-lvtkGeovisCoreld
:confused: usrcannot/ binfind/ ld-:lvtkInteractionStyle
cannot/ usrfind/ bin-/lvtkInteractionStyleld
:confused: 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