When building Qt from source for desktop, I was using a Qt vars recommended on Qt documentation. With the following setup:
REM Set up \Microsoft Visual Studio 2013, where <arch> is \c amd64, \c x86, etc. CALL "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86 SET _ROOT=C:\Qt\5.4\Src SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;C:\Python27;%PATH% REM Uncomment the below line when using a git checkout of the source repository REM SET PATH=%_ROOT%\qtrepotools\bin;%PATH% SET QMAKESPEC=win32-msvc2013 SET _ROOT= But if I use this to try building for WinRT, it says to me that there is not suitable compiler. So what I did was to execute cmd.exe and then call vcvarsall.bat inside Visual Studio 12.0\VC directory with x86 argument. Then I went to Qt source directory and called: configure -prefix c:\qt\5.4\winrt_x86 -xplatform winrt-x86-msvc2013 -debug-and-release -nomake examples -nomake tests -skip webkit -skip multimedia I have tried again and it's giving me errors on the same place: kernel\qhostaddress.cpp(786) : error C2065: 'INADDR_BROADCAST' : undeclared identifier kernel\qhostaddress.cpp(789) : error C2065: 'INADDR_LOOPBACK' : undeclared identifier Regards, Nuno On 08/06/2015 14:39, Kalinowski Maurice wrote: > Are you sure you are using a "native command prompt" meaning the one for > compiling desktop applications? > > BR, > Maurice > > >> -----Original Message----- >> From: interest-bounces+maurice.kalinowski=theqtcompany.com@qt- >> project.org [mailto:interest- >> bounces+maurice.kalinowski=theqtcompany....@qt-project.org] On >> Behalf Of Nuno Santos >> Sent: Montag, 8. Juni 2015 15:33 >> To: Andrew Knight; interest@qt-project.org >> Subject: Re: [Interest] How to run a WinRT app on a Window 8 intel tablet? >> >> Andrew, >> >> I'm configure QT with this line: >> >> configure -prefix c:\qt\5.4\winrt_x86 -xplatform winrt-x64-msvc2013 -debug- >> and-release -nomake examples -nomake tests -skip webkit -skip multimedia >> >> How do you configure yours? >> >> I didn't had problems configuring it, but i'm having problems building it. >> >> kernel\qhostaddress.cpp(786) : error C2065: 'INADDR_BROADCAST' : >> undeclared identifier >> kernel\qhostaddress.cpp(789) : error C2065: 'INADDR_LOOPBACK' : >> undeclared identifier >> kernel\qhostaddress.cpp(795) : error C2065: 'INADDR_ANY' : undeclared >> identifier >> >> Regards, >> >> Nuno >> >> On 08/06/2015 11:25, Andrew Knight wrote: >>> Hi Nuno, >>> >>> On 08/06/15 13:05, Nuno Santos wrote: >>>> Oliver, >>>> >>>> Is Qt for WinRT only available for x64 arch? >>> In terms of pre-built releases, yes. >>>> The test tablet I got is x64 but it has a 32bit windows installed on it. >>>> >>>> Is there any way of work around this? >>> Build Qt yourself with the winrt-x86-msvc2013 mkspec. >>>> Regards, >>>> >>>> Nuno >>>> >>>> On 04/06/2015 12:37, Oliver Wolff wrote: >>>>> Hi, >>>>> >>>>> I am afraid that deployment to a device from Creator only works for >>>>> Windows Phone but not for Windows Tablets. For Tablets you have to >>>>> package/deploy everything manually using windeployqt for example. >>>>> The other option (that I would tend to avoid) would be building on >>>>> your tablet (if it has an x86 CPU). >>>>> Another option would be to use Visual Studio. There it should be >>>>> possible to select your tablet and deploy the application you >>>>> created (for example by calling qmake -tp vc CONFIG+=windeployqt). >>>>> Some more information can be found on >>>>> http://doc.qt.io/qt-5/winrt-support.html#package-content but the >>>>> content here is partially outdated and being updated at the moment. >>>>> The D3D shader service for example is no longer needed. >>>>> >>>>> BR, >>>>> Olli >>>>> >>>>> On 6/4/2015 12:57, Nuno Santos wrote: >>>>>> Hi, >>>>>> >>>>>> I'm doing my first experiments with WinRT. >>>>>> >>>>>> I have a Dell Window 8 tablet and i'm trying to run a QtQuick Hello >>>>>> World program on it. >>>>>> >>>>>> I was able to start the app on the computer but not on the tablet. >>>>>> >>>>>> I thought there was a mechanism like iOS and Android, in which I >>>>>> could select the device. >>>>>> >>>>>> Is there any guide line on how to proceed? >>>>>> >>>>>> Regards, >>>>>> >>>>>> Nuno >>>>>> _______________________________________________ >>>>>> Interest mailing list >>>>>> Interest@qt-project.org >>>>>> http://lists.qt-project.org/mailman/listinfo/interest >>>>> _______________________________________________ >>>>> Interest mailing list >>>>> Interest@qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/interest >>>> _______________________________________________ >>>> Interest mailing list >>>> Interest@qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/interest >> _______________________________________________ >> Interest mailing list >> Interest@qt-project.org >> http://lists.qt-project.org/mailman/listinfo/interest _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest