构建Polyhedron演示时出错

时间:2018-03-01 17:40:52

标签: c++ computational-geometry cgal

我正在尝试从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();

我正在使用:

  • ubuntu 16.04
  • QGLViewer 2.7.1
  • Qt 5.6.2
  • OpenGL 3.0版,OpenGL核心简介版本4.5

谢谢。

1 个答案:

答案 0 :(得分:0)

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