Subject: CGAL users discussion list
List archive
- From: Laurent Saboret <>
- To:
- Subject: Re: [cgal-discuss] <DKIM> Example Compiling Issue
- Date: Mon, 01 Dec 2014 15:19:13 +0100
Hi Hardik, I guess you miss GMP and CORE libraries. Please add -lgmp -lcore to LIBPATH. Best regards, Laurent Le 30/11/2014 23:18, hardik kabaria a
écrit :
Dear Laurent,
I have included the Poisson_reconstruction_function as a
member of
my class.
However, when I try to compile a drive based off the class.
I get compiling error:
I have my makefile as following:
CC = g++
INCPATH = -I $(UMDIR)include/ -I /opt/local/include/
CFLAGS = -g
LIBPATH = -L$(UMDIR)lib/ -L/opt/local/lib -lCurveGeom
-lIBMesher3D -lAnn -lgsl -lgslcblas -lnlopt -lm -lCGAL
-lCGAL_Core -lboost_system-mt -lboost_thread-mt
compactsurfmesh: compactsurfmesh.cpp
$(CC)
$(INCPATH) $(LIBPATH) $(CFLAGS) $< -o $@
I have CGAL include files in the path (/opt/local/include)
as well as the dylibs are inlcuded.
lrwxr-xr-x 1 hardik wheel 42 Nov 30 13:06
libCGAL.dylib ->
/usr/local/soft/CGAL-4.2/lib/libCGAL.dylib
lrwxr-xr-x 1 hardik wheel 47 Nov 30 13:06
libCGAL_Core.dylib ->
/usr/local/soft/CGAL-4.2/lib/libCGAL_Core.dylib
lrwxr-xr-x 1 hardik wheel 50 Nov 30 13:06
libCGAL_ImageIO.dylib ->
/usr/local/soft/CGAL-4.2/lib/libCGAL_ImageIO.dylib
Error:
"___gmpq_add", referenced from:
CGAL::Gmpq::operator+=(CGAL::Gmpq const&) in
libCurveGeom.a(PoissonRecSurface.o)
"___gmpq_clear", referenced from:
CGAL::Gmpq_rep::~Gmpq_rep() in
libCurveGeom.a(PoissonRecSurface.o)
"___gmpq_cmp", referenced from:
Could you point me what am I missing ?
Thanks!
Hardik
On Fri, Nov 21, 2014 at 4:49 AM,
Laurent Saboret <>
wrote:
Dear Hardik,
My guess is that your problem comes from the compilation options, probably related to the linear solver (Eigen by default). If you use CMake, make sure that your CMakeLists.txt looks like poisson_reconstruction_example.cpp example's CMakeLists.txt. If you do not use CMake, I recommend you to recompile poisson_reconstruction_example.cpp and to cut and paste the compilation options generated by CMake into your own makefile. Good luck, Laurent Saboret Le 19/11/2014 18:55, hardik kabaria a écrit :
Hardik Kabaria
Ph.D. Candidate Department of Mechanical Engineering Stanford University hardik kabaria
|
- Re: [cgal-discuss] <DKIM> Example Compiling Issue, Laurent Saboret, 12/01/2014
Archive powered by MHonArc 2.6.18.