Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-49479

QTScript module not building for WEC2013 SDK

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 5.6.0 Alpha
    • Qt Script
    • None
    • Windows 8.1
      VS2013 Ultimate
      WEC2013 GuruCE iMX6 SDK (
      mkspec similar to included toradex colibri (wince80colibri-armv7-msvc2012)

    Description

      QTScript module fails to build for WEC2013 SDK due to an compile error:

      H:\qt-everywhere-opensource-src-5.6.0-alpha\qtscript\src\3rdparty\ce-compat\ce_time.c(47) : error C2084: function 'time_t time(time_t *)' already has a body
      C:\Program Files (x86)\Windows CE Tools\SDKs\GuruCE iMX6 SDK\sdk\crt\Include\time.inl(131) : see previous definition of 'time'
      H:\qt-everywhere-opensource-src-5.6.0-alpha\qtscript\src\3rdparty\ce-compat\ce_time.c(80) : error C2084: function 'time_t mktime(tm *)' already has a body
      C:\Program Files (x86)\Windows CE Tools\SDKs\GuruCE iMX6 SDK\sdk\crt\Include\time.inl(123) : see previous definition of 'mktime'
      H:\qt-everywhere-opensource-src-5.6.0-alpha\qtscript\src\3rdparty\ce-compat\ce_time.c(561) : warning C4028: formal parameter 1 different from declaration
      H:\qt-everywhere-opensource-src-5.6.0-alpha\qtscript\src\3rdparty\ce-compat\ce_time.c(561) : warning C4028: formal parameter 2 different from declaration
      H:\qt-everywhere-opensource-src-5.6.0-alpha\qtscript\src\3rdparty\ce-compat\ce_time.c(561) : warning C4028: formal parameter 3 different from declaration
      H:\qt-everywhere-opensource-src-5.6.0-alpha\qtscript\src\3rdparty\ce-compat\ce_time.c(561) : warning C4028: formal parameter 4 different from declaration
      H:\qt-everywhere-opensource-src-5.6.0-alpha\qtscript\src\3rdparty\ce-compat\ce_time.c(613) : error C2084: function 'tm *gmtime(const time_t *)' already has a body
      C:\Program Files (x86)\Windows CE Tools\SDKs\GuruCE iMX6 SDK\sdk\crt\Include\time.inl(99) : see previous definition of 'gmtime'
      H:\qt-everywhere-opensource-src-5.6.0-alpha\qtscript\src\3rdparty\ce-compat\ce_time.c(675) : error C2084: function 'tm *localtime(const time_t *)' already has a body
      C:\Program Files (x86)\Windows CE Tools\SDKs\GuruCE iMX6 SDK\sdk\crt\Include\time.inl(112) : see previous definition of 'localtime'
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Windows CE Tools\SDKs\GuruCE iMX6 SDK\sdk\bin\i386\arm\cl.EXE"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.

      WEC2013 SDK contains implementation for the mentioned time function(s) and so they are only related to version between prior WEC2013. Suggestion to solve this issue by adding the following #ifdef clause to the ce_compat.h:

      #if defined(_WIN32_WCE) && (_WIN32_WCE < 0x800)
      #endif

      and in ce_compact.cpp
      #if defined(_WIN32_WCE) && (_WIN32_WCE >= 0x600) && (_WIN32_WCE < 0x800)
      #endif

      Attached ce_compat (zipped) folder with 2 files for proposal. Path for ce_compat = \qt-everywhere-opensource-src-5.6.0-alpha\qtscript\src\3rdparty

      Attachments

        Issue Links

          Activity

            People

              aholza Andreas Holzammer
              ErwinZwart Erwin Zwart
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: