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 I can create an exe with static links instead of dynamic?

How I can create an exe with static links instead of dynamic?

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 1.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.
  • mandruk1331M Offline
    mandruk1331M Offline
    mandruk1331
    wrote on last edited by
    #1

    I want everything to be in the exe file, so there won't be any of the dll.
    P.S. I don't use any 3rd libraries.

    Mandruk1331

    jsulmJ 1 Reply Last reply
    0
    • mandruk1331M mandruk1331

      I want everything to be in the exe file, so there won't be any of the dll.
      P.S. I don't use any 3rd libraries.

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @mandruk1331 You will need a static Qt build

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

      mandruk1331M 1 Reply Last reply
      0
      • jsulmJ jsulm

        @mandruk1331 You will need a static Qt build

        mandruk1331M Offline
        mandruk1331M Offline
        mandruk1331
        wrote on last edited by
        #3

        @jsulm and after that what I have to do? I also have an SQL database.

        Mandruk1331

        jsulmJ 1 Reply Last reply
        0
        • mandruk1331M mandruk1331

          @jsulm and after that what I have to do? I also have an SQL database.

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @mandruk1331 Then you link against those static libs.
          You should read http://doc.qt.io/QtForDeviceCreation/qtee-static-linking.html

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

          mandruk1331M 1 Reply Last reply
          2
          • jsulmJ jsulm

            @mandruk1331 Then you link against those static libs.
            You should read http://doc.qt.io/QtForDeviceCreation/qtee-static-linking.html

            mandruk1331M Offline
            mandruk1331M Offline
            mandruk1331
            wrote on last edited by
            #5

            @jsulm thank you for the ref.

            Mandruk1331

            mrjjM 1 Reply Last reply
            0
            • mandruk1331M mandruk1331

              @jsulm thank you for the ref.

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @mandruk1331
              Note that to use Qt and static linking, you must

              1. own a commercial licence for Qt
                OR
              2. Your app is fully open source and you provide link where user can get all of the source code.

              Just so you know before using 3 hours to compile Qt as static :)

              mandruk1331M 1 Reply Last reply
              0
              • mrjjM mrjj

                @mandruk1331
                Note that to use Qt and static linking, you must

                1. own a commercial licence for Qt
                  OR
                2. Your app is fully open source and you provide link where user can get all of the source code.

                Just so you know before using 3 hours to compile Qt as static :)

                mandruk1331M Offline
                mandruk1331M Offline
                mandruk1331
                wrote on last edited by
                #7

                @mrjj and if the source, for some reasons, is on a private GitHub, but after everything will be finished it will be open-sourced, will that be ok?

                Mandruk1331

                mrjjM 1 Reply Last reply
                0
                • mandruk1331M mandruk1331

                  @mrjj and if the source, for some reasons, is on a private GitHub, but after everything will be finished it will be open-sourced, will that be ok?

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @mandruk1331
                  Disclaimer: Not a lawyer
                  If the source is available when the product is released and the about clearly state its
                  open source , get it here blabla
                  using Qt etc

                  It should be super fine as far as I know.

                  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