Re: [roboptim-user] Compiling ipopt-plugin on windows
Status: Beta
Brought to you by:
flamiraux
From: Thomas M. <tho...@gm...> - 2010-04-14 16:51:58
|
On Mon, Apr 12, 2010 at 10:19 AM, Thomas Moulard <tho...@gm...> wrote: > On Tue, Apr 6, 2010 at 6:00 PM, Keith François <fra...@gm...> wrote: >> Hello Thomas > > Hi Francois, sorry I have been busy last week. I forgot to answer your mail. > >> As I have explained to you earlier, we encoutered some issues during the >> installation of roboptim-ipopt-plugin on windows >> For now, I have tested two solutions (both of them work): >> >> The first one is based on the pre-compiled version of ipopt that can be >> downloaded from the ipopt repository on the Internet. >> Using it, compiling the plugin is not straightforward and requires two >> modifications: >> >> Since the symbol corresponding to the constructor of IpoptApplication that >> is used in the constructor of IpoptSolver is not exported, the linkage >> fails. >> The alternative consists in using the IpoptApplicationFactory instead. >> Although it modifies the arguments passed to the constructor : (true, false) >> instead of (false, false), this can be corrected afterwards by destroying >> the journal created. >> >> Using the macro "HAVE_CONFIG_H" for the project and for all the project >> depending on roboptim (in order to avoid the inclusion of a config file that >> does not exist in the pre-compiled version of the library). >> >> The second solution is based on a ad-hoc compilation of the ipopt sources >> and is more burdensome. >> I won't go to much into details, but basically it consists in converting the >> libraries blas, lapack and hm in static libraries (without using the f2c >> compiler but instead the g77 compiler of mingw), and compiling ipopt as a >> static library as much. >> Then these four libraries can be linked by roboptim-core-ipopt-plugin, but >> also by all the programs that use roboptim-core-ipopt-plugin. >> >> >> As a result, and if you are ok with it, I propose to use the first solution, >> so as to be more user friendly. > > Yes, installing Ipopt is already quite difficult so first solution seems more > acceptable. > >> Besides, I'd like to make the inheritance of compilation flags (as the macro >> HAVE_CONFIG_H) of roboptim easier by installing the corresponding property >> sheet in the folder $(ROBOPTIM_INSTALL_DIR)/share/msvc >> Does it suit you? > > Ok for me. > > By the way, the problems you are reporting seems to be real Ipopt bugs. > Did you report them to the Ipopt mailing-list? Patches set sent by Francois has been successfully pushed to master yesterday. Problem solved. Thanks Francois! -- Thomas Moulard http://www.linkedin.com/in/moulard |