WinRT App is x64, but x86 is needed



  • Hi all,

    currently I've a problem to install my WinRT App on my tablet. The tablet itself has a x64 architecture, but there is a x86 WinRT OS installed.

    My app is compiled, linked and finally built without any errors. After packing and signing the package I want to install it on the tablet.

    Power Shell is moaning:
    "The package {5654-44.......} can not be installed, because the package needs an x64 architecture, but the computer has the architecture x86."

    The host machine is a x64 with Win8.1 Pro x64.
    Compiler is Microsoft Visual C++ Compiler 12.0 (x86_amd64).
    vcvarsall was executed with x86_amd64
    Makeappx, MakeCert, Pvk2Pfx and SignTool were all executed from the x86 folders.

    All mocs, objs, temp files and pro.user files were deleted before building the app.

    Where is the problem?

    Kind regards,
    Pixtar


  • Lifetime Qt Champion

    Hi,

    Based on the usual pattern, you have to rebuild Qt for WinRT 32bit before you can build your application for that architecture.



  • @SGaist said:

    Hi,

    Based on the usual pattern, you have to rebuild Qt for WinRT 32bit before you can build your application for that architecture.

    Thanks for your reply - I will mark the thread as solved after I know the reason. ^^

    The reason is that there is no precompiled WinRT 32bit package, only the default WinRT 64bit package, right?

    One last question would be: To run a qt program within the Windows Metro Surface I have no other option than compiling the program with/to/through WinRT independent if it's Win8 or Win10, right?

    Kind regards,
    Pixtar


  • Lifetime Qt Champion

    Right

    Metro is a style guideline but if you are asking about your Windows Surface tablet then if it's running WinRT then you have to build your application for WinRT.



  • The tablet itself has a x64 architecture with a x86 Windows 8.1 Pro running.

    As far as I understand is WinRT responsible for the Metro Style and 'App' handling, but Windows RT is an OS on its own.

    I'm a bit confused now ..
    .. so what is finally the task of the "Qt 5.5.1 for Windows Runtime 64bit"-Kit? Building a program for the OS Windows RT or building a program for Win8/Win10 in relation to WinRT/MetroStyle?

    Kind regards,
    Pixtar


  • Lifetime Qt Champion

    It's to build application for WinRT, you can use the regular packages to build application for Win8/Win10.

    Here You have a blog entry about writing a Metro Styled application with Qt.


Log in to reply
 

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