On Oct 16, 2010, at 2:59 PM, Per-Olof Sturesson wrote:
For future purposes you may want communicate these steps I followed:

1. Download both packages nlopt-2.2.1-dll.zip nlopt-2.2.1.tar.gz and unpack them. 2. Run dlltool (found in the <Octave version>\mingw32\bin): dlltool --def-input libnlopt-0.def --dllname libnlopt-0.dll --output-lib libnlopt-0.lib
3. Download "nlopt_optimize_usage.h" from 
http://jdj.mit.edu/~stevenj/nlopt_optimize_usage.h
4. Compile "nlopt_optimize-oct.cc in <nlopt version>\octave using mkoctfile: mkoctfile -I<path to nlopt include files> -L<path to nlopt libraries> -lnlopt-0 --output nlopt_optimize.oct nlopt_optimize-oct.cc -v
5. Move libnlopt-0.dll to <Octave version>\bin


Great, thanks, I'll post this info on the web page.

(In the future, I'll just bundle a pre-built nlopt_optimize_usage.h file with the .tar.gz, since there is no reason this has to be built on the end-user's machine.)

Steven

_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss

Reply via email to