Results 1 to 1 of 1

Thread: Qt compilation error -- QtCppIntegration

  1. #1
    Join Date
    Jun 2008
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Qt compilation error -- QtCppIntegration

    Hello,

    Compile error for Qt4.4.3 when trying to add the configuration option -qtnamespace QtCppIntegration.

    If I do not use this option, Qt compiles fine, if I do I get:

    qaxobject.h:62: error: specialization of `template<class T> struct QtCppIntegration::QMetaTypeId' in different namespace

    I am on WindowsXP SP2
    using gcc version 3.4.2 and mingw32-make version 3.80.

    I am trying to get designer plugins to work in the Qt eclipse integration version 1.4.3

    Thank you in advance for any and all advice
    Jack

    P.S. this is the actual print out.

    mingw32-make[3]: Entering directory `C:/tmp/qt-win-commercial-src-4.4.3/src/activeqt/container'
    g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NAMESPACE=QtCppIntegration -DQT_EDITION=QT_EDITION_DESKTOP -DQT_N
    O_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\include\QtCore" -I"..\..\..\include\QtCore" -I"..\..\..\include\QtGui" -I"..\..\..\
    include\QtGui" -I"..\..\..\include" -I"..\..\..\include\ActiveQt" -I"tmp\moc\release_shared" -I"." -I"..\..\..\mkspecs\win32-g++" -o tmp\obj\release_s
    hared\qaxbase.o qaxbase.cpp
    In file included from qaxbase.cpp:24:
    qaxobject.h:62: error: specialization of `template<class T> struct QtCppIntegration::QMetaTypeId' in different namespace
    ../../../include/QtCore/../../src/corelib/kernel/qmetatype.h:177: error: from definition of `template<class T> struct QtCppIntegration::QMetaTypeId'

    qaxbase.cpp: In function `bool QtCppIntegration::checkHRESULT(LONG, EXCEPINFO*, QtCppIntegration::QAxBase*, const QtCppIntegration::QString&, uint)':
    qaxbase.cpp:3349: warning: converting of negative value `-0x000000001' to `short unsigned int'
    mingw32-make[3]: *** [tmp/obj/release_shared/qaxbase.o] Error 1
    mingw32-make[3]: Leaving directory `C:/tmp/qt-win-commercial-src-4.4.3/src/activeqt/container'
    mingw32-make[2]: *** [release] Error 2
    mingw32-make[2]: Leaving directory `C:/tmp/qt-win-commercial-src-4.4.3/src/activeqt/container'
    mingw32-make[1]: *** [sub-container-make_default-ordered] Error 2
    mingw32-make[1]: Leaving directory `C:/tmp/qt-win-commercial-src-4.4.3/src/activeqt'
    mingw32-make: *** [sub-activeqt-make_default-ordered] Error 2

    C
    Last edited by jmandile; 10th November 2008 at 01:43. Reason: Platform shows as Unix/X11 when it should be windows

Similar Threads

  1. Compilation Error
    By ^NyAw^ in forum General Programming
    Replies: 2
    Last Post: 30th September 2008, 17:37
  2. Qt 4,4 on Solaris 10 compilation error
    By ToddAtWSU in forum Installation and Deployment
    Replies: 2
    Last Post: 1st July 2008, 13:24
  3. sub-dir compilation problem
    By Salazaar in forum Newbie
    Replies: 13
    Last Post: 2nd November 2007, 21:48
  4. Compilation problems with QT 4.3.1
    By mansoorulhaq in forum Qt Programming
    Replies: 2
    Last Post: 20th August 2007, 09:47
  5. Compilation without......
    By ball in forum Installation and Deployment
    Replies: 1
    Last Post: 28th January 2006, 21:31

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.