Closed petlist closed 5 years ago
I've already had an Ipopt installation used by several other programs on my computer. So I had to change ${prefix} and ${IPOPTINCDIR} variables in every Makefile in the project. After this compilation runs fine and tests pass successfully.
Dear Victor,
I am having a compilation error while trying to build PSOPT with the provided installation script. The error:
`/usr/bin/g++ -c -O0 -g -I/home/listov/adolc_base/include -I../../dmatrix/include -I/cppexamples -I../src -DLAPACK -DUNIX -DSPARSE_MATRIX -DUSE_IPOPT -I../../SuiteSparse/CXSparse/Include -I../../SuiteSparse/CXSparse/../SuiteSparse_config -I../../lusol/csrc -I/home/listov/Ipopt-3.12.12/Ipopt/src/Interfaces -I/home/listov/Ipopt-3.12.12/Ipopt/src/Common -I/home/listov/Ipopt-3.12.12/Ipopt/src/LinAlg -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -fPIC -DHAVE_MALLOC -std=c++11 ../src/psopt.cxx -o ../src/psopt.o cc1plus: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for C++ In file included from ../src/psopt.cxx:40:0: ../src/psopt.h:1159:10: fatal error: IpIpoptApplication.hpp: No such file or directory
include "IpIpoptApplication.hpp"
compilation terminated. `
locate IpIpoptApplication.hpp
however, shows:/usr/include/coin/IpIpoptApplication.hpp
System: Ubuntu 18.04, gcc v7.3.0
Thanks, Peter