1

I am in the process of creating an installer for my C++ QT QML program. I am trying to make an installer for the program to test, but am having trouble understanding what exactly I need to do. I only have one dependency that is external which is the aws-cpp-sdk, which I am able to compile and link to QT in a development setting. I am wondering what is the way to go in this situation. From my understanding of the documentation for the QT installer framework, there are two different ways, an offline and online. Being that offline I am assuming you just shove all you're packages and necessary resources in a zip with the installer, while online it will pull from a online repo. So my main questions are,

1.) Where do I get this "static" version of qt and all it's widgets for QML etc.

2.) How should I make an offline installer, would I need to make a script of some sort to cmake and install all the necessary files?

3.) can I host these online repos on github?

Here is the error I get when running on another mac

apaulino
  • 103
  • 6
  • 1
    On Stack Overflow we expect a question post to state a **single specific problem**. Please, leave only a **single question** in your question post. – Tsyvarev May 19 '20 at 08:21
  • @Tsyvarev Do you have any suggestions on how to solve the problems? – apaulino May 19 '20 at 19:55

1 Answers1

0

have a look to this page: https://doc.qt.io/qt-5/windows-deployment.html

I create a small batch for my app:

rem @echo off
set QT_PATH=C:\Qt\5.11.1\mingw53_32\bin // In my PC
set BUILD_TYPE=release
set QML_DIR=C:\Users\your_NameI\Documents\YourProjectFolder\qml

if /I "%BUILD_TYPE%" == "debug" (
    set OUTPUT_DIR= C:\Users\your_NameI\Desktop\app\debug
) else (
    set OUTPUT_DIR= C:\Users\your_NameI\Desktop\app\release
)

%QT_PATH%\windeployqt.exe --qmldir %QML_DIR%  %OUTPUT_DIR% // THIS IS THE REAL COMMAND
Marco Medri
  • 176
  • 3