无法绘制,因为未定义 CGAL_USE_BASIC_VIEWER [英] Impossible to draw because CGAL_USE_BASIC_VIEWER is not defined

查看:59
本文介绍了无法绘制,因为未定义 CGAL_USE_BASIC_VIEWER的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了以下 draw_polyhedron 示例:

解决方案

我通过添加到‍‍‍‍.pro文件解决了这个问题:

QMAKE_CXXFLAGS +=-DCGAL_USE_BASIC_VIEWERLIBS+=-DCGAL_USE_BASIC_VIEWER

I tried the following example of draw_polyhedron:

https://doc.cgal.org/latest/Polyhedron/Polyhedron_2draw_polyhedron_8cpp-example.html

but there is the following error :

Impossible to draw because CGAL_USE_BASIC_VIEWER is not defined.

I tryied to add #define CGAL_USE_BASIC_VIEWER but the error is still existing

解决方案

I solved it by adding to ‍‍‍‍‍.pro file:

QMAKE_CXXFLAGS +=-DCGAL_USE_BASIC_VIEWER
LIBS+=-DCGAL_USE_BASIC_VIEWER

这篇关于无法绘制,因为未定义 CGAL_USE_BASIC_VIEWER的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