Windows CE development / VS problems



  • Hi
    How do I get QT running with visual studio / CE development.
    I have the following:
    QTSDK
    QTCreator works very well
    qt-everywhere-opensource-src-4.7.4.zip decompressed
    Standard SDK for CE 5.0 installed.
    This does not appear to come with the compiler, so is probably useless
    Visual studio 2005 installed.
    Its an old version and complains abaout working with windows 7,
    also appears only to support Pocket PC 2003 not wince

    configure process:
    added the mingw compiler and visual studio paths, and then ran configure:

    PATH=%PATH%;C:\QtSDK\Desktop\Qt\4.7.4\mingw\bin
    PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\Tools
    configure -platform win32-msvc2005 -xplatform wincewm50pocket-msvc2005

    That went OK.

    Next the build:
    PATH modified to include qt-everywhere-opensource-src-4.7.4\bin, and remove mingw\bin
    setcepaths.bat wincewm50pocket-msvc2005 && nmake
    Fatal error - doent like wincewm50pocket-msvc2005

    So eventually I dug into setcepaths and did the following:
    checksdk -list
    Available SDKs:
    SDK Name: Pocket PC 2003 (ARMV4)
    SDK Name: Smartphone 2003 (ARMV4)

    None of these match the options in setcepaths.

    Question:
    As visual studio is a bit out of date, would the best way forward be to buy an up to date version of VS ?
    Or is there another way to get it running ?



  • take a look at "Installing Qt for Windows CE":http://doc.qt.nokia.com/latest/install-wince.html

    [quote author="paul2231" date="1323547119"]
    This does not appear to come with the compiler, so is probably useless
    Visual studio 2005 installed.
    Its an old version and complains abaout working with windows 7,
    also appears only to support Pocket PC 2003 not wince
    [/quote]

    No it's not came with SDK package. you should build it your self based on your device OS. It will be well done with VS2005 and you wont have trouble with it.
    It's not only about Pocket PC 2003. You can build it for WM60, 65, Standard CE SDK and ...

    Try, and if you had trouble, i'll help you.



  • Hi
    How do I build for the standard CE 5.0 then ?
    Do I need the platform builder, and does that come with VS ?
    Thanks.



  • I have downoaded and installed Windows Mobile 5.0 Pocket PC SDK.msi
    checksdk -list now gives a lot more options.

    However
    when I run nmake I get
    cl .....
    C:\Program Files (x86)\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Include\Armv4i\winreg.h(157) : error C2061: syntax error : identifier '__opt'

    cl is the correct arm version ?:
    cl
    Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50725 for ARM
    Copyright (C) Microsoft Corporation. All rights reserved.

    and for nmake:
    nmake -h
    Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
    Copyright (C) Microsoft Corporation. All rights reserved.

    Note: nmake is in a different directory from cl



  • I have managed to get it to go a bit further, but now I get a missing gmtime function

        link /LIBPATH:"c:\QtSDK\qt-everywhere-opensource-src-4.7.4\lib" /LIBPATH
    

    :"c:\QtSDK\qt-everywhere-opensource-src-4.7.4\lib" /NOLOGO /NODEFAULTLIB:OLDNAME
    S.LIB /DEBUG /SUBSYSTEM:WINDOWSCE,5.00 /MACHINE:THUMB /DLL /VERSION:4.74 /OUT:..
    ..\lib\QtGuid4.dll @C:\Users\Paul\AppData\Local\Temp\nmFD65.tmp
    Creating library ....\lib\QtGuid4.lib and object ....\lib\QtGuid4.exp
    pngwrite.obj : error LNK2019: unresolved external symbol gmtime referenced in fu
    nction png_convert_from_time_t



  • hey dude! I just created a Wiki page and completely described
    "Look at there":http://developer.qt.nokia.com/wiki/Building-Qt-4.7.4-for-WindowsCE-StandardSDK



  • @mohsen

    I've just added a quick note on the bottom of the wiki about the problems with WinCE5 memory limits.

    There was an excellent presentation about this at DevDays 2009 but I can't find it any more, do you remember anything about that?



  • Hi
    That final problem was a bug in the souce - I have commented out PNG_CONVERT_tIME_SUPPORTED in pnglibconf.h and it worked fine.



  • [quote author="SteveKing" date="1323689789"]@mohsen
    I've just added a quick note on the bottom of the wiki about the problems with WinCE5 memory limits.

    There was an excellent presentation about this at DevDays 2009 but I can't find it any more, do you remember anything about that?[/quote]

    Thanks for sharing your experience!
    Actually i've not ever heared about that. Usually i prefer dynamic loading libraries on embedded devices due to memory limits on this sort of devices. Did you have same result on Embedded Linux? One idea is that because the architecture of ARM processors.



  • I think CE 5.0 only supports 32MB of program+data space (and max 32 processes also). This is fixed in CE 6.0



  • VS2005 Standard still keeps crashing under Win7-64 bit.
    Would it be safe to use VS2010 instead to cross-compile Windows Mobile/CE applications ?
    I just thouht I would ask before buying it.



  • @paul:

    I'm not sure if VS2010 can compile for WinCE, it certainly couldn't a year or so ago but it might be okay now.

    Is the VS2005 crash happening when you try to compile the Qt libraries from within the tool? I've found that I can only compile QtScript from the command line as it always crashes VS2005 when I load it.

    @mohsen:

    It's a WinCE5 thing which is a real pain! I haven't heard that any other OS's have this problem.


Log in to reply
 

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