Qt 4.8.1 on Windows CE
Have not been able to build Qt 4.8.0 with our Windows CE SDK and MSVC 2005, but was hoping for 4.8.1 to work better.
It doesn’t. It currently gets to the 3rd party library zlib, which it fails to compile with a bunch of similar errors, e.g.:
- c:\p4ws\balthazar\camera\apps\main\qt\4.8.1\src\3rdparty\zlib\gzguts.h(82) : error C2085: 'gzopen64' : not in formal parameter list
Has anyone else had this problem, and found a way to solve it?
5 replies
I’m encountering the same issue, I’ll try to fix it by my self if I can.
Have you already found something?
My current configure command is :
- configure -release -opensource -fast -nomake examples -nomake demos -no-qt3support -no-webkit -no-phonon -no-dbus -no-script -no-scripttools -no-multimedia -platform win32-msvc2008 -xplatform wince50standard-armv4i-msvc2008 -D QT_NO_DRAGANDDROP -D QT_NO_CLIPBOARD -D QT_NO_CURSOR
Solved this issue.
Add following lines to 3dparty\zlib\gzguts.h :
- #define open qt_wince_open
- #define close qt_wince__close
- #define lseek qt_wince__lseek
- #define read qt_wince__read
- #define write qt_wince__write
Before
- #include <qglobal.h>
- #include <qfunctions_wince.h>
In corelib/kernel/qfunctions_wince.h change this
- #ifdef QT_BUILD_CORE_LIB
- QT_MODULE(Core)
- #endif
with following (add semicolon)
- #ifdef QT_BUILD_CORE_LIB
- QT_MODULE(Core);
- #endif
And remove Zlib specific section because it was just moved to gzguts.h
- #ifdef ZLIB_H
- #define open qt_wince_open
- #define close qt_wince__close
- #define lseek qt_wince__lseek
- #define read qt_wince__read
- #define write qt_wince__write
- #endif
Best of luck
You must log in to post a reply. Not a member yet? Register here!



