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?
Forum Updated to NodeBB v4.3 + New Features

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 1 Watching
  • 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
    mandruk1331
    wrote on 3 Apr 2017, 13:42 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

    J 1 Reply Last reply 3 Apr 2017, 13:48
    0
    • M mandruk1331
      3 Apr 2017, 13:42

      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.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 3 Apr 2017, 13:48 last edited by
      #2

      @mandruk1331 You will need a static Qt build

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

      M 1 Reply Last reply 3 Apr 2017, 14:32
      0
      • J jsulm
        3 Apr 2017, 13:48

        @mandruk1331 You will need a static Qt build

        M Offline
        M Offline
        mandruk1331
        wrote on 3 Apr 2017, 14:32 last edited by
        #3

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

        Mandruk1331

        J 1 Reply Last reply 3 Apr 2017, 14:36
        0
        • M mandruk1331
          3 Apr 2017, 14:32

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

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 3 Apr 2017, 14:36 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

          M 1 Reply Last reply 3 Apr 2017, 14:54
          2
          • J jsulm
            3 Apr 2017, 14:36

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

            M Offline
            M Offline
            mandruk1331
            wrote on 3 Apr 2017, 14:54 last edited by
            #5

            @jsulm thank you for the ref.

            Mandruk1331

            M 1 Reply Last reply 3 Apr 2017, 15:12
            0
            • M mandruk1331
              3 Apr 2017, 14:54

              @jsulm thank you for the ref.

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 3 Apr 2017, 15:12 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 :)

              M 1 Reply Last reply 3 Apr 2017, 15:32
              0
              • M mrjj
                3 Apr 2017, 15:12

                @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 :)

                M Offline
                M Offline
                mandruk1331
                wrote on 3 Apr 2017, 15:32 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

                M 1 Reply Last reply 4 Apr 2017, 06:30
                0
                • M mandruk1331
                  3 Apr 2017, 15:32

                  @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?

                  M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 4 Apr 2017, 06:30 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

                  2/8

                  3 Apr 2017, 13:48

                  6 unread
                  • Login

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