stevengj / nlopt

library for nonlinear optimization, wrapping many algorithms for global and local, constrained or unconstrained, optimization
Other
1.89k stars 591 forks source link

Matlab directory empty after successfully build nlopt in Windows 10 #292

Open tboutelier opened 5 years ago

tboutelier commented 5 years ago

Hi, I don't know if I am in the correct place to ask this question, but i have some issues to build nlopt 2.6.1 on windows 10, to collect the matlab functions generated by the project. I used CMake 3.15.2, Matlab R2017a, and Visual Studio 2017 15.9.15. Within CMake Gui, I specified where the source code is, and where to build the binaries. On configure, I chose Visual Studio 15 2017 as generator for the project, x64 for the platform generator, and use the default native compilers. The configuration step was successfull, it successfully found Matlab (version 9.2) and found the components: MX_LIBRARY. Clicking on Generate was successfull. Clicking on Open Project successfully launch VS 2017 with the project. In Visual Studio, I chose build Solution, which was successfull. After this step, I am able to find the dll generated by the project (in build/Release), but the buil/Matlab directory keeps desperately empty! I see that there is a project in the solution, wich is called nlopt_optimize-mex, which could generate what I am looking for. However it is built in a directory related to Octave: build\src\octave\Release\ Does anyone has had the same issue as me? Thanks for the help!

jschueller commented 5 years ago

yes, look in the octave dir (the .m sources are shared)

tboutelier commented 5 years ago

Okay thanks! But isn't it an issue? I mean, the matlab material should be located in the Matlab directory don't you think?