构建Polyhedron演示时出错

问题描述 投票:0回答:1

我试图从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

谢谢。

c++ computational-geometry cgal
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.