December 23, 2011

skdjfsk skdjfsk
Lab Rat
9 posts

can’t compile qt-mobility-opensource-src-1.2.0

 

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

7 replies

February 21, 2012

gogfather gogfather
Lab Rat
3 posts

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.

February 28, 2012

JohnQ JohnQ
Lab Rat
2 posts

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 ‘0×2’
Stop.
NMAKE : fatal error U1077: ‘“c:\Program Files\Microsoft Visual Studio 10.0\VC\BI
N\nmake.exe”’ : return code ‘0×2’
Stop.
NMAKE : fatal error U1077: ‘cd’ : return code ‘0×2’
Stop.
NMAKE : fatal error U1077: ‘cd’ : return code ‘0×2’
Stop.

Please help….

March 26, 2012

pr0digy1 pr0digy1
Lab Rat
2 posts

Has anyone come up with a solution to this problem?

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

March 31, 2012

xulinguestc xulinguestc
Lab Rat
5 posts

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

April 1, 2012

xulinguestc xulinguestc
Lab Rat
5 posts

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 *”

April 4, 2012

JohnQ JohnQ
Lab Rat
2 posts

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

May 7, 2012

hmuelner hmuelner
Ant Farmer
26 posts

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;
 Signature 

Helmut Mülner

 
  ‹‹ Commercial embedded Linux and Qt: what do you use/recommend?      Running app on Qt simulator gives an error ’Cannot open file myapp.exe’ ››

You must log in to post a reply. Not a member yet? Register here!