Results 1 to 3 of 3

Thread: Error building QtMobility

  1. #1
    Join Date
    May 2012
    Posts
    37
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Error building QtMobility

    Hello all

    I try to build QtMobility 1.2.0 on windows, but it fails. I have Qt 4.8.0 compiled and installed and I'm able to create projects using Qt Creator and Visual Studio 2010

    Steps I did:
    Download the sources from the Qt website
    Unpacked in a folder
    Opened a visual studio command line
    Configure
    nmake

    I get the following error in the nmake:

    C:\Qt\QtMobility>nmake

    Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
    Copyright (C) Microsoft Corporation. All rights reserved.

    cd src\ && "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\n
    make.exe" -f Makefile

    Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
    Copyright (C) Microsoft Corporation. All rights reserved.

    cd global\ && "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BI
    N\nmake.exe" -f Makefile

    Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
    Copyright (C) Microsoft Corporation. All rights reserved.

    cd serviceframework\ && "c:\Program Files (x86)\Microsoft Visual Studio
    10.0\VC\BIN\nmake.exe" -f Makefile

    Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
    Copyright (C) Microsoft Corporation. All rights reserved.

    "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" -
    f Makefile.Debug all

    Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
    Copyright (C) Microsoft Corporation. All rights reserved.

    cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189
    -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_SHARED -DQTM_PLUGIN_PATH=\"C:/QtM
    obility/plugins\" -DQT_BUILD_SFW_LIB -DQT_MAKEDLL -DQT_DLL -DQT_SQL_LIB -DQT_NET
    WORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMX
    EXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"c:\Qt\4.8.0x64\include\QtCore" -I"c:\Q
    t\4.8.0x64\include\QtNetwork" -I"c:\Qt\4.8.0x64\include\QtSql" -I"c:\Qt\4.8.0x64
    \include" -I"..\global" -I"ipc" -I"." -I"c:\Qt\4.8.0x64\include\ActiveQt" -I"..\
    ..\build\Debug\QtServiceFramework\moc" -I"c:\Qt\4.8.0x64\mkspecs\default" -Fo..\
    ..\build\Debug\QtServiceFramework\ @C:\Users\wdh\AppData\Local\Temp\nm2B4C.tmp
    qmetaobjectbuilder.cpp
    ipc\qmetaobjectbuilder.cpp(803) : error C2664: 'QtMobility::QMetaObjectBuilder::
    setStaticMetacallFunction' : cannot convert parameter 1 from 'const QMetaObjectE
    xtraData::StaticMetacallFunction' to 'QtMobility::QMetaObjectBuilder::StaticMeta
    callFunction'
    This conversion requires a reinterpret_cast, a C-style cast or function-
    style cast
    ipc\qmetaobjectbuilder.cpp(1430) : error C2440: '=' : cannot convert from 'QtMob
    ility::QMetaObjectBuilder::StaticMetacallFunction' to 'QMetaObjectExtraData::Sta
    ticMetacallFunction'
    This conversion requires a reinterpret_cast, a C-style cast or function-
    style cast
    NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0
    \VC\BIN\cl.EXE"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0
    \VC\BIN\nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.

    C:\Qt\QtMobility>
    Any ideas?
    Last edited by Kwakkie; 10th May 2012 at 16:19.

  2. #2
    Join Date
    Feb 2011
    Posts
    354
    Thanks
    17
    Thanked 27 Times in 24 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default Re: Error building QtMobility

    I am using Qt Mobility along with Visual Studio 2008 + Qt 4.7.2. Unfortunately I don't remember exactly how to build it, but I remember you need to install Perl for that.

  3. #3
    Join Date
    May 2012
    Posts
    37
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Error building QtMobility

    I believe you need perl for Qt as well. I have perl installed and Qt compiled fine. Anyway, the error doesn't look like it's perl related. It looks like a QMobility namespace issue which suggests some problems in code, declaration or package setup. Either way, it looks like a general problem.

Similar Threads

  1. error while compiling qtmobility from source
    By Aladin in forum Installation and Deployment
    Replies: 4
    Last Post: 5th May 2011, 16:24
  2. Getting error in QTMobility Stuffs
    By sk.qt in forum Newbie
    Replies: 3
    Last Post: 22nd November 2010, 08:20
  3. QTMobility API - Installation Error
    By Girija in forum Newbie
    Replies: 5
    Last Post: 15th October 2010, 11:35
  4. Error when building Qt4 on Mac OS X
    By DragonLance156156 in forum Installation and Deployment
    Replies: 11
    Last Post: 17th February 2009, 16:29
  5. Building qt error
    By as001622 in forum Installation and Deployment
    Replies: 1
    Last Post: 20th June 2008, 08:19

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.