//get Impossible to draw because CGAL_USE_BASIC_VIEWER is not defined
1. to define the preprocessor macro `CGAL_USE_BASIC_VIEWER`,
using the compilation flag `-DCGAL_USE_BASIC_VIEWER`, and,
vs 的話要去 Project properties -> Config Properties -> C/C++ -> Command Line -> Additional Options
加上"-DCGAL_USE_BASIC_VIEWER"
2. to link with the library CGAL_Qt5.
//'QDomElement': No such file or directory
vs 的話要先 qt vs tool -> creat basic .pro file
然後Add QT += xml into your .pro file
在從新讀取.pro即可
此外不需要在#include <QDomDocument>
// reference web:
// http://cgal-discuss.949826.n4.nabble.com/How-to-draw-a-Triangulation-with-Qt-td4663779.html
// https://stackoverflow.com/questions/41908940/how-to-set-c-compiler-flags-in-visual-studio2015
// https://stackoverflow.com/questions/29669917/error-in-finding-qdomdocument-in-c-code
沒有留言:
張貼留言