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. Create .deb package or .exe to run Qt-desktop apps in any machine
QtWS25 Last Chance

Create .deb package or .exe to run Qt-desktop apps in any machine

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 6.0k 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.
  • D Offline
    D Offline
    danigarciaalva
    wrote on last edited by
    #1

    Hi, I'm new using Qt and I've done many simple projects but now I want to know how to compile them to use it in every machine without Qt libraries. (I'm mexican so my english is not good, thanks)
    I programm on Ubuntu and Windows and I want to know how to make excecutable files that not depends from Qt libraries or .deb packages to use my applications on any computer.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      [quote author="danigarciaalva" date="1343552597"]I programm on Ubuntu and Windows and I want to know how to make excecutable files that not depends from Qt libraries or .deb packages to use my applications on any computer. [/quote]

      You can create a static build and embed Qt libraries but you should have a separate build for each platform that you target (Linux, Windows, Mac OS).

      http://anavi.org/

      1 Reply Last reply
      0
      • D Offline
        D Offline
        danigarciaalva
        wrote on last edited by
        #3

        Here is the problem, I dont know how to do that!

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leon.anavi
          wrote on last edited by
          #4

          [quote author="danigarciaalva" date="1343606540"]Here is the problem, I dont know how to do that! [/quote]

          Please read the documentation and wiki. There is a variety of articles about this topic. These are some of the most popular:
          "Deploying Qt Applications":http://qt-project.org/doc/qt-5.0/deployment.html
          "Build Standalone Qt Application for Windows":http://qt-project.org/wiki/Build_Standalone_Qt_Application_for_Windows
          "How to build a static Qt version for Windows with GCC":http://qt-project.org/wiki/How_to_build_a_static_Qt_version_for_Windows_with_gcc
          "Deploying an Application on X11 Platforms":http://qt-project.org/doc/qt-5.0/deployment-x11.html

          http://anavi.org/

          1 Reply Last reply
          0
          • V Offline
            V Offline
            vezprog
            wrote on last edited by
            #5

            Build your project in release mode, and drag the dlls / plugins into the folder that your .exe is located and build your folder structure from there (dynamic linking)...

            There are cross platform auto installers (to create the setup.exe) but most of them are costly. INNO setup on Windows is great for creating a standalone setup.exe, it just takes some configuration. On Linux, creating a .deb is how I have resulted to doing it, you just have to find some articles online on how to configure the build files.

            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