Results 1 to 3 of 3

Thread: build qtmobility 1.2.0 with visual studio 2008

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

    Default build qtmobility 1.2.0 with visual studio 2008

    Hello. I need to use qtmobility in my project. I am following the installation guide to build and install it (version 1.2.0). Configuring seems to work without any problems, but building fails:

    Qt Code:
    1. ipc\qmetaobjectbuilder.cpp(803) : error C2664: 'QtMobility::QMetaObjectBuilder::
    2. setStaticMetacallFunction' : cannot convert parameter 1 from 'const QMetaObjectE
    3. xtraData::StaticMetacallFunction' to 'QtMobility::QMetaObjectBuilder::StaticMeta
    4. callFunction'
    5. This conversion requires a reinterpret_cast, a C-style cast or function-
    6. style cast
    7. ipc\qmetaobjectbuilder.cpp(1430) : error C2440: '=' : cannot convert from 'QtMob
    8. ility::QMetaObjectBuilder::StaticMetacallFunction' to 'QMetaObjectExtraData::Sta
    9. ticMetacallFunction'
    10. This conversion requires a reinterpret_cast, a C-style cast or function-
    11. style cast
    12. instancemanager.cpp
    13. qservicepackage.cpp
    14. proxyobject.cpp
    15. ipcendpoint.cpp
    16. qremoteserviceregister_p.cpp
    17. Generating Code...
    18. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
    19. VC\BIN\cl.EXE"' : return code '0x2'
    20. Stop.
    21. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
    22. VC\BIN\nmake.exe"' : return code '0x2'
    23. Stop.
    24. NMAKE : fatal error U1077: 'cd' : return code '0x2'
    25. Stop.
    26. NMAKE : fatal error U1077: 'cd' : return code '0x2'
    27. Stop.
    To copy to clipboard, switch view to plain text mode 

    I can build and run ordinary qt projects without any difficulties, so qt itself seems to be correctly installed and configured. Please, help me out.

  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: build qtmobility 1.2.0 with visual studio 2008

    Changing line 175 in src/serviceframework/ipc/qmetaobjectbuilder_p.h from
    Qt Code:
    1. typedef int (*StaticMetacallFunction)(QMetaObject::Call, int, void **);
    To copy to clipboard, switch view to plain text mode 
    to
    Qt Code:
    1. typedef QMetaObjectExtraData::StaticMetacallFunction StaticMetacallFunction;
    To copy to clipboard, switch view to plain text mode 
    seems to fix the issue, but now it can't find qedit.h. The installation guide doesn't tell anything about qedit. What should I do in order to successfully build QtMobility?

  3. #3
    Join Date
    Jul 2012
    Location
    Florianópolis, Brazil
    Posts
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: build qtmobility 1.2.0 with visual studio 2008

    This seems to be caused by some bugs in the QtMobility library. Download the latest code from http://qt.gitorious.org/qt-mobility/...y/trees/master and try to follow the Installation Guide again. It worked for me...

  4. The following user says thank you to alex.magalhaes for this useful post:

    mentalmushroom (18th July 2012)

Similar Threads

  1. QT4 not working in Visual Studio 2008
    By mnemonic69 in forum Installation and Deployment
    Replies: 4
    Last Post: 27th May 2010, 05:37
  2. QtMobility and Visual Studio
    By estel in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 12th February 2010, 14:36
  3. Visual Studio 2008 and Qt
    By konx in forum Installation and Deployment
    Replies: 2
    Last Post: 22nd January 2010, 21:24
  4. How to use Qt with Visual Studio 2008?
    By N3wb in forum Installation and Deployment
    Replies: 2
    Last Post: 13th August 2009, 16:23
  5. Qt 4.3.2 + Visual studio 2008
    By moowy in forum Installation and Deployment
    Replies: 6
    Last Post: 6th December 2007, 06:41

Tags for this Thread

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.