Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

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


Chronological Thread 
  • From: sara ershadi <>
  • To: "" <>
  • Subject: Re: [cgal-discuss] running a demo on ubuntu Linux
  • Date: Thu, 31 Jan 2013 07:16:09 -0800 (PST)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=unjf2LPEwFtaTkKEOShTdGYAp88Q7h5tHpqW2GnedBcrzNw/X9FwOtTlgCot2CwoCqDZk+4z6Bz4oY48cBuppMDCfwaX8sKjwVN/3O54Kws+R+JCPdDob1Wp0JYbvUOJXlF4xQ2X7e8XTQbjHibc+roTcEketxKgOHq8382Y3fU=;


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.
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.

I have not any choice to accept that GMP and MPFR be seted as usr/lib that My CGAL-dev path is.
and then configure CGAL . configure again for removing red item. then generate.
all things keeps on truly and there was no warning or error and CGAL_dir was my source Home/CGAL-4.1
I wonder why there are not any .so file in the resulted build folder. !
However I ignor it and try to configure AABB_tree as the same way.

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

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 .

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:~$ cd CGAL-4.1
sara@ubuntu:~/CGAL-4.1$ cd demo/AABB_tree/build
sara@ubuntu:~/CGAL-4.1/demo/AABB_tree/build$ cmake ..
-- Build type: Release
-- USING CXXFLAGS = '-g -O2 -frounding-math -O3 -DNDEBUG'
-- USING EXEFLAGS = '-Wl,-Bsymbolic-functions '
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- Requested component: Qt4
-- Found Qt4: /usr/bin/qmake (found version "4.7.4")
-- Requested component: MPFR
-- Requested component: GMP
-- Found Qt4: /usr/bin/qmake (found version "4.7.4")
-- Found QGLViewer: /usr/lib/libqglviewer.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sara/CGAL-4.1/demo/AABB_tree/build
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>)'
CMakeFiles/AABB_demo.dir/AABB_demo.cpp.o: In function `Viewer::qt_metacall(QMetaObject::Call, int, void**)':
/home/sara/CGAL-4.1/demo/AABB_tree/build/Viewer_moc.cpp:64: undefined reference to `QGLViewer::qt_metacall(QMetaObject::Call, int, void**)'
CMakeFiles/AABB_demo.dir/AABB_demo.cpp.o: In function `Viewer::qt_metacast(char const*)':
/home/sara/CGAL-4.1/demo/AABB_tree/build/Viewer_moc.cpp:59: undefined reference to `QGLViewer::qt_metacast(char const*)'
CMakeFiles/AABB_demo.dir/AABB_demo.cpp.o: In function `QGLViewer::tr(char const*, char const*)':
/usr/include/QGLViewer/qglviewer.h:75: undefined reference to `QGLViewer::staticMetaObject'
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>)'
CMakeFiles/AABB_demo.dir/AABB_demo.cpp.o:(.rodata+0xe0): undefined reference to `QGLViewer::staticMetaObject'
CMakeFiles/AABB_demo.dir/AABB_demo.cpp.o:(.rodata._ZTV6Viewer[vtable for Viewer]+0x188): undefined reference to `QGLViewer::setPlayPathKeyboardModifiers(QFlags<Qt::KeyboardModifier>)'
CMakeFiles/AABB_demo.dir/AABB_demo.cpp.o:(.rodata._ZTV6Viewer[vtable for Viewer]+0x18c): undefined reference to `QGLViewer::setAddKeyFrameKeyboardModifiers(QFlags<Qt::KeyboardModifier>)'
collect2: ld returned 1 exit status
make[2]: *** [AABB_demo] Error 1
make[1]: *** [CMakeFiles/AABB_demo.dir/all] Error 2
make: *** [all] Error 2
sara@ubuntu:~/CGAL-4.1/demo/AABB_tree/build$


Thanks alot for your comment and help
sara



From: Laurent Rineau (CGAL/GeometryFactory) <>
To:
Sent: Thursday, January 31, 2013 5:54 AM
Subject: Re: Re: [cgal-discuss] running a demo on ubuntu Linux

Le mercredi 30 janvier 2013 09:20:54 sara ershadi a écrit :
> Dear Laurent ,
> Hi ,
> I have another question too .
> 3- I have installed "libcgal-dev" and "libcgal-demo" and "libcgal-ipelets"
> and "libcgal7"
>
> too . If I want to run demo what should I do and If I want to run demo in
> situation from source
>
> CGAL files I should to remove all this 4 software or remove "libcgal-dev"
> lonely is enough.

As you want. Removing libcgal-dev and libcgal7 should also remove all the one
that depend on them.

Actually, you do not really have to remove them from your system. You can
compile a different version of CGAL from sources. Be careful, if you want to
compile a demo depending on CGAL, to fill the CMake variable "CGAL_DIR" with
the directory where you have built CGAL from sources.

> what is my demo file now ?

Sorry, I do not understand the question.

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


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







Archive powered by MHonArc 2.6.18.

Top of Page