isl-org / isl-org/Open3D

build open3d failed with BUILD_FILAMENT_FROM_SOURCE

Open
#6,005 1 comment 0 reactions 0 assignees View on GitHub
build/install
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](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).

### Steps to reproduce the issue

#### I first cloned Open3D by:
```
git clone https://github.com/isl-org/Open3D.git
cd Open3D
```

#### Then, I build Open3D (on Ubuntu 20.04, with CUDA 11.5) with:
```
mkdir build
cd build
cmake -DCMAKE_FIND_ROOT_PATH=/usr/lib/x86_64-linux-gnu -DCMAKE_C_COMPILER=/usr/bin/x86_64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=/usr/bin/x86_64-linux-gnu-g++ -DCMAKE_INSTALL_PREFIX=/opt/x86_64/open3d_0.16 -DBUILD_SHARED_LIBS=ON -DBUILD_PYTHON_MODULE=OFF -DBUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Release -DGLIBCXX_USE_CXX11_ABI=ON -DBUILD_FILAMENT_FROM_SOURCE=ON ..
make -j$(nproc)
```

### Error message

```shell
/test/3d/Open3D_with_deps/Open3D-0.16.0/build/filament/src/ext_filament/filament/backend/src/opengl/PlatformEGLHeadless.cpp:58:5: error: unknown type name 'PFNEGLGETDISPLAYPROC'; did you mean 'PFNGLGETDOUBLEVPROC'?
PFNEGLGETDISPLAYPROC getDisplay;
^~~~~~~~~~~~~~~~~~~~
PFNGLGETDOUBLEVPROC
/test/3d/Open3D_with_deps/Open3D-0.16.0/build/filament/src/ext_filament/libs/bluegl/include/GL/glcorearb.h:127:25: note: 'PFNGLGETDOUBLEVPROC' declared here
typedef void (APIENTRYP PFNGLGETDOUBLEVPROC) (GLenum pname, GLdouble *data);
^
/test/3d/Open3D_with_deps/Open3D-0.16.0/build/filament/src/ext_filament/filament/backend/src/opengl/PlatformEGLHeadless.cpp:59:5: error: unknown type name 'PFNEGLINITIALIZEPROC'
PFNEGLINITIALIZEPROC initialize;
^
/test/3d/Open3D_with_deps/Open3D-0.16.0/build/filament/src/ext_filament/filament/backend/src/opengl/PlatformEGLHeadless.cpp:60:5: error: unknown type name 'PFNEGLQUERYSTRINGPROC'; did you mean 'PFNGLGETSTRINGPROC'?
PFNEGLQUERYSTRINGPROC queryString;
^~~~~~~~~~~~~~~~~~~~~
PFNGLGETSTRINGPROC
/test/3d/Open3D_with_deps/Open3D-0.16.0/build/filament/src/ext_filament/libs/bluegl/include/GL/glcorearb.h:131:35: note: 'PFNGLGETSTRINGPROC' declared here
typedef const GLubyte *(APIENTRYP PFNGLGETSTRINGPROC) (GLenum name);
^
/test/3d/Open3D_with_deps/Open3D-0.16.0/build/filament/src/ext_filament/filament/backend/src/opengl/PlatformEGLHeadless.cpp:61:5: error: unknown type name 'PFNEGLCHOOSECONFIGPROC'
```

### Open3D, Python and System information

```markdown
- Operating system: Ubuntu 16.04
- Python version: Python 3.5
- Compiler version (if built from source): gcc 5.4 / clang 7.0
```

### Additional information

it can be built successfully form https://github.com/isl-org/filament with any tag on my machine
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release -DCCACHE_PROGRAM=OFF -DFILAMENT_ENABLE_JAVA=OFF -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER_LAUNCHER=/usr/local/bin/ccache -DCMAKE_CXX_COMPILER_LAUNCHER=/usr/local/bin/ccache -DCMAKE_CXX_FLAGS=-fno-builtin -DCMAKE_INSTALL_PREFIX=my-libs -DUSE_STATIC_CRT=OFF -DUSE_STATIC_LIBCXX=ON -DFILAMENT_SUPPORTS_VULKAN=OFF -DFILAMENT_SKIP_SAMPLES=ON -DFILAMENT_OPENGL_HANDLE_ARENA_SIZE_IN_MB=20 ..

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.