[Qt-interest] Qt Creator2.0.1 compile error

Kai Koehne kai.koehne at nokia.com
Wed Feb 9 09:04:30 CET 2011


On 2/9/2011 7:40 AM, ext william lee wrote:
> Hi Thiago,
> I see the same build error today.
> Build Env:
> Win7 x64
> MSVC2008 Pro+sp1
> qt-everywhere-opensource-src-4.7.1 built with x64, all okay.
> When I build Qt Creator 2.0.1 from source, the x64bit build failed due
> to following erros.
> Anything I do wrong?

No, you aren't doing anything wrong. The QmlDesigner plugin in 2.0.1 
heavily uses private headers from Qt, and one has changed from 4.7 to 
4.7.1. See also the section 'QmlDesigner, QmlInspector require private 
headers' in the README.

You have a couple of choices:
  * Compile against 4.7.0
  * Disable QmlDesigner, QmlJSInspector by passing 
'QT_PRIVATE_HEADERS=x' to qmake
    qmake -r "QT_PRIVATE_HEADERS=x"
  * Compile 2.1 branch of Qt Creator (2.1 RC has already been released). 
Definitely recommended if you want to work with QML!

Regards

Kai

> Thanks,
> William L.
> -------------------------------------------------------------------------------------------------------------------------------------
> designercore\instances\qmlpropertychangesnodeinstance.cpp(344) : error
> C3867: 'QDeclarativeSimpleAction::specifiedProperty': function call
> missing argument list; use '&QDeclarativeSimpleAction::specifiedPr
> operty' to create a pointer to member
> designercore\instances\qmlpropertychangesnodeinstance.cpp(344) : error
> C3867: 'QDeclarativeSimpleAction::specifiedProperty': function call
> missing argument list; use '&QDeclarativeSimpleAction::specifiedPr
> operty' to create a pointer to member
> designercore\instances\qmlpropertychangesnodeinstance.cpp(344) : error
> C3867: 'QDeclarativeSimpleAction::specifiedProperty': function call
> missing argument list; use '&QDeclarativeSimpleAction::specifiedPr
> operty' to create a pointer to member
> designercore\instances\qmlpropertychangesnodeinstance.cpp(344) : error
> C3867: 'QDeclarativeSimpleAction::specifiedProperty': function call
> missing argument list; use '&QDeclarativeSimpleAction::specifiedPr
> operty' to create a pointer to member
> designercore\instances\qmlpropertychangesnodeinstance.cpp(344) : error
> C3867: 'QDeclarativeSimpleAction::specifiedProperty': function call
> missing argument list; use '&QDeclarativeSimpleAction::specifiedPr
> operty' to create a pointer to member
> designercore\instances\qmlpropertychangesnodeinstance.cpp(344) : error
> C3867: 'QDeclarativeSimpleAction::specifiedProperty': function call
> missing argument list; use '&QDeclarativeSimpleAction::specifiedPr
> operty' to create a pointer to member
> designercore\instances\qmlpropertychangesnodeinstance.cpp(344) : error
> C3867: 'QDeclarativeSimpleAction::specifiedProperty': function call
> missing argument list; use '&QDeclarativeSimpleAction::specifiedPr
> operty' to create a pointer to member
> designercore\instances\qmlpropertychangesnodeinstance.cpp(344) : error
> C3867: 'QDeclarativeSimpleAction::specifiedProperty': function call
> missing argument list; use '&QDeclarativeSimpleAction::specifiedPr
> operty' to create a pointer to member
> designercore\instances\qmlpropertychangesnodeinstance.cpp(344) : error
> C2678: binary '==' : no operator found which takes a left-hand operand
> of type 'overloaded-function' (or there is no acceptable conver
> sion)
> c:\qt\qt-everywhere-opensource-src-4.7.1\include\qtcore\../../src/corelib/global/qglobal.h(1884):
> could be 'bool operator ==(QBool,bool)' [found using argument-dependent
> lookup]
> c:\qt\qt-everywhere-opensource-src-4.7.1\include\qtcore\../../src/corelib/global/qglobal.h(1885):
> or 'bool operator ==(bool,QBool)' [found using argument-dependent lookup]
> c:\qt\qt-everywhere-opensource-src-4.7.1\include\qtcore\../../src/corelib/global/qglobal.h(1886):
> or 'bool operator ==(QBool,QBool)' [found using argument-dependent lookup]
> c:\qt\qt-everywhere-opensource-src-4.7.1\include\qtcore\../../src/corelib/tools/qsize.h(83):
> or 'bool operator ==(const QSize &,const QSize &)' [found using
> argument-dependent lookup]
> c:\qt\qt-everywhere-opensource-src-4.7.1\include\qtcore\../../src/corelib/tools/qsize.h(233):
> or 'bool operator ==(const QSizeF &,const QSizeF &)' [found using
> argument-dependent lookup]
> c:\qt\qt-everywhere-opensource-src-4.7.1\include\qtcore\../../src/corelib/tools/qpoint.h(76):
> or 'bool operator ==(const QPoint &,const QPoint &)' [found using
> argument-dependent lookup]
> c:\qt\qt-everywhere-opensource-src-4.7.1\include\qtcore\../../src/corelib/tools/qpoint.h(212):
> or 'bool operator ==(const QPointF &,const QPointF &)' [found using
> argument-dependent lookup]
> c:\qt\qt-everywhere-opensource-src-4.7.1\include\qtcore\../../src/corelib/tools/qrect.h(162):
> or 'bool operator ==(const QRect &,const QRect &)' [found using
> argument-dependent lookup]
> c:\qt\qt-everywhere-opensource-src-4.7.1\include\qtcore\../../src/corelib/tools/qrect.h(599):
> or 'bool operator ==(const QRectF &,const QRectF &)' [found using
> argument-dependent lookup]
> c:\qt\qt-everywhere-opensource-src-4.7.1\include\qtcore\../../src/corelib/tools/qchar.h(386):
> or 'bool operator ==(QChar,QChar)' [found using argument-dependent lookup]
> c:\qt\qt-everywhere-opensource-src-4.7.1\include\qtcore\../../src/corelib/tools/qbytearray.h(509):
> or 'bool operator ==(const QByteArray &,const QByteArray &)' [found
> using argument-dependent
> lookup]
> ......
> On Sat, Dec 11, 2010 at 7:12 PM, Thiago Macieira <thiago at kde.org
> <mailto:thiago at kde.org>> wrote:
>
>     On Saturday, 11 de December de 2010 07:50:34 lvbing lvbing wrote:
>      > My Platform:
>      > Win XP + Qt4.7.1 + Qt Creator 2.0.1
>      > When compile the plugin/qmldesigner,have some error like
>     those,who know how
>      > to deal it?
>     [cut]
>
>     Please paste the error messages in English.
>
>     --
>     Thiago Macieira - thiago (AT) macieira.info <http://macieira.info/>
>     - thiago (AT) kde.org <http://kde.org/>
>     Senior Product Manager - Nokia, Qt Development Frameworks
>     PGP/GPG: 0x6EF45358; fingerprint:
>     E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
>
>     _______________________________________________
>     Qt-interest mailing list
>     Qt-interest at trolltech.com <mailto:Qt-interest at trolltech.com>
>     http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest


-- 
Kai Koehne
Software Engineer
Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori



More information about the Qt-interest-old mailing list