Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with make install Ipopt #7

Open
rzu512 opened this issue Oct 18, 2018 · 3 comments
Open

Problem with make install Ipopt #7

rzu512 opened this issue Oct 18, 2018 · 3 comments

Comments

@rzu512
Copy link

rzu512 commented Oct 18, 2018

  1. Download Ipopt as a zip file from https://github.com/coin-or/Ipopt

  2. Unzip to Ipopt-master

  3. copy the files in Ipopt subdirectory of this githubproject to Ipopt-master directory

  4. Within the Ipopt-master directory mkdir build, and mkdir out

  5. cd build

  6. cmake .. -DCMAKE_PREFIX=$PWD/../out -DCMAKE_BUILD_TYPE

  7. make
    That builds a static library: build/bin/libIpopt.a

  8. Nothing in the include directories.

There is no file in <>/Ipopt-master/build/Dependencies/{bin, include, or lib}.

Installation directory: <>/Ipopt-master/build/ipopt_binary
Build type: RELEASE
-- Include directories: <>/Ipopt-master/build/Dependencies/./include;<>/Ipopt-master/build/Dependencies/./include/ampl
-- Link directories: <>/Ipopt-master/build/Dependencies/./lib

There is no include files in the "include directories".

  1. make install
    make: *** No rule to make target 'install'. Stop.
@ycollet
Copy link
Owner

ycollet commented Oct 18, 2018 via email

@ycollet
Copy link
Owner

ycollet commented Oct 23, 2018

Hello,

Sorry for the delay. I have now a first version of the install part. I also changed the way ipopt is compiled and now, If you select ASL / AMPL, the ipopt executable is generated and installed.
Can you try these last changes and tell me if it's OK for you.

@rzu512
Copy link
Author

rzu512 commented Oct 25, 2018

I made a hack that builds ipopt as in here: http://oproject.org/pages/Ipopt.html
But that requires setting the LD_LIBRARY_PATH to the location of the shared libraries.
I might try this project later.

By the way, I tried to use "add_subdirectory" to include this project as a sub-project. Had to at least change "CMAKE_BINARY_DIR" to "CMAKE_CURRENT_BINARY_DIR".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants