when I tried to install acados on a freshly setup Ubuntu 17.04 with cmake installed I got the following error:
$ cmake ..
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.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 chosen. Valid build types are:
Release (default), Debug, Test, NoExternalLibs
--- Configuring acados with build type: Release ---
-- acados will be installed in /home/tobi/local
CMake Error at /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.7/Modules/FindSWIG.cmake:63 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
swig/CMakeLists.txt:22 (find_package)
Up to there everything seemed to have gone smoothly.
I tried installing swig which did not resolve the issue (so far). Now I get:
$ cmake ..
-- No build type chosen. Valid build types are:
Release (default), Debug, Test, NoExternalLibs
--- Configuring acados with build type: Release ---
-- acados will be installed in /home/tobi/local
-- Found SWIG: /usr/bin/swig3.0 (found version "3.0.10")
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.5.3", minimum required is "3")
CMake Error at /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
(Required is at least version "3")
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.7/Modules/FindPythonLibs.cmake:255 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
swig/CMakeLists.txt:35 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/tobi/Documents/acados/build/CMakeFiles/CMakeOutput.log".
What am I missing? - Please let me know if you need further details.