https://github.com/intel-isl/Open3D/issues/34
open3d make 错误 FilePNG
void SetPNGImageFromImage(const geometry::Image &image, png_image &pngimage) {
^~~~~~~~~
/home/wyc/Documents/workspace/Open3D/src/Open3D/IO/FileFormat/FilePNG.cpp: In function ‘void open3d::{anonymous}::SetPNGImageFromImage(const open3d::geometry::Image&, int&)’:
/home/wyc/Documents/workspace/Open3D/src/Open3D/IO/FileFormat/FilePNG.cpp:38:14: error: request for member ‘width’ in ‘pngimage’, which is of non-class type ‘int’
pngimage.width = image.width_;
^~~~~
/home/wyc/Documents/workspace/Open3D/src/Open3D/IO/FileFormat/FilePNG.cpp:39:14: error: request for member ‘height’ in ‘pngimage’, which is of non-class type ‘int’
pngimage.height = image.height_;
^~~~~~
/home/wyc/Documents/workspace/Open3D/src/Open3D/IO/FileFormat/FilePNG.cpp:40:14: error: request for member ‘format’ in ‘pngimage’, which is of non-class type ‘int’
pngimage.format = 0;
^~~~~~
/home/wyc/Documents/workspace/Open3D/src/Open3D/IO/FileFormat/FilePNG.cpp:42:18: error: request for member ‘format’ in ‘pngimage’, which is of non-class type ‘int’
pngimage.format |= PNG_FORMAT_FLAG_LINEAR;
(py3env) $ cmake -DENABLE_HEADLESS_RENDERING=ON
-DENABLE_GUI=OFF
-DBUILD_GLEW=ON
-DBUILD_GLFW=ON \