Hi Bettina,

I followed the following steps:

1. Download
http://ab-initio.mit.edu/wiki/index.php/NLopt#Download_and_installation and
the CMAKE files http://ab-initio.mit.edu/nlopt/CMakeLists.txt
http://ab-initio.mit.edu/nlopt/config.cmake.h.in
2. Put the cmake files in the root folder of the source files
3. If using the CMAKE gui for windows - configure and generate the project
using Visual studio Win64 generator (important step!)
4. Builld the project in VS (make sure its 64 bit!)
5. use the mex compilor on nlopt_optimize.c making sure to link it to the
new dll you generated.

Hope it helps, let me know if you run into any problems.

Regards,
Radhika


On Wed, Oct 16, 2013 at 3:12 PM, Bettina Kutschera <
[email protected]> wrote:

> Hello again,****
>
> has anybody managed to get the NLopt plugin running with MatLab in a 64bit
> version? How can I create a 64bit DLL? I can only create a 64bit LIB file.
> ****
>
> When I am mexing the nlopt_optimize.c file with the link to the
> libnlopt.lib, I always get the error message “unresolved external symbol”.
> Loading the DLL as library with the header file gives the error “Not a
> Valid Win32 Application”.****
>
> I have only basic knowledge of Library Files, so would be nice if somebody
> could give me a hand****
>
> ** **
>
> Maybe someone who is using MatLab and NLopt can give me a short
> instruction how it works?****
>
>
> Best regards,****
>
> Bettina Kutschera****
>
> ** **
>
> _______________________________________________
> NLopt-discuss mailing list
> [email protected]
> http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss
>
>
_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss

Reply via email to