Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Can't compile Location module of QtMobility for WinCE

Can't compile Location module of QtMobility for WinCE

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 1 Posters 2.5k 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.
  • D Offline
    D Offline
    duddo
    wrote on last edited by
    #1

    Hi everybody,
    I'm trying to compile src\location\location.pro 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):
    @
    vcvarsall.bat
    setcepaths.bat wincewm60professional-msvc2008
    cd C:\qt-mobility\src\location
    qmake location.pro
    nmake
    @

    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
    with
    [
    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_
    will_always_fail_because_rtti_is_disabled'
    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!

    1 Reply Last reply
    0
    • D Offline
      D Offline
      duddo
      wrote on last edited by
      #2

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

      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
      pj_fwd.c
      ..\3rdparty\proj\pj_fwd.c(4) : fatal error C1083: Cannot open include file: 'errno.h': No such file or directory
      pj_init.c
      ..\3rdparty\proj\pj_init.c(36) : fatal error C1083: Cannot open include file: 'errno.h': No such file or directory
      pj_inv.c
      ..\3rdparty\proj\pj_inv.c(4) : fatal error C1083: Cannot open include file: 'errno.h': No such file or directory
      @

      Any suggestions, please?

      1 Reply Last reply
      0
      • D Offline
        D Offline
        duddo
        wrote on last edited by
        #3

        The Odyssey continues: WCELIBCEX is needed in order to compile PROJ for WinCE. So I downloaded it
        @
        svn co https://wcelibcex.svn.sourceforge.net/svnroot/wcelibcex/trunk 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..

        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