Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Can't compile qt-mobility-opensource-src-1.2.0

Can't compile qt-mobility-opensource-src-1.2.0

Scheduled Pinned Locked Moved Mobile and Embedded
8 Posts 6 Posters 6.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nan3113
    wrote on last edited by
    #1

    os: win xp sp3
    vs: vs2010
    qt:Qt libraries 4.8.0 for Windows (VS 2010)
    qt-mobility:qt-mobility-opensource-src-1.2.0
    compile steps as below:
    1.start qt 4.8.0 command prompt
    2. enter directory qt-mobility-opensource-src-1.2.0
    3. configure -prefix="c:\\qt\\4.8.0"
    4. nmake

    when do nmake error occurs:
    'QMetaObjectBuilder::setStaticMetacallFunction': cannot convert parameter 1 from 'const QMetaObjectExtraData::StaticMetacallFunction' to 'QtMobility::QMetaObjectBuilder::StaticMetacallFunction'
    This conversion requires a reinterpret_cast, a C-style cast or function-style cast

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gogfather
      wrote on last edited by
      #2

      I'm getting the same thing. Can't compile. Same configuration. I am compiling this so I can get video support in the 4.8.0 webkit.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JohnQ
        wrote on last edited by
        #3

        Hello,
        I have similar problem. Installation Guide: http://doc.qt.nokia.com/qtmobility/installation.html

        Configuration:
        os: Windows 7
        vs: vs2010
        qt:Qt libraries 4.8.0 for Windows (VS 2010)
        qt-mobility:qt-mobility-opensource-src-1.2.0

        when do nmake error occurs:

        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
        instancemanager.cpp
        qservicepackage.cpp
        proxyobject.cpp
        ipcendpoint.cpp
        qremoteserviceregister_p.cpp
        Generating Code...
        NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 10.0\VC\BI
        N\cl.EXE"' : return code '0x2'
        Stop.
        NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 10.0\VC\BI
        N\nmake.exe"' : return code '0x2'
        Stop.
        NMAKE : fatal error U1077: 'cd' : return code '0x2'
        Stop.
        NMAKE : fatal error U1077: 'cd' : return code '0x2'
        Stop.

        Please help....

        1 Reply Last reply
        0
        • P Offline
          P Offline
          pr0digy1
          wrote on last edited by
          #4

          Has anyone come up with a solution to this problem?

          I'm having the exact same problem as the previous posters.
          thank you.

          1 Reply Last reply
          0
          • X Offline
            X Offline
            xulinguestc
            wrote on last edited by
            #5

            hi , gogfather :
            do you solve the problem about compiling qt-mobility-opensource-src-1.2.0 3 for getting video support in the 4.8.0 webkit

            1 Reply Last reply
            0
            • X Offline
              X Offline
              xulinguestc
              wrote on last edited by
              #6

              i get the new qt-mobility code by " git clone git://gitorious.org/qt-mobility/qt-mobility.git "
              compile it as following cmd:
              open cmd of vs2010 and then set the path of QT you compiled
              set QTDIR=F:\qt-everywhere-opensource-src-4.8.0
              set PATH=%QTDIR%\bin;%PATH%
              configure -prefix F:\qt-mobility-prefix
              namke

              get the error:
              windows\qwmihelper_win.cpp(108) : error C2664: “SysAllocString”: cann't transform param 1
              “const ushort *” to “const OLECHAR *”

              1 Reply Last reply
              0
              • J Offline
                J Offline
                JohnQ
                wrote on last edited by
                #7

                It is strange that nobody answered on this question for a long time.

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  hmuelner
                  wrote on last edited by
                  #8

                  You could get the latest qt-mobility code from git (see answer from xulinguestc) which worked for me (using VS2010 on Windows7). Or you could change line 175 in src/serviceframework/ipc/qmetaobjectbuilder_p.h from

                  typedef int (*StaticMetacallFunction)(QMetaObject::Call, int, void **);
                  

                  to

                  typedef QMetaObjectExtraData::StaticMetacallFunction StaticMetacallFunction;
                  

                  Helmut Mülner

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved