1

I have cross-compiled my Qt application with MXE against a statically linked Qt 5.11 on Ubuntu. I'm using MXE's CMake wrapper.

When I try to run my application on an actual Windows machine I get: "This application failed to start because no Qt platform plugin could be initialized."

The Qt deployment instructions don't directly say how this goes with statically linked Qt.

Edit: Seems that the easiest way to do this is with QMake as there are some problems with CMake and static Qt5 :(

juzzlin
  • 45,029
  • 5
  • 38
  • 50
  • Use the `windeployqt.exe ` utility for windows. You cannot do it in a regular CMD, it must be a developer's CMD. – GKE Sep 14 '18 at 17:33
  • 1
    @GKE That's not an option because I don't use Windows. I'm using MXE to cross-compile for Windows on Ubuntu. But I managed to make this work by using QMake instead of CMake with MXE. – juzzlin Sep 15 '18 at 18:05
  • Did you figure out a way to solve this? Would highly appreciate sharing your solution. – The Quantum Physicist Jan 27 '19 at 17:25
  • No, I didn't solve that. I gave up and have been using qmake for the Windows build, CMake for others. – juzzlin Jan 28 '19 at 11:59

0 Answers0