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. Qt static build VS2015
Forum Updated to NodeBB v4.3 + New Features

Qt static build VS2015

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 4 Posters 3.2k 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.
  • I Offline
    I Offline
    Ivan Netskin
    wrote on 3 Oct 2016, 09:37 last edited by Ivan Netskin 10 Mar 2016, 10:46
    #1

    Hello, i'm trying to build static version of Qt using this guide. I get strange error and what lies behind it i really don't know, hope u may have some idea. The error is on picture:

    https://postimg.org/image/53hkwxfgp/

    It seems the error related to the mingw compiler somehow, but why?Btw i have installed Mingw on my machine.Thanks in advance!

    I used the following configure options- configure -prefix C:\Qt\QtStatic -opensource -platform win32-msvc2012 -debug-and-release -shared -c++11 -nomake examples -nomake tests -icu -confirm-license

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VRonin
      wrote on 3 Oct 2016, 10:23 last edited by
      #2

      Image upload does not work here, see https://forum.qt.io/topic/62615/how-to-insert-image-on-this-forum/19

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      1
      • I Offline
        I Offline
        Ivan Netskin
        wrote on 3 Oct 2016, 10:35 last edited by
        #3

        thanks for answer! can you view it now?

        J 1 Reply Last reply 4 Oct 2016, 05:00
        1
        • V Offline
          V Offline
          VRonin
          wrote on 3 Oct 2016, 10:42 last edited by
          #4

          Sorry, should ha specified it better. You need to upload the image on another site like https://postimage.org/

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          1 Reply Last reply
          1
          • I Ivan Netskin
            3 Oct 2016, 10:35

            thanks for answer! can you view it now?

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 4 Oct 2016, 05:00 last edited by
            #5

            Why do you use win32-msvc2012 if you want to use VS2015?
            Why do you use -shared if you want to have a static build?

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

            1 Reply Last reply
            2
            • I Offline
              I Offline
              Ivan Netskin
              wrote on 4 Oct 2016, 09:29 last edited by Ivan Netskin 10 Apr 2016, 09:29
              #6

              @jsulm said in Qt static build VS2015:

              Why do you use win32-msvc2012 if you want to use VS2015?
              Why do you use -shared if you want to have a static build?

              1. switched to msvs2013 but result is same.
              2. yes, that's my mistake.

              i'll try to do it again and will come back here with some result. Thanks anyway! Btw is it really possible and can be achieved or it's just a huge pain?

              J 1 Reply Last reply 4 Oct 2016, 09:36
              0
              • I Ivan Netskin
                4 Oct 2016, 09:29

                @jsulm said in Qt static build VS2015:

                Why do you use win32-msvc2012 if you want to use VS2015?
                Why do you use -shared if you want to have a static build?

                1. switched to msvs2013 but result is same.
                2. yes, that's my mistake.

                i'll try to do it again and will come back here with some result. Thanks anyway! Btw is it really possible and can be achieved or it's just a huge pain?

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 4 Oct 2016, 09:36 last edited by
                #7

                @Ivan-Netskin It is possible, but I don't really see a big advantage. You have to build Qt by yourself, which is not always an easy task. You can use http://doc.qt.io/qt-5/windows-deployment.html to collect all needed DLLs.

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

                1 Reply Last reply
                2
                • M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 4 Oct 2016, 09:56 last edited by
                  #8

                  Hi
                  Note: If you use static linking (of Qt),
                  you must supply the source code for the program or
                  own a Qt license to use it closed sourced.

                  1 Reply Last reply
                  1
                  • I Offline
                    I Offline
                    Ivan Netskin
                    wrote on 4 Oct 2016, 11:07 last edited by Ivan Netskin 10 Apr 2016, 11:10
                    #9

                    Okay:

                    1. I changed the QMAKESPEC system variable to win32-msv2013(since i've installed qt with msvc 2013 compiler)
                      2)then start the Developer Command Prompt for VS2015
                      3)ran the following configure command :

                    configure -prefix C:\Development\Qt\Static\qtbase -opensource -platform win32-msvc2013 -debug-and-release -static -c++11 -nomake examples -nomake tests -icu -confirm-license

                    and while configuring i'm getting the following error

                    it seems the error somehow related to the MinGW since the error means:
                    g++ is not a valid command. Any help is highly appreciated, thanks in advance!

                    J 1 Reply Last reply 4 Oct 2016, 12:29
                    0
                    • I Ivan Netskin
                      4 Oct 2016, 11:07

                      Okay:

                      1. I changed the QMAKESPEC system variable to win32-msv2013(since i've installed qt with msvc 2013 compiler)
                        2)then start the Developer Command Prompt for VS2015
                        3)ran the following configure command :

                      configure -prefix C:\Development\Qt\Static\qtbase -opensource -platform win32-msvc2013 -debug-and-release -static -c++11 -nomake examples -nomake tests -icu -confirm-license

                      and while configuring i'm getting the following error

                      it seems the error somehow related to the MinGW since the error means:
                      g++ is not a valid command. Any help is highly appreciated, thanks in advance!

                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 4 Oct 2016, 12:29 last edited by
                      #10

                      @Ivan-Netskin said in Qt static build VS2015:

                      then start the Developer Command Prompt for VS2015

                      VS2015? You said you installed MSVC2013, right?
                      Regarding last error: you should clean up and do a new build.

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

                      1 Reply Last reply
                      0

                      1/10

                      3 Oct 2016, 09:37

                      • Login

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