-
Notifications
You must be signed in to change notification settings - Fork 159
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
Help Installing Ifopt-Ipopt w/o catkin #13
Comments
Since catkin is not installed in you system, you will have to remove the "find_package(catkin REQUIRED)" line and all others involving "catkin". Then you will need to ensure that when building "ifopt_ipopt", this project finds "ifopt_core", possibly through cmake's "add_subdirectory()" command and others. This linking of projects is where catkin is most handy. |
@shoshievass I have a similar need, so I'll have a crack at this tomorrow. |
@jwdinius Awesome! Please let me know how it goes! |
I will submit a pr that you can look at in the next few days. |
I have submitted a PR for this: #15. Please review and provide feedback when you get the chance. |
Great, thanks @jwdinius ! |
I'm changing the pr to work-in-progress so you all can have a look at it and make comments. I would like to clean up the implementation a little more before it's merged. |
Hi @jwdinius, @shoshievass Thanks for your help on this @jwdinius, sorry I couldn't merge your PR, I decided to do some beneficial structural code improvements as well while adding the cmake features. |
No worries. I actually thought that I had updated the PR with other work I had done, but I guess I was mistaken. For your reference, https://github.com/jwdinius/ifopt/tree/pure_cmake. I followed the outline provided by kindr in most places, including setting up package exporting. Now, ifopt_ipopt(snopt) can use I was able to verify that the packages were able to found from an external cmake project built with unit tests. Hopefully something in my repo will be of use to you. Cheers! |
Hi, ~/MyProject$ ls $cmake --build build -- -j3 collect2: error: ld returned 1 exit status |
@sapan-ostic It looks like ipopt can't find blas. Are you sure that your libipopt.so works as expected? Did you follow the build stages at https://www.coin-or.org/Ipopt/documentation/node10.html? Are you working on linux? You could just apt install ipopt and it will handle the dependencies for you. If you run into other problems, you could look at my fork https://github.com/jwdinius/ifopt. I also wrote a blog post about the conversion process https://jwdinius.github.io/blog/2018/cmake/. Hopefully one of these references will help. Good luck! |
I am having the same issue as @sapan-ostic.
And it gives me:
|
I solved this by reinstall the ipopt with BLAS. Aka, remove the |
I'm hoping to build Ifopt (with ipopt in particular) on a Mac-OSX without the use of catkin.
I have Ipopt and Eigen installed properly, but I'm not sure about which lines need to be added/changed for a standard
mkdir build; cd build; cmake ..
to work.In particular, I've put in my Ipopt directory in the
set(IPOPT_DIR ... )
line of CMakeLists.txt but I'm not totally sure what it means to ensure that "IPOPT headers and library are installed; somewhere in the default search paths", and I got the following error:Apologies for the novice question but I would very much appreciate some assistance!
The text was updated successfully, but these errors were encountered: