Results 1 to 5 of 5

Thread: Qt4.6.0. + QtDeclarative

  1. #1
    Join Date
    Apr 2007
    Location
    Czech republic
    Posts
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Unhappy Qt4.6.0. + QtDeclarative

    Hi all,

    i need a help to solve the problem i have with building QtDeclarative module for Qt4.6.0.

    I have these two packages:
    - http://qt.nokia.com/developer/qt-4.6...oad-the-qt-4-1
    - http://qt.gitorious.org/qt/kinetic/a...-declarativeui

    i have the first uncompressed into c:\Qt\4.6.0-beta1 and the second into c:\qt\qt-kinetic.
    then i have source directory of QtDeclarative (C:\Qt\qt-kinetic\src\declarative) and includes (C:\Qt\qt-kinetic\include\QtDeclarative and C:\Qt\qt-kinetic\include\Qt) copied into c:\qt\4.6.0-beta1.

    then.. i've set system environment variables QT_DIR and PATH to c:\qt\4.6.0-beta1 and c:\qt\4.6.0-beta1\bin

    then.. i've copied from c:\qt\qt-kinetic\configure.exe and c:\qt\qt-kinetic\src\src.pro to c:\qt\4.6.0-beta1

    then.. i've configured and ran building of Qt

    ....and then it faild:

    c:\qt\4.6.0-beta1\src\declarative\3rdparty\qlistmodelinterface _p.h(52) : error C2146: syntax error : missing ';' before identifier 'QtDeclarativeModule'
    c:\qt\4.6.0-beta1\src\declarative\3rdparty\qlistmodelinterface _p.h(52) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\qt\4.6.0-beta1\src\declarative\3rdparty\qlistmodelinterface _p.h(52) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\qt\4.6.0-beta1\src\declarative\3rdparty\qlistmodelinterface _p.h(54) : error C2470: 'QListModelInterface' : looks like a function definition, but there is no parameter list; skipping apparent body
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
    Stop.

    please, help me

    regards,
    honza

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt4.6.0. + QtDeclarative

    Missing header file? It looks like you are trying to use a class that has not been defined yet.

  3. #3
    Join Date
    Apr 2007
    Location
    Czech republic
    Posts
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4.6.0. + QtDeclarative

    hi fatjuicymole,

    yes, it looks so.. but i do not know where the problem is. i have copied all the source codes from the qt-kinetic package (only the relevant parts, i think)

    the project file is original, then i only "qmaked" and "nmaked" and ... it fails..

    there was no error messages like header file not found. and so on..

    have you maybe an idea what should i change/do/modify.. ?

    the QtDeclarative is able to build, without any error (as original). this package is a part of "some version of 4.6.0" (see 2nd link at my previous post), so i only took the sources and includes of QtDeclarative.

    i do not know what i missed.

    please, help me.

    honza

  4. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt4.6.0. + QtDeclarative

    Find the include file that defines 'QtDeclarativeModule', and then #include that file in the source file that is failing to compile before the file that is causing the error.

  5. #5
    Join Date
    Apr 2007
    Location
    Czech republic
    Posts
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4.6.0. + QtDeclarative

    there is no header file in directory c:\qt\qt-kinetic with "QtDeclarativeModule" in it.
    i searched the entire directory.

    another idea?

    honza

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.