Can't compile Location module of QtMobility for WinCE

  • Hi everybody,
    I'm trying to compile src\location\ for Windows Mobile Pro 6.0. The environment is correctly set up because I successfully compiled Qt 4.8.2 and QtMobility 1.2 Messaging module. These are the steps i followed (in Visual Studio prompt):
    setcepaths.bat wincewm60professional-msvc2008
    cd C:\qt-mobility\src\location

    And these are the errors:

    c:\s2workspace\qt\4.8.2_wince\include\qtcore../../src/corelib/global/qglobal.h(2485) : error C2825: 'T': must be a class or namespace when followed by '::'
    maps\qgeomapobjectengine_p.cpp(231) : see reference to function template instantiation 'T qt_dynamic_cast_checkQtMobility::QGeoMapCircleObject*,QtMobility::QGeoMapObject*(X,T *)' being compiled
    T=QtMobility::QGeoMapCircleObject *,
    X=QtMobility::QGeoMapObject *
    c:\s2workspace\qt\4.8.2_wince\include\qtcore../../src/corelib/global/qglobal.h(2485) : error C2039: 'dynamic_cast_will_always_fail_because_rtti_is_disabled' :
    is not a member of '`global namespace''
    c:\s2workspace\qt\4.8.2_wince\include\qtcore../../src/corelib/global/qglobal.h(2485) : error C2146: syntax error : missing ';' before identifier 'dynamic_cast_
    c:\s2workspace\qt\4.8.2_wince\include\qtcore../../src/corelib/global/qglobal.h(2485) : error C2275: 'T' : illegal use of this type as an expression
    maps\qgeomapobjectengine_p.cpp(231) : see declaration of 'T'
    c:\s2workspace\qt\4.8.2_wince\include\qtcore../../src/corelib/global/qglobal.h(2485) : error C2065: 'dynamic_cast_will_always_fail_because_rtti_is_disabled' :
    undeclared identifier

    I there any fix for this? Thank you in advance for help!

  • Ok, problem solved modifying manually Makefile.Debug and Makefile.Release. I removed the directive:

    from the DEFINE variable. Now templates seems to be compiled normally.

    But i can't get a working Location module yet, the compiler now is showing numerous errors like these:
    ..\3rdparty\proj\pj_factors.c(4) : fatal error C1083: Cannot open include file:'errno.h': No such file or directory
    ..\3rdparty\proj\pj_fwd.c(4) : fatal error C1083: Cannot open include file: 'errno.h': No such file or directory
    ..\3rdparty\proj\pj_init.c(36) : fatal error C1083: Cannot open include file: 'errno.h': No such file or directory
    ..\3rdparty\proj\pj_inv.c(4) : fatal error C1083: Cannot open include file: 'errno.h': No such file or directory

    Any suggestions, please?

  • The Odyssey continues: WCELIBCEX is needed in order to compile PROJ for WinCE. So I downloaded it
    svn co wcelibcex

    and added to include path.
    Compilation fails again at the macro:
    #if !defined(_WIN32_WCE)

    error "Only Winddows CE target is supported!"


    ..but that is correctly defined in the Makefile, so I commented out that lines.

    However, the compiler still stops at the error:
    C:\Program Files (x86)\Windows Mobile 6 SDK\PocketPC\include\ARMV4I\winnt.h(212) : error C2040: 'LP' : 'LPWSTR' differs in levels of indirection from 'LP'

    Keep trying..

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.