Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] question regarding qt version

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] question regarding qt version


Chronological Thread 
  • From: "DanielYan" <>
  • To: <>
  • Subject: Re: [cgal-discuss] question regarding qt version
  • Date: Wed, 9 Feb 2011 14:59:37 +0800
  • Importance: Normal

Hi Rineau,
 
Thank you for making a response.
It should be QT-4.7, not 3.7, right?
I opened the CGAL.sln generated by CMake and was trying to build the whole project. I'm using VS2005, with the operating system WindowsXP SP3.
It doesn't make any difference after the line:

Q_DECLARE_INTERFACE(QGraphicsItem, "com.trolltech.Qt.QGraphicsItem")

added to <QtGui/qgraphicsitem.h>. The Error hint still get printed. 
So, could you point out where the things go wrong?
 
Yan.

From:
Sent: Wednesday, February 09, 2011 2:39 AM
To:
Subject: Re: [cgal-discuss] question regarding qt version

Le mardi 08 février 2011 18:50:39, DanielYan a écrit :

> Hey guys!

>

> I'm new to CGAL. During the compilation, there was the following Error:

> CGAL/Qt/GraphicsItem.h(38): Error: Undefined interface

> issued by this code snippet:

> #if QT_VERSION >= 0x040600

> Q_INTERFACES(QGraphicsItem)

> Does this indicate that CGAL 3.7 can only work with QT whose version <= 4.6

> for now? (I only have QT4.7 on my laptop.) Is it OK to workaround this

> error prompt and continue using CGAL3.7 with QT4.7? Or is it better to

> install QT4.6?

CGAL-3.7 can work and hsa been tested with Qt-3.7. The lines you quoted have been added especially to support Qt>=3.6.

I do not know how you can have this error. We need more information. What were you trying to compile? With which compiler? Which compiler version? What is your operating system? Windows, Linux? Which version?

Verify if your file <QtGui/qgraphicsitem.h> contains the following line:

Q_DECLARE_INTERFACE(QGraphicsItem, "com.trolltech.Qt.QGraphicsItem")

--

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

Top of Page