Dear Prof. Zaytsev, Спасибо за добрый ответ. I apologise in advance for our naive queries. If I understand correctly, we do not need to download+install by cmake the NLopt-2.6.2 package, rather we can just type in *sudo apt install libnlopt-dev (or brew install nlopt in mac) *in the terminal and the required libraries will be installed. We tried to download the package NLopt-2.6.2 earlier, followed by cmake+make+make install. Though the 'make install' step apparently finished correctly without errors, while running the example files within the test directory we found the following error.
Shiladityas-MacBook-Pro:test shiladitya$ gcc -lnlopt -lm -o shila lorentzfit.c *lorentzfit.c:81:5: **warning: **'nlopt_minimize' is deprecated* * [-Wdeprecated-declarations]* nlopt_minimize(NLOPT_LN_NEWUOA_BOUND, 3, lorentzerr, &d, lb, ub, p, ... * ^* */usr/local/include/nlopt.h:317:164: note: *'nlopt_minimize' has been explicitly marked deprecated here ...xtol_rel, const double *xtol_abs, int maxeval, double maxtime) NLOPT_DEP... * ^* */usr/local/include/nlopt.h:305:43: note: *expanded from macro 'NLOPT_DEPRECATED' # define NLOPT_DEPRECATED __attribute__((deprecated)) * ^* *lorentzfit.c:86:5: **warning: **'nlopt_minimize' is deprecated* * [-Wdeprecated-declarations]* nlopt_minimize(NLOPT_LN_COBYLA, 3, lorentzerr, &d, lb, ub, p, &minf... * ^* */usr/local/include/nlopt.h:317:164: note: *'nlopt_minimize' has been explicitly marked deprecated here ...xtol_rel, const double *xtol_abs, int maxeval, double maxtime) NLOPT_DEP... * ^* */usr/local/include/nlopt.h:305:43: note: *expanded from macro 'NLOPT_DEPRECATED' # define NLOPT_DEPRECATED __attribute__((deprecated)) * ^* *lorentzfit.c:91:5: **warning: **'nlopt_minimize' is deprecated* * [-Wdeprecated-declarations]* nlopt_minimize(NLOPT_LN_NELDERMEAD, 3, lorentzerr, &d, lb, ub, p, &m... * ^* */usr/local/include/nlopt.h:317:164: note: *'nlopt_minimize' has been explicitly marked deprecated here ...xtol_rel, const double *xtol_abs, int maxeval, double maxtime) NLOPT_DEP... * ^* */usr/local/include/nlopt.h:305:43: note: *expanded from macro 'NLOPT_DEPRECATED' # define NLOPT_DEPRECATED __attribute__((deprecated)) * ^* *lorentzfit.c:96:5: **warning: **'nlopt_minimize' is deprecated* * [-Wdeprecated-declarations]* nlopt_minimize(NLOPT_LN_SBPLX, 3, lorentzerr, &d, lb, ub, p, &minf, ... * ^* */usr/local/include/nlopt.h:317:164: note: *'nlopt_minimize' has been explicitly marked deprecated here ...xtol_rel, const double *xtol_abs, int maxeval, double maxtime) NLOPT_DEP... * ^* */usr/local/include/nlopt.h:305:43: note: *expanded from macro 'NLOPT_DEPRECATED' # define NLOPT_DEPRECATED __attribute__((deprecated)) Thank you, Dr. Arnab Chaudhuri Shiladitya Porey Dr. Siddhartha Karmakar On Thu, 10 Sep 2020 at 22:40, Yury V. Zaytsev <y...@shurup.com> wrote: > On Thu, 10 Sep 2020, Shiladitya Porey wrote: > > > Respected Professors,We want to install NLopt in Mac OS. Do you need to > install Matlab, Guile, Swig, and Octave? At the moment we do not > > have access to Matlab. Is there any way to overcome this without Matlab? > > No, you can just disable the generation of the corresponding bindings and > use NLopt directly from C/C++. > > P.S. В Новосибирске холодно! :-) > > -- > Sincerely yours, > Yury V. Zaytsev
_______________________________________________ NLopt-discuss mailing list NLopt-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss