Closed damdaepark closed 1 year ago
Hi,
There seems to be something wrong with your specified path to the Ipopt libraries (note, it should not point to the executable!):
Ipopt include files will be used from: C:\Users\Damdae\OneDrive - SNU\Installation Files\solvers\ipopt\bin\ipopt.exe/include/coin
The correct path should perhaps be:
C:\Users\Damdae\OneDrive - SNU\Installation Files\solvers\ipopt\lib
?
I guess it is not a problem with PATH. Seeing that the lines starting from 244 in CMakeLists.txt, which are about Ipopt solver, are different from Gurobi and CPLEX cases, I guess the current implementation needs an IPOPT that has been compiled from the source files.
Can someone revise CMakeLists.txt so that it can run with IPOPT executable binaries in https://github.com/coin-or/Ipopt/releases?
The binaries attached to the Ipopt releases do not include the pkg-config files that SHOT is looking for. (I excluded them, because I didn't think someone would have use for them.)
Can you try creating a ipopt.pc
in directory lib/pkgconfig
of your Ipopt download with the content
prefix=${pcfiledir}/../..
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/coin-or
Name: Ipopt
Description: Interior Point Optimizer
URL: https://github.com/coin-or/Ipopt
Version: 3.14.5
Cflags: -I${includedir}
Libs: -L${libdir} -lipopt
#Requires.private: coinmumps
Further, you need to install pkg-config (pacman -S pkg-config
under MSYS2; or see https://stackoverflow.com/questions/1710922/how-to-install-pkg-config-in-windows).
If that works, I can include the .pc files in future Ipopt binary downloads.
I will close this now. Please feel free to reopen if you still have issues.
Hi, I am trying to compile SHOT in Windows10 (64bit) by following the instructions on https://shotsolver.dev/shot/about-shot/compiling. But things are not going well, so ask if anyone can let me know a solution for this.
It's weird because Gurobi is detected while IPOPT is not. They are all in the PATH environment variable and reachable, as you can see below.