Subject: CGAL users discussion list
List archive
- From: Joachim Reichel <>
- To:
- Subject: Re: [cgal-discuss] Trouble with Examples
- Date: Thu, 04 Jun 2009 19:53:13 +0200
Hi,
>>> ftp://ftp.mpi-sb.mpg.de/pub/outgoing/CGAL/debian/archive/libcgal-demo_3.4-1_all.deb
>>> ftp://ftp.mpi-sb.mpg.de/pub/outgoing/CGAL/debian/archive/libcgal-dev_3.4-1_i386.deb
>>> ftp://ftp.mpi-sb.mpg.de/pub/outgoing/CGAL/debian/archive/libcgal3_3.4-1_i386.deb
>> Note that these packages are for Debian sid, and not for Ubuntu 9.04.
>> There are good chances that they work, but there might also be strange
>> problems.
>
> Do know of any Ubuntu binaries? Or do you think it would be best for
> me to compile the source myself? I looked at the directions on the
> CGAL webpage for doing this and I think I could handle it (maybe).
It seems that Ubuntu binaries will appear in karmic. Here is a patch
http://patches.ubuntu.com/c/cgal/cgal_3.4-4ubuntu1.patch
See also
https://launchpad.net/ubuntu/+source/cgal
I would stick with the Debian packages for now. If it does not work out,
you can still install from the source package.
>> Adding -I/usr/include/CGAL causes a file name lookup problem between
>> <CGAL/gmpxx.h> from CGAL and <gmpxx.h> from GMP, which results in the
>> shown error messages.
>
> Okay, that makes sense. Actually, I wasn't sure about adding
> "/usr/include/CGAL" to the includes, so I tried it both ways. I get a
> different set of errors when I don't include it. They are included at
> the bottom of this message. Actually, as I look at it now, it appears
> that it finishes building this way, but still has problems.
[...]
> make all
> Building file: ../src/testing.cpp
> Invoking: GCC C++ Compiler
> g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/testing.d"
> -MT"src/testing.d" -o"src/testing.o" "../src/testing.cpp"
> Finished building: ../src/testing.cpp
>
> Building target: CGALcpp2
> Invoking: GCC C++ Linker
> g++ -o"CGALcpp2" ./src/testing.o
You need to link the executable with the CGAL library. "-lCGAL" should
be sufficient for this example, but for larger programs you might need
to add some of the other CGAL libraries or 3rd party libraries as well.
And "-frounding-math" is missing in the compile command.
Joachim
- [cgal-discuss] Trouble with Examples, Matthew Denno, 06/04/2009
- Re: [cgal-discuss] Trouble with Examples, Joachim Reichel, 06/04/2009
- Re: [cgal-discuss] Trouble with Examples, Matthew Denno, 06/04/2009
- Re: [cgal-discuss] Trouble with Examples, Joachim Reichel, 06/04/2009
- Re: [cgal-discuss] Trouble with Examples, Matthew Denno, 06/05/2009
- Re: [cgal-discuss] Trouble with Examples, Joachim Reichel, 06/04/2009
- Re: [cgal-discuss] Trouble with Examples, Matthew Denno, 06/04/2009
- Re: [cgal-discuss] Trouble with Examples, Joachim Reichel, 06/04/2009
Archive powered by MHonArc 2.6.16.