Subject: CGAL users discussion list
List archive
- From: Stephane Tayeb <>
- To:
- Subject: Re: [cgal-discuss] Mesh_3D_image not compiled
- Date: Thu, 22 Jul 2010 17:28:01 +0200
Hi,
Hulusi wrote:
Hi,
With visual studio command prompt, I do cmake-gui . in the Mesh_3 folder so
I configure and generate. Then I try to compile with Visual the
Mesh_3_examples.sln file generated. But the problem is that the
mesh_3D_image example that I need is not generated. The rest
(mesh_implicit_sphere, mesh_optimization_example,
mesh_optimization_lloyd_example, and mesh_polyhedral_domain) are the files
generated and exist in the Solution 'Mesh_3_example' tree in VS. I did a
test with mesh_implicit_sphere, it seems to be working succesfully.
Ma first question is: what mesh_3D_image example was not not generated and
what can I do to fix this problem?
Example mesh_3D_image needs CGAL_ImageIO to be configured with ZLIB support. If CGAL_ImageIO is not well configured, then cmake should output a message, and target mesh_3D_image is not created.
Second question: for some examples of Meh_3, during the compilation with VS,
the image format 'data/liver.inr.gz' was not found. The error line is : _readImageHeaderAndGetError: does not find image format
for 'data/liver.inr.gz'
Assertion failed: px !=0, file
C:\boost\boost_1_41_0\boost/smart_ptr/shared_ptr.hpp, line 418
Those examples also need CGAL_ImageIO to be configured with ZLIB support, but this is not required in the cmake file CMakeLists.txt (thanks for the report, this will be fixed in next CGAL release). The error is probably related to this missing Zlib support.
What you can do is either to install Zlib, either to uncompress file liver.inr.gz by hand, and edit .cpp file to change filename from "liver.inr.gz" to "liver.inr".
Thank you for your help
Hulusi
Regards,
Stéphane.
--
Stephane Tayeb
Software engineer - INRIA Sophia Antipolis
Geometrica Project-Team
- [cgal-discuss] Mesh_3D_image not compiled, Hulusi, 07/22/2010
- Re: [cgal-discuss] Mesh_3D_image not compiled, Stephane Tayeb, 07/22/2010
- [cgal-discuss] Re: Mesh_3D_image not compiled, Hulusi, 07/23/2010
- [cgal-discuss] Re: Mesh_3D_image not compiled, Hulusi, 07/23/2010
- [cgal-discuss] Re: Mesh_3D_image not compiled, Hulusi, 07/23/2010
- Re: [cgal-discuss] Mesh_3D_image not compiled, Stephane Tayeb, 07/22/2010
Archive powered by MHonArc 2.6.16.