Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Building Qt 5.2.1 for WinCE 6.0 Custom SDK with errors



  • Hey guys,
    I am trying to compile Qt 5.2.1 for WinCe6 with a custom SDK(MySDK), but I always get this error:

    @Generating Code...
    link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:CONSOLE "
    /MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' versio
    n='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture
    ='
    '" /MANIFEST /MANIFESTFILE:......\bin\moc.exe.embed.manifest /OUT:......
    bin\moc.exe @C:\Users\admin\AppData\Local\Temp\nm1D54.tmp
    Creating library ......\bin\moc.lib and object ......\bin\moc.exp
    Qt5Bootstrap.lib(quuid.obj) : error LNK2019: unresolved external symbol impC
    oCreateGuid
    @4 referenced in function "public: static class QUuid __cdecl QUuid::
    createUuid(void)" (?createUuid@QUuid@@SA?AV1@XZ)
    ......\bin\moc.exe : fatal error LNK1120: 1 unresolved externals
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0
    VC\BIN\link.EXE"' : return code '0x460'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.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.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.@

    I checked the method CoCreateGuid and it´s a winCE method in the ole32.lib. in order to help him find the lib, I added the path and the libname in configure like this:

    @configure -release -nomake examples -nomake tests -opensource -confirm-license -platform win32-msvc2008 -xplatform wince60MySDK -armv4i-msvc2008 -L "C:/Lib/Armv4i" -L "C:/Program Files (x86)/Windows CE Tools/wce600/MySDK/Lib/ARMV4I" -l "ole32" @

    I also added -L "C:/Lib/Armv4i" in order to find the required dnsapi.lib and this works... but not for the ole32 lib :(

    Please help me... i am trying to bild qt since several days now and it just dosen´t work :((

    btw: this is my qmake.conf file (i just copied the standard sdk and changed the CE_SDK name!

    @#

    qmake configuration for wince-msvc2008

    Written for Microsoft VS 2008 for WindowsCE 6.0 (ARMV4I)

    This is just a template for creating Windows CE 6 mkspecs.

    include(../common/wince/qmake.conf)

    CE_SDK = MySDK
    CE_ARCH = ARMV4I

    DEFINES += STANDARDSHELL_UI_MODEL _WIN32_WCE=0x600 $$CE_ARCH ARMV4I armv4i ARM ARM _M_ARM ARM _WIN32 arm

    QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:WINDOWSCE,6.00 /MACHINE:THUMB /ENTRY:mainACRTStartup
    QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWSCE,6.00 /MACHINE:THUMB
    QMAKE_LFLAGS_DLL = /SUBSYSTEM:WINDOWSCE,6.00 /MACHINE:THUMB /DLL /SAFESEH:NO
    QMAKE_LIBFLAGS_RELEASE = /LTCG
    QMAKE_LIBS = corelibc.lib coredll.lib
    QMAKE_LIBS_CORE = libcmt.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib coredll.lib winsock.lib
    QMAKE_LIBS_GUI = ceshell.lib ole32.lib $$QMAKE_LIBS_CORE
    QMAKE_LIBS_NETWORK = ws2.lib $$QMAKE_LIBS_GUI
    QMAKE_LIBS_OPENGL =
    QMAKE_LIBS_COMPAT =

    QMAKE_RC = rc /DUNDER_CE=600 /D_WIN32_WCE=0x600
    @


Log in to reply