Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 6

Qt-interest Archive, June 2007
Error compiling a QT - VTK code source in Mac


Message 1 in thread

Hi!
I´m trying to compile a QT and VTK program in Mac but after configuring 
ccmake and make it, it responds with this error:

In file included from /usr/local/Trolltech/Qt-4.3.0/include/QtGui/QtGui:78,
                 from 
/Users/antoniogilgarcia/Desktop/trepano/Herramientas/Visual3D/Visual3D.h:8,
                 from 
/Users/antoniogilgarcia/Desktop/trepano/Herramientas/Visual3D/Visual3D.cpp:2:
/usr/local/Trolltech/Qt-4.3.0/include/QtGui/qitemdelegate.h:103:40: error: 
macro "check" passed 3 arguments, but takes just 1
/usr/local/Trolltech/Qt-4.3.0/include/QtGui/qitemdelegate.h:102: error: 
expected ';' before 'const'
make[2]: *** [CMakeFiles/Trepano.dir/Herramientas/Visual3D/Visual3D.o] Error 
1
make[1]: *** [CMakeFiles/Trepano.dir/all] Error 2
make: *** [all] Error 2

The source code actually works fine in linux and windows, but I don´t know 
why dosen´t do in Mac. Can anyone help me?

Thanks.

_________________________________________________________________
Descarga gratis la Barra de Herramientas de MSN 
http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH

--
 [ signature omitted ] 

Message 2 in thread

Mac has a check() macro defined in AssertMacros.h, that comes to life if you 
#define DEBUG.

Try re-ordering your includes, removing includes, undefining check, or 
undefining DEBUG.

A comment can be found in qitemdelegate.cpp about this.

Clint


On Tuesday 26 June 2007 3:03:04 pm Antonio Gil García wrote:
> Hi!
> I´m trying to compile a QT and VTK program in Mac but after configuring
> ccmake and make it, it responds with this error:
>
> In file included from /usr/local/Trolltech/Qt-4.3.0/include/QtGui/QtGui:78,
>                  from
> /Users/antoniogilgarcia/Desktop/trepano/Herramientas/Visual3D/Visual3D.h:8,
>                  from
> /Users/antoniogilgarcia/Desktop/trepano/Herramientas/Visual3D/Visual3D.cpp:
>2: /usr/local/Trolltech/Qt-4.3.0/include/QtGui/qitemdelegate.h:103:40:
> error: macro "check" passed 3 arguments, but takes just 1
> /usr/local/Trolltech/Qt-4.3.0/include/QtGui/qitemdelegate.h:102: error:
> expected ';' before 'const'
> make[2]: *** [CMakeFiles/Trepano.dir/Herramientas/Visual3D/Visual3D.o]
> Error 1
> make[1]: *** [CMakeFiles/Trepano.dir/all] Error 2
> make: *** [all] Error 2
>
> The source code actually works fine in linux and windows, but I don´t know
> why dosen´t do in Mac. Can anyone help me?
>
> Thanks.
>
> _________________________________________________________________
> Descarga gratis la Barra de Herramientas de MSN
> http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www
>.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body. List archive and information:
> http://lists.trolltech.com/qt-interest/


--
 [ signature omitted ] 

Message 3 in thread

Hi!
Thanks for your help.
I don´t have defined any AssertMacros.h #define DEBUG in the project. So I 
don´t know why it gets to live the check() macro. May be do some QT library 
define the AssertMacros.h?

Thanks.

