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

Qt static build VS2015

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 4 Posters 3.1k 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.
  • Ivan NetskinI Offline
    Ivan NetskinI Offline
    Ivan Netskin
    wrote on last edited by Ivan Netskin
    #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
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on 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
      • Ivan NetskinI Offline
        Ivan NetskinI Offline
        Ivan Netskin
        wrote on last edited by
        #3

        thanks for answer! can you view it now?

        jsulmJ 1 Reply Last reply
        1
        • VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on 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
          • Ivan NetskinI Ivan Netskin

            thanks for answer! can you view it now?

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on 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
            • Ivan NetskinI Offline
              Ivan NetskinI Offline
              Ivan Netskin
              wrote on last edited by Ivan Netskin
              #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?

              jsulmJ 1 Reply Last reply
              0
              • Ivan NetskinI Ivan Netskin

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

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on 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
                • mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 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
                  • Ivan NetskinI Offline
                    Ivan NetskinI Offline
                    Ivan Netskin
                    wrote on last edited by Ivan Netskin
                    #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!

                    jsulmJ 1 Reply Last reply
                    0
                    • Ivan NetskinI Ivan Netskin

                      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!

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 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

                      • Login

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