Congenital Optimist
16th September 2009, 11:14
I'm ready to throw in the towel with QT and go back to MFC and memory hogging C#.
My platform is a Vista Business machine with Visual Studio 2008 and StandardSDK_500. I have been developing on the standard SDK for more than a year now with MFC and C# compact framework and have several CF apps under my belt.
Here are my futile attempts installing qt-embedded-wince-opensource-4.5.2 so far:
configure -platform win32-msvc 2005 -xplatform wince50standard-armV4i-msvc2005
setcepaths wince50standard-armv4i-msvc2005
nmake
Everything compiles fine. I can use the build in Creator and compile a simple form. when I move it to my CE device with all the dll's from the lib directory of my qt-embedded-wince-opensource-4.5.2 etc (qtcore4.dll and all its friends) I get TestApp.exe is not a CE application. (Its not a win32 app either).
I then thought that maybe qt creator was mixing win32 and wince widgets or something so I decided to use the Visual studio plugin. That installs fine and I can add my win32 qt installation as a qt version, but when I try to add the embedded qt build it tells me the STANDARDSDK_500 (ARMV4I) is not defined. The thing is that it is defined as I can create a smart device project and select the STANDARDSDK_500 as the target.
I decided I must have done something wrong deleted the my qt-embedded-wince-opensource-4.5.2 directory and re-extracted it and then did the following:
configure -xplatform wince50standard-armv4i-msvc2005 (not explicitly defining my platform)
setcepaths wince50standard-armv4i-msvc2005
nmake
Once again 3 hours later I had a working build that I could use in QT creator but still the same behaviour as above in Visual Studio when adding a version to the Qt plugin. Once again Qt creator happily builds a simple project (just a blank form) but I still get the testapp2.exe is not a windows CE application message.
My last attempt I did the following after deleting the qt-embedded-wince-opensource-4.5.2 directory.
configure -platform win32-msvc2008 -xplatform wince50standard-armV4i-msvc2008
setcepaths wince50standard-armv4i-msvc2008
nmake
The build happened flawlessly. But now things are actually worse.
When I add the version to Qt Creator I cannot build the debugging helper. Looking at the log file it seems that the environment variables are for some reason not set as cl.exe cannot be found by nmake.
Visual studio gives the same error message when trying to add the version to the Qt plugin.
When I try to compile a new simple blank form project I get an error that says the stddefs.h could not be found.
I am fairly sure that there is something obvious that I missing. I am failry sure that my environment variables are correct as the build and compile strings look correct when compiling.
I have no more avenues to persue as my Qt build 4.5.2 for windows works great.
Any help at this point would be most appreciated as I cannot spend more time trying to sort this out and forums across the net seem to have many unanswered questions such as this.
Best regards
CO
My platform is a Vista Business machine with Visual Studio 2008 and StandardSDK_500. I have been developing on the standard SDK for more than a year now with MFC and C# compact framework and have several CF apps under my belt.
Here are my futile attempts installing qt-embedded-wince-opensource-4.5.2 so far:
configure -platform win32-msvc 2005 -xplatform wince50standard-armV4i-msvc2005
setcepaths wince50standard-armv4i-msvc2005
nmake
Everything compiles fine. I can use the build in Creator and compile a simple form. when I move it to my CE device with all the dll's from the lib directory of my qt-embedded-wince-opensource-4.5.2 etc (qtcore4.dll and all its friends) I get TestApp.exe is not a CE application. (Its not a win32 app either).
I then thought that maybe qt creator was mixing win32 and wince widgets or something so I decided to use the Visual studio plugin. That installs fine and I can add my win32 qt installation as a qt version, but when I try to add the embedded qt build it tells me the STANDARDSDK_500 (ARMV4I) is not defined. The thing is that it is defined as I can create a smart device project and select the STANDARDSDK_500 as the target.
I decided I must have done something wrong deleted the my qt-embedded-wince-opensource-4.5.2 directory and re-extracted it and then did the following:
configure -xplatform wince50standard-armv4i-msvc2005 (not explicitly defining my platform)
setcepaths wince50standard-armv4i-msvc2005
nmake
Once again 3 hours later I had a working build that I could use in QT creator but still the same behaviour as above in Visual Studio when adding a version to the Qt plugin. Once again Qt creator happily builds a simple project (just a blank form) but I still get the testapp2.exe is not a windows CE application message.
My last attempt I did the following after deleting the qt-embedded-wince-opensource-4.5.2 directory.
configure -platform win32-msvc2008 -xplatform wince50standard-armV4i-msvc2008
setcepaths wince50standard-armv4i-msvc2008
nmake
The build happened flawlessly. But now things are actually worse.
When I add the version to Qt Creator I cannot build the debugging helper. Looking at the log file it seems that the environment variables are for some reason not set as cl.exe cannot be found by nmake.
Visual studio gives the same error message when trying to add the version to the Qt plugin.
When I try to compile a new simple blank form project I get an error that says the stddefs.h could not be found.
I am fairly sure that there is something obvious that I missing. I am failry sure that my environment variables are correct as the build and compile strings look correct when compiling.
I have no more avenues to persue as my Qt build 4.5.2 for windows works great.
Any help at this point would be most appreciated as I cannot spend more time trying to sort this out and forums across the net seem to have many unanswered questions such as this.
Best regards
CO