Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] CGAL 3.6 first post-installation steps
- Date: Mon, 26 Apr 2010 21:49:09 +0200
- Organization: GeometryFactory
On 26/04/2010 21:25, Ianic wrote:
Hi there,
First of all, thank you for creating such a great tool as the CGAL library!
I plan to use its 3D meshing capabilities. I've just installed it on my
Linux virtual machine, following the installation manual. The examples
compiled nicely and work properly (at least the ones from 3D meshing
folder). Now I want to try and compile my own code that uses CGAL functions.
First thing that I did is that I created a new folder, say "applications",
copied there a cpp file of one example from the 3D meshing folder (the one
that meshes a liver image). Then I copied there a cgal_create_cmake_script
file and ran it to create a CMakeLists.txt. Then I ran the cmake-gui from
this folder, pressed Configure and then Generate. Then I typed "make" in the
terminal. Compilation part worked but linker threw an error at me:
CMakeFiles/mesh_3D_image.dir/mesh_3D_image.o: In function `main':
mesh_3D_image.cpp:(.text+0x1f6e): undefined reference to `_readImage(char
const*)'
mesh_3D_image.cpp:(.text+0x1f80): undefined reference to
`CGAL::Image_3::private_read(point_image*)'
collect2: ld returned 1 exit status
make[2]: *** [mesh_3D_image] Error 1
make[1]: *** [CMakeFiles/mesh_3D_image.dir/all] Error 2
make: *** [all] Error 2
So therefore my question is what is it that I made wrong? Or maybe I made it
all wrong and this is not the way to compile CGAL programs? Thank you for
your help in advence!
Sincerely,
Yan
Did you build the library CGAL_ImageIO when you built the CGAL libs?
Or you built it, but don't link it?
andreas
- [cgal-discuss] CGAL 3.6 first post-installation steps, Ianic, 04/26/2010
- Re: [cgal-discuss] CGAL 3.6 first post-installation steps, Joachim Reichel, 04/26/2010
- [cgal-discuss] Re: CGAL 3.6 first post-installation steps, Ianic, 04/26/2010
- [cgal-discuss] Re: CGAL 3.6 first post-installation steps, Ianic, 04/28/2010
- [cgal-discuss] Re: CGAL 3.6 first post-installation steps, Ianic, 04/26/2010
- Re: [cgal-discuss] CGAL 3.6 first post-installation steps, Andreas Fabri, 04/26/2010
- Re: [cgal-discuss] CGAL 3.6 first post-installation steps, Joachim Reichel, 04/26/2010
Archive powered by MHonArc 2.6.16.