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

120.6. meshoptimizer-1.3

Mesh optimisation library — vertex cache, overdraw, simplification and compression — and gltfpack

1.3-1 · MIT · 1.6 SBU · 841.6 KiB, 10 files · 41_system, 9 of 1047 · ports/core/3d/meshoptimizer

Homepage: https://meshoptimizer.org/

Depends on: cmake, ninja.

Required by (2): blender, qgis.

Sources: meshoptimizer-1.3.tar.gz (419.3 KiB). Every step kpkg takes applies to this port.

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

build.sh:

cmake -S . -B build -G Ninja \
	-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DCMAKE_SKIP_INSTALL_RPATH=ON \
	-DMESHOPT_BUILD_SHARED_LIBS=ON \
	-DMESHOPT_SOVERSION=1 \
	-DMESHOPT_BUILD_GLTFPACK=ON \
	-DMESHOPT_BUILD_DEMO=OFF \
	-DMESHOPT_INSTALL=ON \
	-DMESHOPT_WERROR=OFF
cmake --build build
DESTDIR=$PKG cmake --install build

Programs: gltfpack.

Libraries: libmeshoptimizer.so.

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