>From: clinton@xxxxxxxxxxxx
>To: qt-interest@xxxxxxxxxxxxx
>CC: Antonio Gil García <antrox69@xxxxxxxxxxx>
>Subject: Re: Error compiling a QT - VTK code source in Mac
>Date: Tue, 26 Jun 2007 15:44:11 -0600
>
>
>Mac has a check() macro defined in AssertMacros.h, that comes to life if 
>you
>#define DEBUG.
>
>Try re-ordering your includes, removing includes, undefining check, or
>undefining DEBUG.
>
>A comment can be found in qitemdelegate.cpp about this.
>
>Clint
>
>
>On Tuesday 26 June 2007 3:03:04 pm Antonio Gil García wrote:
> > Hi!
> > I´m trying to compile a QT and VTK program in Mac but after configuring
> > ccmake and make it, it responds with this error:
> >
> > In file included from 
>/usr/local/Trolltech/Qt-4.3.0/include/QtGui/QtGui:78,
> >                  from
> > 
>/Users/antoniogilgarcia/Desktop/trepano/Herramientas/Visual3D/Visual3D.h:8,
> >                  from
> > 
>/Users/antoniogilgarcia/Desktop/trepano/Herramientas/Visual3D/Visual3D.cpp:
> >2: /usr/local/Trolltech/Qt-4.3.0/include/QtGui/qitemdelegate.h:103:40:
> > error: macro "check" passed 3 arguments, but takes just 1
> > /usr/local/Trolltech/Qt-4.3.0/include/QtGui/qitemdelegate.h:102: error:
> > expected ';' before 'const'
> > make[2]: *** [CMakeFiles/Trepano.dir/Herramientas/Visual3D/Visual3D.o]
> > Error 1
> > make[1]: *** [CMakeFiles/Trepano.dir/all] Error 2
> > make: *** [all] Error 2
> >
> > The source code actually works fine in linux and windows, but I don´t 
>know
> > why dosen´t do in Mac. Can anyone help me?
> >
> > Thanks.
> >
> > _________________________________________________________________
> > Descarga gratis la Barra de Herramientas de MSN
> > 
>http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www
> >.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH
> >
> > --
> > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> > "unsubscribe" in the subject or the body. List archive and information:
> > http://lists.trolltech.com/qt-interest/
>
>

_________________________________________________________________
Acepta el reto MSN Premium: Correos más divertidos con fotos y textos 
increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis. 
http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos

--
 [ signature omitted ] 

Message 4 in thread

On Wednesday 27 June 2007 9:27:38 am Antonio Gil García wrote:
> Hi!
> Thanks for your help.
> I don´t have defined any AssertMacros.h #define DEBUG in the project. So I
> don´t know why it gets to live the check() macro. May be do some QT library
> define the AssertMacros.h?

It is probably the VTK headers that are including AssertMacros.h.
Try putting all your VTK includes first, then 
#ifdef check
#undef check
#endif
then include your Qt headers.

Clint

>
> Thanks.
>
> >From: clinton@xxxxxxxxxxxx
> >To: qt-interest@xxxxxxxxxxxxx
> >CC: Antonio Gil García <antrox69@xxxxxxxxxxx>
> >Subject: Re: Error compiling a QT - VTK code source in Mac
> >Date: Tue, 26 Jun 2007 15:44:11 -0600
> >
> >
> >Mac has a check() macro defined in AssertMacros.h, that comes to life if
> >you
> >#define DEBUG.
> >
> >Try re-ordering your includes, removing includes, undefining check, or
> >undefining DEBUG.
> >
> >A comment can be found in qitemdelegate.cpp about this.
> >
> >Clint
> >
> >On Tuesday 26 June 2007 3:03:04 pm Antonio Gil García wrote:
> > > Hi!
> > > I´m trying to compile a QT and VTK program in Mac but after configuring
> > > ccmake and make it, it responds with this error:
> > >
> > > In file included from
> >
> >/usr/local/Trolltech/Qt-4.3.0/include/QtGui/QtGui:78,
> >
> > >                  from
> >
> >/Users/antoniogilgarcia/Desktop/trepano/Herramientas/Visual3D/Visual3D.h:8
> >,
> >
> > >                  from
> >
> >/Users/antoniogilgarcia/Desktop/trepano/Herramientas/Visual3D/Visual3D.cpp:
> > >2: /usr/local/Trolltech/Qt-4.3.0/include/QtGui/qitemdelegate.h:103:40:
> > > error: macro "check" passed 3 arguments, but takes just 1
> > > /usr/local/Trolltech/Qt-4.3.0/include/QtGui/qitemdelegate.h:102: error:
> > > expected ';' before 'const'
> > > make[2]: *** [CMakeFiles/Trepano.dir/Herramientas/Visual3D/Visual3D.o]
> > > Error 1
> > > make[1]: *** [CMakeFiles/Trepano.dir/all] Error 2
> > > make: *** [all] Error 2
> > >
> > > The source code actually works fine in linux and windows, but I don´t
> >
> >know
> >
> > > why dosen´t do in Mac. Can anyone help me?
> > >
> > > Thanks.
> > >
> > > _________________________________________________________________
> > > Descarga gratis la Barra de Herramientas de MSN
> >
> >http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//ww
> >w
> >
> > >.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH
> > >
> > > --
> > > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> > > "unsubscribe" in the subject or the body. List archive and information:
> > > http://lists.trolltech.com/qt-interest/
>
> _________________________________________________________________
> Acepta el reto MSN Premium: Correos más divertidos con fotos y textos
> increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis.
> http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdi
>vertidos
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body. List archive and information:
> http://lists.trolltech.com/qt-interest/


--
 [ signature omitted ]