Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 5.7 for WinRT and dynamic libraries
Forum Updated to NodeBB v4.3 + New Features

Qt 5.7 for WinRT and dynamic libraries

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 2.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kibsoft
    wrote on last edited by
    #1

    I've tried to build the HelloWorld example using Qt for WinRT and it worked good, but if I want to add a custom libary then the app gets crashed on start saying:

    qt.winrtrunner: Using the Appx profile.
    qt.winrtrunner: Failed to activate application: 0x8027025b "The app didn't start."
    

    I can build it without errors but the app never starts (DLL file is located in the same dir as EXE). The same project works good using usual Qt for Win. So, the question is who knows how to deploy custom dlls properly under WinRT?
    Thanks in advance.

    1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by
      #2

      Hi, when loading a .dll in WinRT the normal Win32 functions for loading .dlls like LoadLibrary() cannot be used, instead there's a new function: LoadPackagedLibrary() (more to read here). I'm guessing that's why you get the error.

      1 Reply Last reply
      1
      • K Offline
        K Offline
        kibsoft
        wrote on last edited by
        #3

        Thanks, will try to investigate it deeper.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kibsoft
          wrote on last edited by
          #4

          So, the problem was not in libraries loading but in line:

          DESTDIR = $$OUT_PWD/../bin
          

          I don't know why but setting DESTDIR doesn't work when building for WinRT.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved