r - Compiling ipopt for ipoptr on Mac -
how compile ipopt
on mac os x natively tuned accelerate blas/lapack in order able use r
ipoptr
?
there several configure options need specified:
- option enable necessary dynamic loading r add:
--with-pic
- in order enable native blas/lapack add both:
--with-blas="-framework accelerate" --with-lapack=""
resulting configure command:
../configure --disable-shared \ f77=gfortran fflags="-fexceptions -m64 -fbackslash" \ cflags="-fno-common -no-cpp-precomp -fexceptions -arch x86_64 -m64" \ cxxflags="-fno-common -no-cpp-precomp -fexceptions -arch x86_64 -m64" \ --with-blas="-framework accelerate" --with-lapack="" --with-pic
Comments
Post a Comment