How to complie and execute demos and examples linux(Fedora 8)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to complie and execute demos and examples linux(Fedora 8)

amit tripathi-2
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.......    
 
 
 
                                                                                         Regards,
                                                                                   Amit tripathi


AMIT TRIPATHI
09836562804
M.Tech(C.S.)
I.S.I. KOLKATA

Reply | Threaded
Open this post in threaded view
|

Re: How to complie and execute demos and examples linux(Fedora 8)

Laurent Rineau-3
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)

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss