Installing the WORHP interface

530 views
Skip to first unread message

Fredrik Magnusson

unread,
May 14, 2014, 10:42:50 AM5/14/14
to casadi...@googlegroups.com
I am finally trying to use WORHP, but I am unable to get CasADi to find it. I am using CasADi 1.8.2. It wasn't clear to me where to set the WORHP evnironment variable (my knowledge on these things is probably subpar), so that may be what I have done wrong (I tried a few different seemingly plausible candidates). See my cmake output below.

/work/fredrikm/casadi$ mkdir build
/work/fredrikm/casadi$ cd build
/work/fredrikm/casadi/build$ echo $WORHP
/work/fredrikm/libworhp_fedora20_amd64_gcc48_1.6-2
/work/fredrikm/casadi/build$ cmake ..
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- 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
-- 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
-- The Fortran compiler identification is GNU
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- Flag needed for enabling C++11 features: -std=gnu++11
-- x86_64 architecture detected - setting flag -fPIC
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - found
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.1")
-- A library with BLAS API found.
-- Looking for Fortran cheev
-- Looking for Fortran cheev - found
-- A library with LAPACK API found.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for one of the modules 'ipopt'
-- Detected an IPOPT configuration without sIPOPT headers. Build will proceed, but without sIPOPT functionality.
-- Found IPOPT: ipopt;lapack;blas;m;dl;coinmumps;blas;gfortran;m;quadmath;coinhsl;blas;gfortran;m;quadmath;coinmetis 
-- Could not find KNITRO include dir
-- Could not find KNITRO library
-- Could not find CPLEX include dir
-- Could not find CPLEX libraries
-- Could not find MA57
-- MA57 libraries not found. Falling back to MA27
-- Could not find MA27
-- Could not find OOQP include dir
-- Could not find SNOPT include dir
-- Could not find Snopt libs
-- Could not find MATLAB include dir
-- Could not find Matlab libs
-- Could not find SNOPT include dir
-- Could not find Snopt libs
-- Could not find MATLAB include dir
-- Could not find Matlab libs
-- Found SWIG: /usr/bin/swig (found version "2.0.11")
-- Found PythonLibs: /usr/lib64/libpython2.7.so (found version "2.7.5")
-- Python executable is /usr/bin/python
-- numpy.get_include() is /usr/lib64/python2.7/site-packages/numpy/core/include
-- Numpy path found: /usr/lib64/python2.7/site-packages/numpy/core/include/numpy
-- Python libs: /usr/lib64/libpython2.7.so
-- Numpy includes: /usr/lib64/python2.7/site-packages/numpy/core/include/numpy;/usr/include
-- Numpy libs: /usr/lib64/python2.7/site-packages/numpy/core/multiarray.so
-- Found PythonInterp: /usr/bin/python (found version "2.7.5")
--
-- The following features have been enabled:

 * dynamic-loading , Compile with support for dynamic loading of generated functions (needed for ExternalFunction)
 * using-c++11 , Using C++11 features (improves efficiency and is required for some examples).
 * sundials-interface , Interface to the ODE/DAE integrator suite SUNDIALS.
 * csparse-interface , Interface to the sparse direct linear solver CSparse.
 * lapack-interface , Interface to LAPACK.
 * ipopt-interface , Interface to the NLP solver Ipopt.
 * qpoases-interface , Interface to the active-set QP solver qpOASES.
 * dsdp-interface , Interface to the interior point SDP solver DSDP (requires BLAS and LAPACK).

-- The following OPTIONAL packages have been found:

 * LibXml2
 * BLAS
 * Threads
 * LAPACK
 * PkgConfig
 * IPOPT
 * SWIG
 * NUMPY
 * PythonInterp

-- The following features have been disabled:

 * opencl-support , Enable just-in-time compiliation to CPUs and GPUs with OpenCL.
 * get-ipopt , Download and build Ipopt.
 * knitro-interface , Interface to the NLP solver KNITRO.
 * cplex-interface , Interface to the QP solver CPLEX.
 * ooqp-interface , Interface to the QP solver OOQP (requires BLAS).
 * sqic-interface , Interface to the QP solver SQIC.
 * slicot-interface , Interface to the controls library SLICOT.
 * worhp-inteface , Interface to the NLP solver Worhp (requires LibXml2 headers).

-- The following OPTIONAL packages have not been found:

 * KNITRO
 * CPLEX
 * MA57
 * MA27
 * OOQP
 * MATLAB
 * OCTAVE

-- Configuring done
-- Generating done
-- Build files have been written to: /work/fredrikm/casadi/build


Fredrik Magnusson

unread,
May 14, 2014, 11:51:49 AM5/14/14
to casadi...@googlegroups.com
For posterity, Joris informed me that CMake needs a flag activated in order to look for WORHP.

cmake -D WITH_WORHP=ON ..
Reply all
Reply to author
Forward
0 new messages