CMake Options

This page is supposed to document the CMake switches you can use when building Minetest. These options are properly documented in the official README file. Since there can be some changes, this page might be outdated.

General
- Linux only; directory where bzlib.h is located

- Linux only; path to libbz2.a/libbz2.so

- path to Irrlicht.dll

- directory that contains IrrCompileConfig.h

- path to libIrrlicht.a/libIrrlicht.so/libIrrlicht.dll.a

- Only if you want to use LuaJIT; directory where luajit.h is located

- Only if you want to use LuaJIT; path to libluajit.a/libluajit.so

- Only if compiling with MinGW; path to mingwm10.dll

- Only if you want to use SQLite from your OS; directory that contains sqlite3.h

- Only if you want to use the SQLite from your OS; path to libsqlite3.a/libsqlite3.so

- Only on Linux; path to libXXf86vm.a/libXXf86vm.so

- Only on Windows; path to zlibwapi.dll

- directory where zlib.h is located

- path to libz.a/libz.so/zlibwapi.lib

cURL
- Only on Windows; path to libcurl.dll

- directory where curl.h is located

- path to libcurl.a/libcurl.so/libcurl.lib

OpenGL ES
- directory that contains egl.h

- path to libEGL.a/libEGL.so

- directory that contains gl2.h

- path to libGLESv2.a/libGLESv2.so

Freetype2
- directory that contains an freetype directory with files such as ftimage.h in it

- directory that contains ft2build.h

- path to libfreetype.a/libfreetype.so/freetype.lib

Gettext
- Only on Windows; path to libintl3.dll

- Only on Windows; path to libiconv2.dll

- directory that contains iconv.h

- Only on Windows; path to libintl.dll.a

- path to msgfmt/msgfmt.exe

LevelDB
- directory that contains db.h

- path to libleveldb.a/libleveldb.so/libleveldb.dll

Redis
- directory that contains hiredis.h

- path to libhiredis.a/libhiredis.so

Sound
- Only on Windows; path to libogg.dll

- directory that contains an ogg directory which contains ogg.h

- path to libogg.a/libogg.so/libogg.dll.a

- Only on Windows; path to OpenAL32.dll

- directory that contains an AL directory which contains al.h

- path to libopenal.a/libopenal.so/OpenAL32.lib

- Only on Windows; path to libvorbisfile-3.dll

- path to libvorbisfile.a/libvorbisfile.so/libvorbisfile.dll.a

- Only on Windows; path to libvorbis-0.dll

- directory that contains a directory vorbis with vorbisenc.h inside

- path to libvorbis.a/libvorbis.so/libvorbis.dll.a