构建多面体演示时出错

Error while building Polyhedron demo

我试图从 CGAL 库构建 Polyhedron 演示。

:~/Libs/demos/demo/Polyhedron$ cmake . 

cmake 没有报错。

:~/Libs/demos/demo/Polyhedron$ make 

make 出现以下错误:

[  0%] Automatic moc for target shortest_path_plugin
[  0%] Built target shortest_path_plugin_automoc
[  0%] Automatic moc for target demo_framework
[  0%] Built target demo_framework_automoc
[  1%] Automatic moc for target gl_splat
[  1%] Built target gl_splat_automoc
[  2%] Built target gl_splat
[  2%] Building CXX object CMakeFiles/demo_framework.dir/Viewer.cpp.o
/home/param/Libs/demos/demo/Polyhedron/Viewer.cpp: In member function 
‘virtual void Viewer::setAntiAliasing(bool)’:
/home/param/Libs/demos/demo/Polyhedron/Viewer.cpp:76:12: error: 
‘updateGL’ was not declared in this scope
updateGL();

我正在使用:

谢谢。

该演示在使用 QGLViewer 2.7 时遇到问题。在集成修复程序之前,您应该使用以前的版本 (2.6.4)。