Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

155.2. nlopt-2.11.0

Nonlinear optimisation library used by slicers and nesting tools

2.11.0-1 · LGPL-2.1-or-later AND MIT · 0.7 SBU · 903.1 KiB, 15 files · 41_system, 496 of 1047 · ports/core/math/nlopt

Homepage: https://nlopt.readthedocs.io/

Depends on: cmake.

Required by (4): libnest2d, prusaslicer, python3-pynest2d, stellarium.

Sources: nlopt-2.11.0.tar.gz (2.0 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install nlopt'

build.sh:

mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DBUILD_SHARED_LIBS=ON \
	-DCMAKE_SKIP_INSTALL_RPATH=ON \
	-DNLOPT_CXX=ON \
	-DNLOPT_FORTRAN=OFF \
	-DNLOPT_PYTHON=OFF \
	-DNLOPT_OCTAVE=OFF \
	-DNLOPT_MATLAB=OFF \
	-DNLOPT_GUILE=OFF \
	-DNLOPT_JAVA=OFF \
	-DNLOPT_SWIG=OFF \
	-DNLOPT_TESTS=OFF
make
make DESTDIR=$PKG install

Libraries: libnlopt.so.

Directories: /usr/lib/cmake/nlopt, /usr/share/licenses/nlopt.