robotology / idyntree

Multibody Dynamics Library designed for Free Floating Robots
BSD 3-Clause "New" or "Revised" License
177 stars 67 forks source link

Unable to compile the octave bindings #913

Open GiulioRomualdi opened 3 years ago

GiulioRomualdi commented 3 years ago

I installed octave on a clean ubuntu 20.04 distro. When I enabled the option IDYNTREE_USES_OCTAVE, I got the following error

-- Found YARP: /home/giulio/robot-code/robotology-superbuild/build/install/lib/cmake/YARP (found version "3.4.6")
-- Found YARP: /home/giulio/robot-code/robotology-superbuild/build/install/lib/cmake/YARP (found version "3.4.6")
-- Found ICUB 1.20.0 (Components: iCubDev ctrlLib skinDynLib iKin iDyn learningMachine perceptiveModels actionPrimitives optimization)
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find Octave (missing: OCTAVE_INCLUDE_DIRS OCTAVE_LIBRARIES)
  (Required is at least version "4.0")
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindOctave.cmake:151 (find_package_handle_standard_args)
  bindings/matlab/CMakeLists.txt:148 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/giulio/robot-code/robotology-superbuild/build/src/iDynTree/CMakeFiles/CMakeOutput.log
traversaro commented 3 years ago

Did you installed the liboctave-dev package?