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. How to create a bundle or deploy in QT

How to create a bundle or deploy in QT

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 5 Posters 1.7k 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.
  • M Offline
    M Offline
    ManiRon
    wrote on 24 Sept 2018, 06:13 last edited by ManiRon
    #1

    ! Hello

    I want to create an setup that runs in other computers without QT . For that i want to create a bundle with all the required .dll. In windows i can use windeployqt "PATH"in the cmd prompt, which gathers me the required .dll files . Similarly is there any way i can do in linux.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 24 Sept 2018, 06:34 last edited by
      #2

      Hi
      There is https://github.com/probonopd/linuxdeployqt

      1 Reply Last reply
      4
      • J Offline
        J Offline
        JohnDTroup
        wrote on 24 Sept 2018, 07:30 last edited by
        #3

        to deploy you can follow just these steps I hope this hepls you:

        To deploy an application you will be making use of macdeployqt, which is a deployment tool included with Qt Creator. It is commonly located at <QTDIR>/bin/macdeployqt. (You can also search for it using the command find / -iname macdeployqt.) Qt Creator does not have this deployment option integrated into its interface so you will need to use it through the command line. macdeployqt is useful when your application has primarily Qt libraries and no custom libraries. If you have custom libraries, you will need to manually copy them into the bundle after it is created.

        Assuming you are in the build directory, if you have no QML files, run:

        macdeployqt <ApplicationName>.app
        If you have QML files, instead use:

        macdeployqt <ApplicationName>.app -qmldir=<path to QMLs>

        To place the bundle into a disk image for easy distribution, add -dmg to the command. You can also zip or tar the .app folder after running macdeployqt on it.

        An important note about the option -qmldir=<path>: the “path” is the absolute path to the QML source files in your project folder. This is necessary for the deployment tool to parse the QML files and include the necessary Qt libraries for those QML files. This is only applicable if you have QML files in your project.

        http://showbox-windows.com/

        J 1 Reply Last reply 24 Sept 2018, 08:18
        0
        • J JohnDTroup
          24 Sept 2018, 07:30

          to deploy you can follow just these steps I hope this hepls you:

          To deploy an application you will be making use of macdeployqt, which is a deployment tool included with Qt Creator. It is commonly located at <QTDIR>/bin/macdeployqt. (You can also search for it using the command find / -iname macdeployqt.) Qt Creator does not have this deployment option integrated into its interface so you will need to use it through the command line. macdeployqt is useful when your application has primarily Qt libraries and no custom libraries. If you have custom libraries, you will need to manually copy them into the bundle after it is created.

          Assuming you are in the build directory, if you have no QML files, run:

          macdeployqt <ApplicationName>.app
          If you have QML files, instead use:

          macdeployqt <ApplicationName>.app -qmldir=<path to QMLs>

          To place the bundle into a disk image for easy distribution, add -dmg to the command. You can also zip or tar the .app folder after running macdeployqt on it.

          An important note about the option -qmldir=<path>: the “path” is the absolute path to the QML source files in your project folder. This is necessary for the deployment tool to parse the QML files and include the necessary Qt libraries for those QML files. This is only applicable if you have QML files in your project.

          http://showbox-windows.com/

          J Online
          J Online
          jsulm
          Lifetime Qt Champion
          wrote on 24 Sept 2018, 08:18 last edited by
          #4

          @JohnDTroup OP asks for Linux:
          "Similarly is there any way i can do in linux"

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • A Offline
            A Offline
            AndyS
            Moderators
            wrote on 26 Sept 2018, 07:14 last edited by
            #5

            There is no official way to do it, but I believe that those who have used the one that @mrjj pointed out have reported success, so I would recommend trying that.

            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1

            1/5

            24 Sept 2018, 06:13

            • Login

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