PDA

View Full Version : Compile and deploy to Windows CE



Luc4
6th February 2010, 15:48
Hi! I found many documents about this around, but I still can't understand how the procedure works. I'm working with Windows Vista and I need to compile a Qt application for a device running Windows CE. As far as I can understand, the concept is that I need to compile a version of Qt libraries for Windows CE and store them on my pc. After this, I have to create a project for Visual Studio (I use VS 2008), set it to compile for Windows CE (I have the necessary SDK), and build linking to the Qt libraries I have for Windows CE. Is this correct? After the sources are compiled for the Windows CE platform, I can copy the file to the device and run it, assuming libraries for Qt are correctly installed.
My question is: how do I compile a version of Qt libraries for Windows CE under Windows Vista? And then, when I open my project with Visual Studio, how do I set it so that it links to the correct libraries of Qt compiled for Windows CE? I read this, but I'm really finding it difficult to understand what I need to do: http://doc.trolltech.com/4.6/windowsce-customization.html.
Thanks for any advice!

lasher
6th February 2010, 19:18
Hi!,

Please check these links

http://doc.trolltech.com/4.6/shadow-builds-wince.html
http://doc.trolltech.com/4.6/wince-with-qt-introduction.html

Luc4
9th February 2010, 15:56
When I try to configure I get:



link -OUT:qmake.exe project.obj main.obj makefile.obj unixmake.obj unix
make2.obj mingw_make.obj option.obj winmakefile.obj projectgenerator.obj proper
ty.obj meta.obj makefiledeps.obj metamakefile.obj xmloutput.obj pbuilder_pbx.ob
j borland_bmake.obj msvc_nmake.obj msvc_dsp.obj msvc_vcproj.obj msvc_objectmod
el.obj symmake.obj initprojectdeploy_symbian.obj symmake_abld.obj symmake_sbsv2
.obj qbitarray.obj qbuffer.obj qcryptographichash.obj qfsfileengine.obj qfsf
ileengine_iterator.obj qbytearray.obj qvsnprintf.obj qbytearraymatcher.obj q
datetime.obj qdir.obj qdiriterator.obj qfile.obj qtemporaryfile.obj qabstra
ctfileengine.obj qfsfileengine_win.obj qfsfileengine_iterator_win.obj qfilein
fo.obj qglobal.obj qhash.obj qiodevice.obj qlist.obj qlinkedlist.obj qloca
le.obj qmalloc.obj qmap.obj qregexp.obj qtextcodec.obj qutfcodec.obj qstri
ng.obj qstringlist.obj qtextstream.obj qdatastream.obj quuid.obj qvector.ob
j qsettings.obj qlibraryinfo.obj qvariant.obj qurl.obj qsettings_win.obj q
metatype.obj qxmlstream.obj qxmlutils.obj qnumeric.obj ole32.lib advapi32.lib

Microsoft (R) Incremental Linker Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

copy qmake.exe C:\Qt\2010.01\windowsce-vs2008-shadow\bin\qmake.exe
1 file copiati.
Creating makefiles in src...
Generating Visual Studio project files...
Could not find mkspecs for your QMAKESPEC(wince50standard-armv4i-msvc2008) after
trying:
C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_cre
ate_more/Troll/4.6/qt\mkspecs
Error processing project file: C:/Qt/2010.01/qt/projects.pro
Qmake failed, return code 3

Generating Makefiles...
Could not find mkspecs for your QMAKESPEC(wince50standard-armv4i-msvc2008) after
trying:
C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_cre
ate_more/Troll/4.6/qt\mkspecs
Error processing project file: C:/Qt/2010.01/qt/projects.pro
Qmake failed, return code 3


C:\Qt\2010.01\windowsce-vs2008-shadow>

Any idea why?
Thanks!

codeslicer
16th February 2010, 02:42
Have you tried downloading the vs2008 version of qt, and not the sdk? look around for it, it's an exe file in ftp://ftp.trolltech.com