If I 'make' and run the example in the CGAL-build-dir it works.
When I include it in my QMAKE project file it does compile
without error (only some unused parameter warnings from 'work', 'lwork'
and 'kernel'
But then it crashes when run.
I think that I didn't include some libraries or similar. I don't
understand CMAKE and the created makefile so well.
The other functions from the point set processing section and
also the poisson surface reconstruction function works.
Another question is. Can I use static and dynamic libraries in
my project?
Here are the debugger errrors:
Depth | Function
0 dgelss_
1 CGAL::Lapack_svd::solve
2 CGAL::Monge_via_jet_fitting<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
>, CGAL::Cartesian<double>,
CGAL::Lapack_svd>::solve_linear_system
3 CGAL::Monge_via_jet_fitting<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
>, CGAL::Cartesian<double>,
CGAL::Lapack_svd>::operator()<__gnu_cxx::__normal_iterator<CGAL::Point_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >*,
std::vector<CGAL::Point_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >,
std::allocator<CGAL::Point_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> > > > > >
4 CGAL::CGALi::jet_smooth_point<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
>,
CGAL::Kd_tree<CGAL::Search_traits_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >,
CGAL::Sliding_midpoint<CGAL::Search_traits_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >, CGAL::Plane_separator<double> >,
CGAL::Boolean_tag<true> > >
5 CGAL::jet_smooth_point_set<__gnu_cxx::__normal_iterator<CGAL::Point_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >*,
std::vector<CGAL::Point_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >,
std::allocator<CGAL::Point_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> > > > >,
CGAL::Dereference_property_map<CGAL::Point_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> > >,
CGAL::Filtered_kernel<CGAL::Simple_cartesian<double> > >
6 CGAL::jet_smooth_point_set<__gnu_cxx::__normal_iterator<CGAL::Point_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >*,
std::vector<CGAL::Point_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >,
std::allocator<CGAL::Point_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> > > > > >
7 main
This is my .pro file:
#
-------------------------------------------------
# Project created by
QtCreator 2009-11-12T16:56:37
#
-------------------------------------------------
QT += opengl
QT -= core \
gui
TARGET = test
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
HEADERS +=
# CGAL
QMAKE_CXXFLAGS +=
-frounding-math
INCLUDEPATH +=
/usr/local/include
LIBS +=
/usr/local/lib64/libtaucs.a
LIBS +=
/usr/local/lib64/libf2c.a
LIBS +=
/usr/local/lib64/libmetis.a
INCLUDEPATH +=
/opt/local/include
LIBS +=
/opt/local/lib/libmpfr.a
LIBS +=
/opt/local/lib/libgmp.a
LIBS +=
/opt/local/lib/libgmpxx.a
INCLUDEPATH +=
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/Headers
LIBS +=
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LIBS +=
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
INCLUDEPATH +=
/Developer/CGAL-3.5/install/include/
LIBS +=
/Developer/CGAL-3.5/install/lib/libCGAL.a
LIBS +=
/Developer/CGAL-3.5/install/lib/libCGAL_Core.a
LIBS +=
/Developer/CGAL-3.5/install/lib/libCGAL_ImageIO.a
LIBS +=
/Developer/CGAL-3.5/install/lib/libCGAL_PDB.a
LIBS +=
/Developer/CGAL-3.5/install/lib/libCGAL_Qt4.a
thanks,
Yuri