Code Monkey home page Code Monkey logo

Comments (5)

hhijazi avatar hhijazi commented on August 18, 2024

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.

yurivict avatar yurivict commented on August 18, 2024

No, IPOPT_ROOT_DIR doesn't work.

You should use:

pkg_check_modules(IPOPT REQUIRED IMPORTED_TARGET ipopt)

from gravity.

hhijazi avatar hhijazi commented on August 18, 2024

It has worked so far, I do realize you can use pkg_config, but I wouldn't consider this an "issue".

from gravity.

yurivict avatar yurivict commented on August 18, 2024

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.

yurivict avatar yurivict commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.