Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Incorrect #include in CGAL-3.6beta1 Polyhedron demo

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Incorrect #include in CGAL-3.6beta1 Polyhedron demo


Chronological Thread 
  • From: Joachim Reichel <>
  • To:
  • Subject: Re: [cgal-discuss] Incorrect #include in CGAL-3.6beta1 Polyhedron demo
  • Date: Tue, 02 Mar 2010 19:47:14 +0100

Hi,

Laurent Rineau (GeometryFactory) wrote:
> On Monday 01 March 2010 19:09:23 Daniel Sieger wrote:
>> Hi,
>>
>> I just tried to compile the Polyhedron demo from CGAL-3.6beta1. There seems
>> to be an incorrect #include statement in
>> Polyhedron_demo_mesh_3_plugin_cgal_code.cpp line 35:
>>
>> #include <Qt/qglobal.h>
>>
>> I think this should be either
>>
>> #include <QtCore/qglobal.h>
>>
>> or
>>
>> #include <QtGlobal>

Don't you mean <QtCore/QtGlobal> here, unless you pass multiple -I
statements for each QtFoo directory?

> On Linux, <Qt/qglobal.h> is valid also. That is the flat layout of Qt
> header
> (created with the script bin/syncqt from Qt tarball).
>
> I think you are right that we should use either <QtCore/qglobal.h> or
> <QtGlobal>, but I cannot find where, in Qt documentation, it is explained.
> Do
> you have a pointer?
>
> Anyway, that will be fixed.

Searching for qglobal.h and QtGlobal I find on my system:
(1) /usr/include/qt4/QtCore/QtGlobal
(2) /usr/include/qt4/Qt/qglobal.h
(3) /usr/include/qt4/QtCore/qglobal.h

(1) includes "qglobal.h", (2) and (3) are identical

Therefore,
(a) #include <QtCore/QtGlobal>
(b) #include <Qt/qglobal.h>
(c) #include <QtCore/qglobal.h>
should all work.

In particular, the code you pointed out should work without problems.
And as Laurent mentioned, can you point out why one of the methods
should be preferred over the other two? ((a) adds an additional
indirection, ok).

BTW the Qt tutorials use <QtGlobal>, expecting to pass
-I/usr/include/qt4/Qt or multiple -I/usr/include/qt4/QtFoo statements.

Joachim



Archive powered by MHonArc 2.6.16.

Top of Page