-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I am trying to install the R package following these instructions, but I get the following error:
---------------------------------------- NLOPT
-- Checking for NLOPT with Version 2.7.1
Can't find NLOPT, Installing it instead ..
-- Fetching nlopt v2.7.1 from https://github.com/stevengj/nlopt
CMake Warning:
Ignoring extra path from command line:
"/ExaGeoStatCPP/installdir/_deps/NLOPT/nlopt-src/bin/ "
CMake Deprecation Warning at CMakeLists.txt:15 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- NLopt version 2.7.1
CMake Warning (dev) at CMakeLists.txt:299 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at CMakeLists.txt:300 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/FindNumPy.cmake:45 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt:301 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find Guile (missing: GUILE_EXECUTABLE GUILE_ROOT_DIR) (found version "1.8.8")
-- Could NOT find Octave (missing: OCTAVE_EXECUTABLE OCTAVE_ROOT_DIR OCTAVE_INCLUDE_DIRS OCTAVE_LIBRARIES)
-- Could NOT find Matlab (missing: Matlab_INCLUDE_DIRS Matlab_MEX_LIBRARY Matlab_MEX_EXTENSION Matlab_MX_LIBRARY MX_LIBRARY MAIN_PROGRAM) (found version "NOTFOUND")
-- Configuring done (0.6s)
-- Generating done (0.9s)
-- Build files have been written to: /ExaGeoStatCPP/installdir/_deps/NLOPT/nlopt-src/bin
[ 1%] Built target generate-fortran
[ 3%] Built target generate-cpp
[ 4%] Built target nlopt_python_swig_compilation
[ 85%] Built target nlopt
[ 91%] Building CXX object src/swig/CMakeFiles/nlopt_python.dir/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx.o
[ 96%] Built target t_tutorial
[ 98%] Built target testopt
/ExaGeoStatCPP/installdir/_deps/NLOPT/nlopt-src/bin/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx: In Funktion »double func_python(unsigned int, const double*, double*, void*)«:
/ExaGeoStatCPP/installdir/_deps/NLOPT/nlopt-src/bin/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx:5090:22: Fehler: »PyEval_CallObject« wurde in diesem Gültigkeitsbereich nicht deklariert; meinten Sie »PyObject_CallObject«?
5090 | PyObject *result = PyEval_CallObject((PyObject *) f, arglist);
| ^~~~~~~~~~~~~~~~~
| PyObject_CallObject
/ExaGeoStatCPP/installdir/_deps/NLOPT/nlopt-src/bin/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx: In Funktion »void mfunc_python(unsigned int, double*, unsigned int, const double*, double*, void*)«:
/ExaGeoStatCPP/installdir/_deps/NLOPT/nlopt-src/bin/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx:5127:19: Fehler: »PyEval_CallObject« wurde in diesem Gültigkeitsbereich nicht deklariert; meinten Sie »PyObject_CallObject«?
5127 | PyObject *res = PyEval_CallObject((PyObject *) f, arglist);
| ^~~~~~~~~~~~~~~~~
| PyObject_CallObject
make[2]: *** [src/swig/CMakeFiles/nlopt_python.dir/build.make:76: src/swig/CMakeFiles/nlopt_python.dir/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx.o] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:224: src/swig/CMakeFiles/nlopt_python.dir/all] Fehler 2
make: *** [Makefile:166: all] Fehler 2
CMake Error at cmake/macros/BuildDependency.cmake:108 (execute_process):
execute_process failed command indexes:
1: "Child return code: 2"
Call Stack (most recent call first):
cmake/macros/ImportDependency.cmake:61 (BuildDependency)
cmake/ImportNLOPT.cmake:34 (ImportDependency)
CMakeLists.txt:146 (include)
-- Configuring incomplete, errors occurred!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels