Compile the source codes without building glfw and glew
Author: BigRayLeeCreated Aug 31, 2026Updated Aug 31, 2026
Checklist
- I have searched for similar issues.
- For Python issues, I have tested with the latest development wheel.
- I have checked the release documentation and the latest documentation (for
mainbranch).
Steps to reproduce the issue
I first cloned Open3D by:
git clone https://github.com/isl-org/Open3D.git
cd Open3DThen, I built Open3D (on Debian GNU/Linux 13 (trixie)) with:
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DCMAKE_C_COMPILER=/usr/bin/gcc \
-DCMAKE_CXX_COMPILER=/usr/bin/g++ \
-DCMAKE_CXX_STANDARD=17 \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_GUI=OFF \
-DBUILD_WEBRTC=OFF \
-DBUILD_PYTHON_MODULE=OFF \
-DBUILD_JUPYTER_EXTENSION=OFF \
-DBUILD_SYCL_MODULE=OFF \
-DBUILD_ISPC_MODULE=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_UNIT_TESTS=OFF \
-DBUILD_BENCHMARKS=OFF \
-DBUILD_TENSORFLOW_OPS=OFF \
-DBUILD_PYTORCH_OPS=OFF \
-DBUNDLE_OPEN3D_ML=OFF \
-DBUILD_LIBREALSENSE=OFF \
-DBUILD_AZURE_KINECT=OFF \
-DWITH_IPP=OFF \
-DWITH_OPENMP=ON \
-DUSE_BLAS=OFF \
-DUSE_SYSTEM_GLFW=OFF \
-DUSE_SYSTEM_GLEW=OFF \
-DUSE_SYSTEM_TBB=ON \
-DUSE_SYSTEM_FMT=ON \
-DCMAKE_CXX_FLAGS="-O3 -Wno-deprecated-register -march=x86-64-v3 -Wno-error=array-bounds" \
../$PACKAGE-$VERError message
Hello
We want to use Open3D for point cloud registration. Since we only require the core functionality and specific registration algorithms, we disabled all visualization features during the build process; however, `GLInfo` appears to still depend on `glfw`. I would like to ask if it is possible to build the entire project without relying on any GL-related libraries.
ThanksOpen3D, Python and System information
- Operating system: Debian GNU/Linux 13 (trixie)Additional information
No response
Source: isl-org/Open3D