- Clone the nlopt library from https://github.com/stevengj/nlopt.git
- Replace CMakeLists.txt present in nlopt folder with our CMakeLists.txt
- Replace slsqp.c from nlopt/src/algs/slsqp/slsqp.c with our slsqp.cpp
Steps To Build Nlopt:
- cd nlopt
- mkdir build
- cd build
- cmake ..
- make
- sudo make install