Installing on ubuntu 18.04


#1

i have tried many times to install odm on the 18.04 and it fails miserably…
followed instructions from

alas i get lots of errors in red

========================
/home/ubu/drone/OpenDroneMap/OpenDroneMap-v0.4/SuperBuild/src/opengv/python/pyopengv.cpp:574:38: error: ‘t12’ was not declared in this scope
bpn::array &t12,
^~~
/home/ubu/drone/OpenDroneMap/OpenDroneMap-v0.4/SuperBuild/src/opengv/python/pyopengv.cpp:575:26: error: ‘bpn’ has not been declared
bpn::array &R12 )
^~~
/home/ubu/drone/OpenDroneMap/OpenDroneMap-v0.4/SuperBuild/src/opengv/python/pyopengv.cpp:575:38: error: ‘R12’ was not declared in this scope
bpn::array &R12 )
^~~
/home/ubu/drone/OpenDroneMap/OpenDroneMap-v0.4/SuperBuild/src/opengv/python/pyopengv.cpp:576:1: error: expected ‘,’ or ‘;’ before ‘{’ token
{
^
/home/ubu/drone/OpenDroneMap/OpenDroneMap-v0.4/SuperBuild/src/opengv/python/pyopengv.cpp: In function ‘void init_module_pyopengv()’:
/home/ubu/drone/OpenDroneMap/OpenDroneMap-v0.4/SuperBuild/src/opengv/python/pyopengv.cpp:596:18: error: ‘boost::python::numeric’ has not been declared
boost::python::numeric::array::set_module_and_type(“numpy”, “ndarray”);
^~~~~~~
python/CMakeFiles/pyopengv.dir/build.make:62: recipe for target ‘python/CMakeFiles/pyopengv.dir/pyopengv.o’ failed
make[5]: *** [python/CMakeFiles/pyopengv.dir/pyopengv.o] Error 1
CMakeFiles/Makefile2:159: recipe for target ‘python/CMakeFiles/pyopengv.dir/all’ failed
make[4]: *** [python/CMakeFiles/pyopengv.dir/all] Error 2
Makefile:129: recipe for target ‘all’ failed
make[3]: *** [all] Error 2
CMakeFiles/opengv.dir/build.make:113: recipe for target ‘opengv/stamp/opengv-build’ failed
make[2]: *** [opengv/stamp/opengv-build] Error 2
CMakeFiles/Makefile2:216: recipe for target ‘CMakeFiles/opengv.dir/all’ failed
make[1]: *** [CMakeFiles/opengv.dir/all] Error 2
Makefile:83: recipe for target ‘all’ failed
make: *** [all] Error 2
Compiling build
– The C compiler identification is GNU 7.3.0
– The CXX compiler identification is GNU 7.3.0
– Check for working C compiler: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc – 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/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– No build type selected, default to Release
– The imported target “vtkRenderingPythonTkWidgets” references the file
“/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so”
but this file does not exist. Possible reasons include:

  • The file was deleted, renamed, or moved to another location.
  • An install or uninstall procedure did not complete successfully.
  • The installation package was faulty and contained
    “/usr/lib/cmake/vtk-6.3/VTKTargets.cmake”
    but not all the files it references.

– The imported target “vtk” references the file
“/usr/bin/vtk”
but this file does not exist. Possible reasons include:

  • The file was deleted, renamed, or moved to another location.
  • An install or uninstall procedure did not complete successfully.
  • The installation package was faulty and contained
    “/usr/lib/cmake/vtk-6.3/VTKTargets.cmake”
    but not all the files it references.

– Could NOT find PCL (missing: PCL_DIR)
CMake Error at modules/odm_georef/CMakeLists.txt:19 (find_package):
Could not find a package configuration file provided by “OpenCV” with any
of the following names:

OpenCVConfig.cmake
opencv-config.cmake

Add the installation prefix of “OpenCV” to CMAKE_PREFIX_PATH or set
“OpenCV_DIR” to a directory containing one of the above files. If “OpenCV”
provides a separate development package or SDK, be sure it has been
installed.

– Configuring incomplete, errors occurred!
See also “/home/ubu/drone/OpenDroneMap/OpenDroneMap-v0.4/build/CMakeFiles/CMakeOutput.log”.
Configuration Finished
ubu@ubu:~/drone/OpenDroneMap/OpenDroneMap-v0.4$

==================================================

i am not a unix buff but also not entirely clueless

anyone can make out the problem from the above? any advice?


#2

Hey @divething have you tried to use docker? I wouldn’t recommend compiling ODM on Ubuntu 18.04.


#3

I get similar errors when installing on Ubuntu 16.04.5 LTS.