Compile the source codes without building glfw and glew
- Dominant language
- C++
- Stars
- 14k
- Forks
- 2.6k
- Avg merge
- 5d 18h
- Merged PRs (30d)
- 6
Description
### Checklist
- [x] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [x] For Python issues, I have tested with the [latest development wheel](https://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [x] I have checked the [release documentation](https://www.open3d.org/docs/release/) and the [latest documentation](https://www.open3d.org/docs/latest/) (for `main` branch).
### Steps to reproduce the issue
#### I first cloned Open3D by:
```
git clone https://github.com/isl-org/Open3D.git
cd Open3D
```
#### Then, 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-$VER
```
### Error message
```shell
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.
Thanks
```
### Open3D, Python and System information
```markdown
- Operating system: Debian GNU/Linux 13 (trixie)
```
### Additional information
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running the reported CMake configuration and tracing the GLInfo dependency that remains when BUILD_GUI, BUILD_WEBRTC, and related visualization options are disabled. Inspect the build definitions and dependency paths involved in GLFW and GLEW. Done means the core Open3D build succeeds with those features disabled and no GL-related libraries are required.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system, computer-graphics
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100