Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Unresolved external - gmtime not found when linking libpng (4.7.4)
Forum Updated to NodeBB v4.3 + New Features

Unresolved external - gmtime not found when linking libpng (4.7.4)

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 4.0k 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.
  • R Offline
    R Offline
    rzur2004
    wrote on last edited by
    #1

    bq. Compiling...
    moc_qsystemtrayicon_p.cpp
    moc_qundogroup.cpp
    moc_qundostack.cpp
    moc_qundostack_p.cpp
    moc_qundoview.cpp
    moc_qkeyeventtransition.cpp
    moc_qmouseeventtransition.cpp
    moc_qbasickeyeventtransition_p.cpp
    moc_qbasicmouseeventtransition_p.cpp
    moc_qgraphicseffect.cpp
    moc_qgraphicseffect_p.cpp
    Generating Code...
    cl -c -FIqt_gui_pch.h -Yuqt_gui_pch.h -Fptmp\obj\debug_shared\QtGuid_pch.pch -nologo -Zm200 -Zc:wchar_t- -DDEBUG -D_DEBUG -Zi -MDd -W3 -w34100 -w34189
    EHsc -DQT_SHARED -DQT_THREAD_SUPPORT -DUNDER_CE -DWINCE -D_WINDOWS -D_UNICODE -DUNICODE -D_WIN32 -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG -D_WIN32_WCE=0x501 -DARMV4
    -D_ARMV4I_ -Darmv4i -D_ARM_ -DARM -D_M_ARM -DARM -D__arm__ -DQ_OS_WINCE_WM -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT
    MAKEDLL -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -D_USE_MATH_DEFINES -DQT_NO_DIRE
    TDRAW -DQT_USE_BUNDLED_LIBPNG -DPNG_NO_ASSEMBLER_CODE -DQT_NO_CUPS -DQT_NO_LPR -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_CDE -DQT_NO_STYLE_WINDOWSVISTA
    DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_PLASTIQUE -DQT_NO_STYLE_GTK -DQT_NO_STYLE_CLEANLOOKS -DQT_NO_STYLE_MOTIF -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_DLL
    DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_IWMMXT -DQT_NO_DYNAMIC_CAST -I"....\include\QtCore" -I"....\include" -I"....\include\QtGui" -I"tmp\rcc\debug_shared" -I
    tmp" -I"c:\QtSrc\4.7.4\src\3rdparty\wintab" -I"c:\QtSrc\4.7.4\src\gui\image" -I"c:\QtSrc\4.7.4\src\3rdparty\libpng" -I"c:\QtSrc\4.7.4\src\3rdparty\zlib" -I"c:
    tSrc\4.7.4\src\3rdparty\zlib" -I"c:\QtSrc\4.7.4\src\3rdparty\harfbuzz\src" -I"c:\QtSrc\4.7.4\src\gui\dialogs" -I"....\include\ActiveQt" -I"tmp\moc\debug_share
    " -I"." -I"c:\QtSrc\4.7.4\src\gui" -I"." -I"c:\QtSrc\4.7.4\mkspecs\wincewm50pocket-msvc2008" -Fotmp\obj\debug_shared\ C:\DOCUME~1\rafcio\USTAWI~1\Temp\nm872.t
    p
    qrc_qstyle_wince.cpp
    qrc_qprintdialog.cpp
    qrc_qmessagebox.cpp
    Generating Code...
    link /LIBPATH:"c:\QtSrc\wce5-shadow\lib" /LIBPATH:"c:\QtSrc\wce5-shadow\lib" /NOLOGO /NODEFAULTLIB:OLDNAMES.LIB /DEBUG /SUBSYSTEM:WINDOWSCE,5.01 /MACHI
    E:THUMB /DLL /VERSION:4.74 /OUT:....\lib\QtGuid4.dll C:\DOCUME~1\rafcio\USTAWI~1\Temp\nm873.tmp
    Creating library ....\lib\QtGuid4.lib and object ....\lib\QtGuid4.exp
    pngwrite.obj : error LNK2019: unresolved external symbol gmtime referenced in function png_convert_from_time_t
    ....\lib\QtGuid4.dll : fatal error LNK1120: 1 unresolved externals
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\ce\bin\x86_arm\link.EXE"' : return code '0x460'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.

    I have tried to modify LIBPNG.PRI by adding:

    @
    wince* {
    SOURCES +=
    $$PWD/ce-compat/ce_time.c
    HEADERS +=
    $$PWD/ce-compat/ce_time.h
    }
    @
    but problem still exists

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fonzi337
      wrote on last edited by
      #2

      I've ran into the exact same issue. "This bug report":https://bugreports.qt.nokia.com/browse/QTBUG-21331 suggests commenting out the line

      @#define PNG_CONVERT_tIME_SUPPORTED@

      in the file /src/3rdparty/libpng/pnglibconf.h

      and try rebuilding Qt.

      I haven't had a chance to try this out just yet, but will update the bug report once I've tried commenting out that line and rebuilding Qt.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rzur2004
        wrote on last edited by
        #3

        I have modified pnglibconf.h as below:

        @
        #ifndef _WIN32_WCE
        #define PNG_CONVERT_tIME_SUPPORTED
        #endif
        @

        it doesn't solve the problem completly, so
        I've added appropriate for 'wince*' source and header files (maybe it is possible .h file being ommited), by modification of given files

        • libpng.pri
        • sqlite.pri
        • widgets.pri

        'ce-compat/ce_time.c'
        'ce-compat/ce_time.h'

        after this all I have done:

        1. configure -platform win32-msvc2008 -xplatform wincewm50pocket-msvc2008 -arch windowsce -stl -exceptions -graphicssystem opengl -multimedia

        2. nmake

        I don't thing this is a good solution - turning off PNG_CONVERT_tIME_SUPPORTED, but build process succeeds.

        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