Comments (5)
Gravity will look for the h files too: https://github.com/coin-or/Gravity/blob/master/cmake/FindIPOPT.cmake#L46
you can add more HINTS to this cmake file or just specify the root directory to Ipopt using export IPOPT_ROOT_DIR="path"
from gravity.
No, IPOPT_ROOT_DIR
doesn't work.
You should use:
pkg_check_modules(IPOPT REQUIRED IMPORTED_TARGET ipopt)
from gravity.
It has worked so far, I do realize you can use pkg_config, but I wouldn't consider this an "issue".
from gravity.
No, it doesn't work with -DIPOPT_ROOT_DIR=/usr/local
:
-- Enable IPOPT
Looking for Ipopt in /usr/local
Cannot find Ipopt, will try pulling it from github.
-- Configuring done
-- Generating done
from gravity.
I printed variables:
message(STATUS "IPOPT_INCLUDE_DIR=${IPOPT_INCLUDE_DIR}")
message(STATUS "IPOPT_LIBRARY=${IPOPT_LIBRARY}")
message(STATUS "IPOPT_LIBRARY2=${IPOPT_LIBRARY2}")
find_package_handle_standard_args(IPOPT DEFAULT_MSG IPOPT_LIBRARY IPOPT_LIBRARY2 IPOPT_INCLUDE_DIR)
It printed:
Looking for Ipopt in /disk-samsung/freebsd-ports/math/gravity/work/.build/third_party/Install/ipopt/build
-- IPOPT_INCLUDE_DIR=/usr/local/include/coin
-- IPOPT_LIBRARY=/usr/local/lib/libipopt.so
-- IPOPT_LIBRARY2=
Cannot find Ipopt, will try pulling it from github.
-- Configuring done
-- Generating done
-- Build files have been written to: /disk-samsung/freebsd-ports/math/gravity/work/.build
Both IPOPT_INCLUDE_DIR
and IPOPT_LIBRARY
are found, but it still says that it can't find ipopt.
from gravity.
Related Issues (13)
- Conflicts with OpenCV HOT 1
- Only installs the armadillo library and headers HOT 1
- Gravity for windows HOT 12
- link error when issuing make HOT 4
- installation with Mosek HOT 35
- Possible Bug HOT 10
- cmake option Ipopt has no effect HOT 1
- Fails to find clp: Could NOT find CLP (missing: UTILS_LIBRARY CLP_LIBRARY CLP_INCLUDE_DIR) HOT 3
- Project doesn't install anything HOT 8
- Please consider fixing clang compiler warnings HOT 1
- Builds libgravityStatic.a but doesn't install it HOT 1
- LNK2001 Error "Unresolved External Symbol" using Visual Studio 2019 on Windows 10 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gravity.