Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] How to complie and execute demos and examples linux(Fedora 8)

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] How to complie and execute demos and examples linux(Fedora 8)


Chronological Thread 
  • From: Laurent Rineau <>
  • To:
  • Subject: Re: [cgal-discuss] How to complie and execute demos and examples linux(Fedora 8)
  • Date: Thu, 29 May 2008 13:53:44 +0200
  • Organization: Inria, Sophia Antipolis, FRANCE

On Thursday 29 May 2008 12:52:34 amit tripathi wrote:
> hi....
> i am a beginner....i want to know how to complie and execute
> demos and examples given in library on linux(Fedora 8) operating
> system....what are the necessary commands.... plz tell me.......

As a matter of fact, on Linux distributions that ships CGAL as a regular
package (Debian, Fedora), that is quite easy.

On Fedora 8, for example, if you want to compile the Triangulation_2 Qt
demos,
you need to check first that you have all the needed packages installed:
(after '$' it is the command to type)

$ rpm -q CGAL-devel CGAL-demos-source qt-devel gcc-c++
CGAL-devel-3.3.1-8.fc8
CGAL-demos-source-3.3.1-8.fc8
qt-devel-3.3.8b-2.fc8
gcc-c++-4.1.2-33

If you do not have those package, you need to install them (using 'yum' or
one
of it graphical interface).

Then you can, for example, copy the demo/Trianguation_2/ directory to /tmp:

$ cp -a /usr/share/CGAL/demo/Triangulation_2 /tmp

then go into that directory and type 'make', or 'make -j 2' (if you have two
processors):

$ cd /tmp/Triangulation_2
$ make -j2

That command triggers the compilation. It should run without error, and
produce the demo executables.

Then run the demos:

$ ./constrained &
$ ./constrained_delaunay_triangulation_2 &
$ ./delaunay_triangulation_2 &
$ ./regular_triangulation_2 &


That's it! :-)

--
Laurent Rineau
INRIA - Sophia Antipolis
BP 93, 2004 Route des Lucioles
06902 Sophia Antipolis Cedex FRANCE
Tel: +33 4 92 38 78 62 (Fax: +33.4.97.15.53.95)




Archive powered by MHonArc 2.6.16.

Top of Page