Skip to Content.
Sympa Menu

cgal-discuss - Re: Re: [cgal-discuss] running a demo on ubuntu Linux

Subject: CGAL users discussion list

List archive

Re: Re: [cgal-discuss] running a demo on ubuntu Linux


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: Re: [cgal-discuss] running a demo on ubuntu Linux
  • Date: Thu, 31 Jan 2013 16:56:45 +0100
  • Organization: GeometryFactory

Le jeudi 31 janvier 2013 07:16:09 sara ershadi a écrit :
> Dear Laurent ,
>
> Hi ,
>
> I've downloaded CGAL by this command :
> tar xzf CGAL-4.1.tar.gz
> then I extract it to CGAL-4.1 in Home folder.
> But there is wondering point . the folder axuilary include that should
> contain GMP and MPFR is empty.

That is normal. As the README file of that directory says, it is only there
for use on Microsoft Windows.

> when I open Cmake-gui and set the source and
> build to HOme/CGAL .
> it list all dependency and they are the path that are set befor when I have
> installed CGAL-dev . this path are for the CGAL-dev dependency . and they
> are not dependencies that dericed from my source CGAL .it is obiviouse
> since My sourec CGAL-4.1 is package only that seems it is not contain many
> of required include axuiliary file.

Dependencies of CGAL are external to CGAL, and must be installed by users. In
your case, GMP, MPFR, and Boost are installed by the package manager of
Ubuntu. And CMake found them in /usr/include dans /usr/lib or /usr/lib64/.
That is normal.

> unfortunatly CGAL_dir this time is the CGAL-dev installed Path and was not
> my sourec installed Home/CGAL-4.1

You must set CGAL_DIR yourself to the directory where you have configured and
build CGAL sources.

> then I changed it and run configure .
> and then generate all things was true . but
>
> 1- I don't know What should I do after generate a demo for make the solution
> ? since I am using Cmake-gui .

You just have to type 'make' in the directory where cmake has generated the
"Makefile" file.

> 2- I try it after building the demo by CMake-gui and continue the remaining
> by terminal and I go to the path of build and run cmake .. and then make
> this is result in terminal :
[...]
> sara@ubuntu:~/CGAL-4.1/demo/AABB_tree/build$ make
> [ 14%] Generating qrc_AABB_demo.cxx
> [ 28%] Generating MainWindow_moc.cpp
> [ 42%] Generating Viewer_moc.cpp
> [ 57%] Generating Scene_moc.cpp
> [ 71%] Generating ui_MainWindow.h
> Scanning dependencies of target AABB_demo
> [ 85%] Building CXX object CMakeFiles/AABB_demo.dir/AABB_demo.cpp.o
> [100%] Building CXX object CMakeFiles/AABB_demo.dir/qrc_AABB_demo.cxx.o
> Linking CXX executable AABB_demo
> CMakeFiles/AABB_demo.dir/AABB_demo.cpp.o: In function `Viewer':
> /home/sara/CGAL-4.1/demo/AABB_tree/Viewer.cpp:8: undefined reference to
> `QGLViewer::QGLViewer(QWidget*, QGLWidget const*, QFlags<Qt::WindowType>)'

I would like to the see the result of the following command:

make VERBOSE=1 clean AABB_demo

It will show all compilation commands, and will help to understand.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/




Archive powered by MHonArc 2.6.18.

Top of Page