从CGAL :: Polyhedral_mesh_domain_with_features_3尝试3D网格生成时链接错误

时间:2015-08-21 08:39:53

标签: c++ cgal

我希望使用CGAL生成具有特征的3D网格。我可以从CGAL :: Polyhedral_mesh_domain_3生成3D网格而没有任何问题。但是,当我尝试从CGAL :: Polyhedral_mesh_domain_with_features_3创建网格时,我收到以下错误:

Undefined symbols for architecture x86_64: 
"CGAL::set_binary_mode(std::basic_ios<char, std::char_traits<char> >&)", referenced from:      
CGAL::Dump_c3t3<CGAL::Mesh_complex_3_in_triangulation_3<CGAL::Regular_triangulation_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Mesh_3::Robust_intersection_traits_3<CGAL::Epick> >, CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Mesh_3::Robust_intersection_traits_3<CGAL::Epick> >, CGAL::Polyhedral_mesh_domain_with_features_3<CGAL::Mesh_3::Robust_intersection_traits_3<CGAL::Epick> ... etc

"CGAL::is_ascii(std::basic_ios<char, std::char_traits<char> >&)", referenced > from: 
CGAL::Dump_c3t3<CGAL::Mesh_complex_3_in_triangulation_3<CGAL::Regular_triangulation_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Mesh_3::Robust_intersection_traits_3<CGAL::Epick> >, CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Mesh_3::Robust_intersection_traits_3<CGAL::Epick> >, CGAL::Polyhedral_mesh_domain_with_features_3<CGAL::Mesh_3::Robust_intersection_traits_3<CGAL::Epick>, ... etc 

ld: symbol(s) not found for architecture x86_64 
clang: error: linker command failed with exit code 1 (use -v to seeinvocation) 
make: *** [projectV1.app/Contents/MacOS/projectV1] Error 1 
11:05:54: The process "/usr/bin/make" exited with code 2. 
  Error while building/deploying project project_VCGAL (kit: Desktop Qt 5.4.2 clang 64bit) 
When executing step "Make"

所有其他CGAL功能都在编译和正常工作,这只是一件事。我通过自制软件/ macports安装了CGAL(两者都给出了同样的错误)。我不确定我哪里出错了。我真的很感激有关如何排除故障的任何建议。

Typedef:

typedef double Real; 
typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel; 
typedef CGAL::Mesh_3::Robust_intersection_traits_3<Kernel> IGT; 
typedef CGAL::Polyhedron_3<IGT, My_items> Polyhedron; 
typedef Polyhedron::HalfedgeDS HalfedgeDS; 
typedef CGAL::Point_3<Kernel> Point; 
using namespace std; 

//Volume Mesh 
typedef CGAL::Mesh_polyhedron_3<IGT>::Type Mesh_polyhedron; 
typedef CGAL::Polyhedral_mesh_domain_with_features_3<IGT, Polyhedron> MeshDomain; 
typedef CGAL::Mesh_triangulation_3<MeshDomain>::type Tr; 
typedef CGAL::Mesh_complex_3_in_triangulation_3<Tr,MeshDomain::Corner_index,MeshDomain::Curve_segment_index> C3T3; 
typedef CGAL::Mesh_criteria_3

创建体网格:

using namespace CGAL::parameters; 
Mesh_Domain domain(mesh_Poly); 
domain.detect_features(); 
Mesh_Criteria criteria(facet_angle=30, facet_size=0.1, facet_distance=0.025, cell_radius_edge_ratio=2, cell_size=0.1); 
c3t3 = CGAL::make_mesh_3<C3T3>(domain, criteria); /* Error occurs here */

我的链接如下:

#------------------------------------------------- 
# CGAL LIBRARY 
#------------------------------------------------- 
macx: LIBS += -L$$PWD/../../../../../../opt/local/lib/ -lCGAL 

INCLUDEPATH += $$PWD/../../../../../../opt/local/include 
DEPENDPATH += $$PWD/../../../../../../opt/local/include 
#------------------------------------------------- 
# CGAL CORE LIBRARY 
#------------------------------------------------- 
macx: LIBS += -L$$PWD/../../../../../../opt/local/lib/ -lCGAL_Core.11 

INCLUDEPATH += $$PWD/../../../../../../opt/local/include 
DEPENDPATH += $$PWD/../../../../../../opt/local/include 
#------------------------------------------------- 
# CGAL IMAGE IO LIBRARY 
#------------------------------------------------- 
macx: LIBS += -L$$PWD/../../../../../../opt/local/lib/ -lCGAL_ImageIO 

INCLUDEPATH += $$PWD/../../../../../../opt/local/include 
DEPENDPATH += $$PWD/../../../../../../opt/local/include 
#------------------------------------------------- 
# BOOST THREAD LIBRARY 
#------------------------------------------------- 
macx: LIBS += -L$$PWD/../../../../../../opt/local/lib/ -lboost_thread-mt 

INCLUDEPATH += $$PWD/../../../../../../opt/local/include 
DEPENDPATH += $$PWD/../../../../../../opt/local/include 
#------------------------------------------------- 
# BOOST SYSTEM LIBRARY 
#------------------------------------------------- 
macx: LIBS += -L$$PWD/../../../../../../opt/local/lib/ -lboost_system-mt 

INCLUDEPATH += $$PWD/../../../../../../opt/local/include 
DEPENDPATH += $$PWD/../../../../../../opt/local/include 
#------------------------------------------------- 
# GMP LIBRARY 
#------------------------------------------------- 
macx: LIBS += -L$$PWD/../../../../../../opt/local/lib/ -lgmp 

INCLUDEPATH += $$PWD/../../../../../../opt/local/include 
DEPENDPATH += $$PWD/../../../../../../opt/local/include 
#------------------------------------------------- 
# MPFR LIBRARY 
#------------------------------------------------- 
macx: LIBS += -L$$PWD/../../../../../../opt/local/lib/ -lmpfr 

INCLUDEPATH += $$PWD/../../../../../../opt/local/include 
DEPENDPATH += $$PWD/../../../../../../opt/local/include 

0 个答案:

没有答案