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. nmakewhen 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 -
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.
-
Hello,
I have similar problem. Installation Guide: http://doc.qt.nokia.com/qtmobility/installation.htmlConfiguration:
os: Windows 7
vs: vs2010
qt:Qt libraries 4.8.0 for Windows (VS 2010)
qt-mobility:qt-mobility-opensource-src-1.2.0when 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....
-
Has anyone come up with a solution to this problem?
I'm having the exact same problem as the previous posters.
thank you. -
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 -
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
namkeget the error:
windows\qwmihelper_win.cpp(108) : error C2664: “SysAllocString”: cann't transform param 1
“const ushort *” to “const OLECHAR *” -
It is strange that nobody answered on this question for a long time.
-
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;