problem configurating qt for vs2008



  • Hi, I'm not sure if I should post this question here or in embedded section, anyway, problem is I'm following this instruction bellow :
    http://doc.qt.io/qt-5.6/install-wince.html
    In step 3 when I want to configure qt for vs2008 I'm getting following error :

    c:\qt2\qt5.8.0\qtbase\include\qtcore\../../src/corelib/global/qglobal.h(45) : fatal error C1083: Cannot open include file: 'type_traits': No such file or directory
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'
    

    I downloaded Qt 5.8.0 source, I read the README file and it says it's need vs2012 or later, so this means I can't use this for vs2008? The documentation is for qt 5.6.

    Please tell what I'm doing wrong here.
    Thanks


  • Qt Champions 2016

    Hi
    Qt 5.6 might use c++ constructs that 2008 do not handle etc.
    So there might be issues compiling it.
    You cant use 2012 ? or simply use 2015/17 ?



  • I want to use qt for old wince platforms, so I need to use vs08.
    Also that document use msvc2008 to configure qt.
    I think there is some kind of conflict between qt docs and source README file.
    I'm confused.


  • Qt Champions 2016

    @Hamed
    well just use older qt then.
    let me check.
    there is version that match 2008.

    https://download.qt.io/archive/qt/4.8/4.8.6/
    is for 2008.



  • Hmm, I think I should do that.
    But what about Qt documentation? I suspect if I'm doing something wrong here but the steps are too simple to do mistakes.


  • Qt Champions 2016

    @Hamed
    hmm. i missed th elink.
    You are right. it should work.
    its ment to work at least.
    maybe some sort of bug.



  • @mrjj said in problem configurating qt for vs2008:

    @Hamed
    well just use older qt then.
    let me check.
    there is version that match 2008.

    https://download.qt.io/archive/qt/4.8/4.8.6/
    is for 2008.

    Sorry for asking this, it's off topic, Qt4 is stable?



  • @mrjj said in problem configurating qt for vs2008:

    @Hamed
    hmm. i missed th elink.
    You are right. it should work.
    its ment to work at least.
    maybe some sort of bug.

    So if you let me, I don't make question solved yet, maybe there is some other issue.


  • Qt Champions 2016

    @Hamed
    yes qt 4.8.6 4.8.7 is very stable but very old.
    but still valid.

    but
    http://doc.qt.io/qt-5.6/requirements-wince.html
    says active perl is needed. u have it ?

    It should work with 5.6
    Sorry wince is a bit unknown to me :)



  • @mrjj said in problem configurating qt for vs2008:

    @Hamed
    yes qt 4.8.6 is very stable but very old.
    but still valid.

    but
    http://doc.qt.io/qt-5.6/requirements-wince.html
    says active perl is needed. u have it ?

    It should work with 5.6
    Sorry wince is a bit unknown to me :)

    Yes I installed active perl and active pyton and ruby at latest version, still nothing changed.
    As I said README file says vs12 or later, but docs says vs08 is valid. :-?


  • Qt Champions 2016

    @Hamed
    well 2005/2008 seems the supported version. wince is pretty old so that makes sense.
    let me see if google can help.


  • Qt Champions 2016

    oh btw did u install service packs for 2008 ?


  • Qt Champions 2016

    oh, also , it seems to be a commercial options.
    So it must mean you have a license.
    So you can get dedicated direct help if you contact them. \o/



  • @mrjj said in problem configurating qt for vs2008:

    oh btw did u install service packs for 2008 ?

    I don't know, I installed vs08 professional and there was wince standard sdk and I installed that too, I wrote some code for wince in vs08 and they worked fine, but I like to use qt for that.

    if you tell me what service pack I should install more I will find that.


  • Qt Champions 2016



  • @mrjj said in problem configurating qt for vs2008:

    oh, also , it seems to be a commercial options.
    So it must mean you have a license.
    So you can get dedicated direct help if you contact them. \o/

    It's commercial option? really? I have opensource one.
    The docs doesn't say this is for commercial version only!


  • Qt Champions 2016

    @Hamed
    no, sorry. it just seems like that. It seems optional :)




  • Qt Champions 2016

    @Hamed
    then i guess 5.6 is better to use.
    I assume that 5.8 uses type_traits and vs 2008 didnt have back then.



  • @mrjj said in problem configurating qt for vs2008:

    @Hamed
    then i guess 5.6 is better to use.
    I assume that 5.8 uses type_traits and vs 2008 didnt have back then.

    OK I will download Qt5.6.
    If that didn't work I will use Qt4.8.
    If none of them work I will continue posting state here.
    Thank you for your time and help.


  • Qt Champions 2016

    @Hamed
    np. i did read the docs a bit more careful and it seems that 5.6 is the version for wince and
    it must be 2008 as wince died in later versions.

    And yes by all means do come back if it wont compile.
    There might be other users that use wince still.
    Such a cute little windows :)



  • And another thing I remembered to say, I already installed and have qt5.7 on my device.
    Could this be the source of problem? Should I delete this one or I can have them both?


  • Qt Champions 2016

    @Hamed
    You can have as many as u want.
    Just make sure u use the correct one.
    Normally its not an issue or source of problem but im old school so if you dont need it. delete it :)



  • @mrjj I'm need it but not more than this one, for the last solution I will do that.
    Thank you again.



  • @mrjj I downloaded Qt5.6 source (low speed internet) and the README file is different and it meets my requirements (C++ compiler supporting the C++98 standard) , but the strange part is I'm getting the following output :

    + cd qtbase
    + C:\Qt2\Qt5.6.0\qtbase\configure.bat -top-level -platform -xplatform wincewm70customsdk-msvc2008
    Unknown option wincewm70customsdk-msvc2008
    Invalid option "-xplatform" for -platform.
    See the README file for a list of supported operating systems and compilers.
    Invalid option "wincewm70customsdk-msvc2008" for -xplatform.
    

    Any Idea?


  • Qt Champions 2016

    @Hamed said in problem configurating qt for vs2008:

    incewm70customsdk-msvc2008

    no, ill ask for assistance and hope :)



  • @mrjj Thank you


  • Lifetime Qt Champion

    Hi,

    Following Installing Qt for Windows CE which refers to the Qt for Windows CE Requirements which itself refers to the Windows CE - Working with Custom SDKs page, there's an explanation about how to setup a toolchain to match your needs.

    Hope it helps



  • @SGaist said in problem configurating qt for vs2008:

    Hi,

    Following Installing Qt for Windows CE which refers to the Qt for Windows CE Requirements which itself refers to the Windows CE - Working with Custom SDKs page, there's an explanation about how to setup a toolchain to match your needs.

    Hope it helps

    Uh I didn't check that docs carefully in first place.
    I think this would be the solution, I will test it as soon as I got home.
    Thank you.


  • Qt Champions 2016

    @Hamed
    Yeah me me neither. Missed that part. alt text
    Ill cross fingers.



  • Thanks to @SGaist and @mrjj problem solved.
    I post some information in case someone faced this problem later :
    1- Qt docs says run this command :

    configure -platform -xplatform [wince_custom_build_specification_directory_name]
    

    This will not work, instead run :

    configure -xplatform [wince_custom_build_specification_directory_name]
    

    2- This specification directories are in Qt\Qt[Version]\qtbase\mkspecs
    3- Find your destination platform directory there or simply create one.
    4- open qmak.conf file in that directory and set CE_SDK to your SDK name (mine was STANDARDSDK_500) and set CE_ARCH to your destination device architecture for example ARMV4I

    Hope this helps.

    After all these steps my configuration works fine but when I run nmake I get following errors :

    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ce\include\altcecrt.h(363) : error C2733: second C linkage of overloaded function 'wcsftime' not allowed
            C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ce\include\altcecrt.h(363) : see declaration of 'wcsftime'
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ce\include\altcecrt.h(391) : error C3861: 'memcpy_s': identifier not found
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ce\include\altcecrt.h(396) : error C3861: 'memmove_s': identifier not found
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ce\include\iosfwd(584) : error C2039: 'memcpy_s' : is not a member of '`global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ce\include\iosfwd(584) : error C3861: 'memcpy_s': identifier not found
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ce\include\iosfwd(608) : error C2039: 'memmove_s' : is not a member of '`global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ce\include\iosfwd(608) : error C3861: 'memmove_s': identifier not found
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\\ce\bin\x86_arm\cl.EXE"' : return code '0x2'
    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.
    

    Should I start new thread for this problem or not?



  • Any idea about this issue?
    I think this problem is not related to Qt, but if anyone could help me solve these errors would be great.


  • Qt Champions 2016

    @Hamed
    It seems related to wince/mobile and i can find many mention those errors
    but saw no solution.
    https://forum.qt.io/topic/62184/cross-compile-qt-5-5-on-wince-6-0-6-5-windows-embedded-handheld-6-5-classic/2



  • @mrjj yeap, this is exactly the problem and as you said no solution...


  • Lifetime Qt Champion

    In that case you should bring the problem to the interest mailing list. You'll find there Qt's developers/maintainers. This forum is more user oriented.



  • strange thing happened.
    after run nmake I got some errors I mentioned before, after some hours of failed attempts to make it right, I just ran namke install and I think it's installed successfully (is it possible?)
    Now, I just add this qt version to my qt versions and then I wanted to add compiler for it.
    I'm using Microsoft wince STANDARDSDK500, and it's include compiler for all wince architectures (MIPSII, ARMV4I, ...).
    Now Qt compiler auto detection, detected this sdk's MIPSII and x86 but not ARMV4I, so to test if this custom installation succeed I need to add this compiler, problem is I don't know where is it, and auto detection didn't give me any information about which file I should be looking for.
    So I wounder how can I find this compiler and add it manually?

    Sorry for asking to many question under sametopic, but all this subjects are related and I think for someone else doing this later it's better find all information together.


  • Qt Champions 2016

    @Hamed
    Yes its very related and ok to have in same thread.
    I assume you did see
    http://doc.qt.io/qtcreator/creator-targets.html
    and the actual problem is finding the binary?



  • @mrjj Yes, the problem is finding that binary (or some other extention I don't know)
    I compiled and run using that compiler in vs2008, so I know I have it but I don't know which file I should add manually to my compilers list.


  • Qt Champions 2016

    @Hamed
    If on windows, you can go to ninite.com ( 100% safe)
    download "everything" search tool.
    alt text
    it takes wildcards and is crazy fast.
    so
    a*.exe would show all exe starting with a. etc.
    Then try to search for some names and see what comes up.


  • Qt Champions 2016

    @Hamed said in problem configurating qt for vs2008:

    but I don't know which file I should add manually to my compilers list.

    oh. Try to look in the makespec for wince. Normally its listed in there
    C:\Qt\5.7\msvc2015\mkspecs
    Not sure it applies to you but its worth to look in the file.



  • @mrjj I have fastfind for search and I did search for it, I can't find any *.exe for it, and I can't find .exe for MIPSII (which detected by qt) so I think it should be another extension but I have no idea what is it.


Log in to reply