Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Qt on alonside with Cgal

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Qt on alonside with Cgal


Chronological Thread 
  • From: Sukhraj Singh <>
  • To:
  • Subject: Re: [cgal-discuss] Qt on alonside with Cgal
  • Date: Sat, 10 Jun 2017 12:32:23 +0530
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:VhZPDB1HP6iFpDLQsmDT+DRfVm0co7zxezQtwd8ZseIQLPad9pjvdHbS+e9qxAeQG96KtLQc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q89pDXYQhEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7S60/Vza/4KdxUBLniikHOT43/m/Ul8J+kr5UrQm7qBBj2YPZep2ZOOZ8c67bYNgURXBBXsFUVyFZH428cogPD+obPelCrYn2ukYArRq4BQmjBOPk1zhFhmT33a083OQhERvK3Bc9H9INsHTUts/6NKUJXOC6yanH1zTDb/dM1Tjh74jIdwksrPeRVrx+dsrRzFMgFwLDjliIqIzlOSmV1uUXvGSB4epgT/qjhHIoqw5rpjij3MAsipPGho4NxVDL6yJ5wIMrKt2kUk56YdCkH4FMuCGGMIt2WMMjT3t0tyY9z70Lv4OwcisSyJk/2RLTd/iKf5KL7x/jTuqdPyp0iXx/dL+/iRu/91WrxPfmWcmuyllKqzJIktnSuXAJ0Bze8s2HReF8/kelwDqPyQPT5v1dLUA6lafWJYQtwrE3lpoUvkTDGjH5lF/qg6+Rc0Uo4umo6+L5bbX6vpKQKZN4hwXkPqktmsGzG/o0PhUAUmSB+emx2qXv/UjjT7VLiv02nLPZsJffJckDva65AglV0okj6xqlFDemzdcYnXkdLF1fehKKlIfpO1TUL/D5CfezmUijkDBux/zeJL3uHo3NLmTfkLfmZbty90FcxxA3zdxG+p1UC6oBL+7uWk/qr9zVFQQ5Mgyxw+b/EtpxzIIeWWSVAq+YKqzeq1GI5vh8a9SKf5If7TbhN+A+tbmplm48gVZbfK+z3JJRZmr/BeVjO0zeYHzihZAKHm4O+wY/V+f3k0bRbTkGbHm7W+cw5yowFZm9JYbFXIGkxrKbjwmhGZgDXX1FCkqFEz/TdoOLW79YcyOULc8niSEHVaKoSacu0BivsEnxzL8xfbmcwTERqZ+2jIs93ObUjxxnrTE=

I observed somehow /usr/lib/x86_64-linux-gnu/libQt5Svg.so.5 gets linked for AABB_tree  executable which I had copied outside but it does no happen for the demo inside cgal/cgal-build/demo/

~/Projects/AABB_tree/build$ ldd AABB_demo | grep libQt
./AABB_demo: /home/sukhraj/Qt5.6.2/5.6/gcc_64/lib/libQt5Core.so.5: version `Qt_5.7' not found (required by /usr/lib/x86_64-linux-gnu/libQt5Svg.so.5)
    libQt5OpenGL.so.5 => /home/sukhraj/Qt5.6.2/5.6/gcc_64/lib/libQt5OpenGL.so.5 (0x00007fe48adc0000)
    libQt5Xml.so.5 => /home/sukhraj/Qt5.6.2/5.6/gcc_64/lib/libQt5Xml.so.5 (0x00007fe48ab83000)
    libQt5Widgets.so.5 => /home/sukhraj/Qt5.6.2/5.6/gcc_64/lib/libQt5Widgets.so.5 (0x00007fe48a061000)
    libQt5Gui.so.5 => /home/sukhraj/Qt5.6.2/5.6/gcc_64/lib/libQt5Gui.so.5 (0x00007fe48986f000)
    libQt5Core.so.5 => /home/sukhraj/Qt5.6.2/5.6/gcc_64/lib/libQt5Core.so.5 (0x00007fe489158000)
    libQt5Svg.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Svg.so.5 (0x00007fe488293000)


~/Projects/cgal/cgal-build/demo/AABB_tree$ ldd AABB_demo | grep libQt
    libQt5Xml.so.5 => /home/sukhraj/Qt5.6.2/5.6/gcc_64/lib/libQt5Xml.so.5 (0x00007fb5aefeb000)
    libQt5OpenGL.so.5 => /home/sukhraj/Qt5.6.2/5.6/gcc_64/lib/libQt5OpenGL.so.5 (0x00007fb5ae68e000)
    libQt5Widgets.so.5 => /home/sukhraj/Qt5.6.2/5.6/gcc_64/lib/libQt5Widgets.so.5 (0x00007fb5ade16000)
    libQt5Gui.so.5 => /home/sukhraj/Qt5.6.2/5.6/gcc_64/lib/libQt5Gui.so.5 (0x00007fb5ad624000)
    libQt5Core.so.5 => /home/sukhraj/Qt5.6.2/5.6/gcc_64/lib/libQt5Core.so.5 (0x00007fb5acf0d000)
    libQt5Svg.so.5 => /home/sukhraj/Qt5.6.2/5.6/gcc_64/lib/libQt5Svg.so.5 (0x00007fb5a9a0a000)





On Sat, Jun 10, 2017 at 10:23 AM, Sukhraj Singh <> wrote:
Continuing the discussion.

I found AABB_tree easy to use, as it had a QT UI file and looked simple.
In order to make a CGAL-QT project I took this as a template code, and copied it out side the CGAL source.
Did a CMAKE, provided paths to CGAL, QT and QGLViewer.
It build successfully.
But when I run I got following error.

./AABB_demo: /home/sukhraj/Qt5.6.2/5.6/gcc_64/lib/libQt5Core.so.5: version `Qt_5.7' not found (required by /usr/lib/x86_64-linux-gnu/libQt5Svg.so.5)

I have given correctly the paths of QT and it has picked /home/sukhraj/Qt5.6.2/5.6/gcc_64/lib/ , I am not sure why it would still pick from /usr/lib.
I cleaned the build directory and tried again, but in vain.
Attached is the snapshot of CMAKE config.

Can you please tell me what am I doing wrong?







On Mon, Feb 27, 2017 at 8:15 PM, Laurent Rineau (CGAL/GeometryFactory) <> wrote:
Le Monday, February 27, 2017 3:27:32 PM CET Andreas Fabri a écrit :
> Have a look at CGAL/demo/Polyhedron

The code pointed out by Andreas is rather complex. You might have a look at a
simpler demo, with 2D polygons, in CGAL-x.y/demo/Polygon/.

> On 27/02/2017 14:55, Aswanth Kumar wrote:
> > Hello,
> >
> >       Where can I find the examples of cgal with Qt? I worked with CGAL
> >       but not with Qt. Where do I need to begin Qt alongside with CGAL?
> >       I need to use UI in such a way that we give input polygon or
> >       polygon_with_holes via cursor. And how do we get the visibility
> >       regions etc.. as an output on Qt. Please suggest what should I
> >       refer regarding this.>
> > Regards,
> > Aswanth.



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





--
Sukhraj Singh
 



--
Sukhraj Singh
 



Archive powered by MHonArc 2.6.18.

Top of Page