Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Compiling and installing static build issue.
Forum Updated to NodeBB v4.3 + New Features

Compiling and installing static build issue.

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
8 Posts 3 Posters 3.1k Views 2 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.
  • N Offline
    N Offline
    NuMs
    wrote on last edited by NuMs
    #1

    Hello.

    I'm trying to install a static build of Qt.
    After successfully compiling, trying to install using mingw32-make install returns the following error:

    C:\Qt\5.9.3\Src>mingw32-make install
    cd qtbase\ && ( if not exist Makefile C:\Qt\5.9.3\Src\qtbase\bin\qmake.exe -o Makefile C:\Qt\5.9.3\Src\qtbase\qtbase.pro ) && mingw32-make -f Makefile install
    mingw32-make[1]: Entering directory 'C:/Qt/5.9.3/Src/qtbase'
    cd src\ && ( if not exist Makefile C:\Qt\5.9.3\Src\qtbase\bin\qmake.exe -o Makefile C:\Qt\5.9.3\Src\qtbase\src\src.pro ) && mingw32-make -f Makefile install
    mingw32-make[2]: Entering directory 'C:/Qt/5.9.3/Src/qtbase/src'
    cd tools\bootstrap\ && ( if not exist Makefile C:\Qt\5.9.3\Src\qtbase\bin\qmake.exe -o Makefile C:\Qt\5.9.3\Src\qtbase\src\tools\bootstrap\bootstrap.pro ) && mingw32-make -f Makefile install
    mingw32-make[3]: Entering directory 'C:/Qt/5.9.3/Src/qtbase/src/tools/bootstrap'
    mingw32-make -f Makefile.Release install
    mingw32-make[4]: Entering directory 'C:/Qt/5.9.3/Src/qtbase/src/tools/bootstrap'
    The filename, directory name, or volume label syntax is incorrect.
    Makefile.Release:9881: recipe for target 'install_target' failed
    mingw32-make[4]: *** [install_target] Error 1
    mingw32-make[4]: Leaving directory 'C:/Qt/5.9.3/Src/qtbase/src/tools/bootstrap'
    Makefile:46: recipe for target 'release-install' failed
    mingw32-make[3]: *** [release-install] Error 2
    mingw32-make[3]: Leaving directory 'C:/Qt/5.9.3/Src/qtbase/src/tools/bootstrap'
    Makefile:79: recipe for target 'sub-bootstrap-install_subtargets' failed
    mingw32-make[2]: *** [sub-bootstrap-install_subtargets] Error 2
    mingw32-make[2]: Leaving directory 'C:/Qt/5.9.3/Src/qtbase/src'
    Makefile:56: recipe for target 'sub-src-install_subtargets' failed
    mingw32-make[1]: *** [sub-src-install_subtargets] Error 2
    mingw32-make[1]: Leaving directory 'C:/Qt/5.9.3/Src/qtbase'
    Makefile:88: recipe for target 'module-qtbase-install_subtargets' failed
    mingw32-make: *** [module-qtbase-install_subtargets] Error 2

    Anyone know what to do?

    K 1 Reply Last reply
    0
    • N NuMs

      Hello.

      I'm trying to install a static build of Qt.
      After successfully compiling, trying to install using mingw32-make install returns the following error:

      C:\Qt\5.9.3\Src>mingw32-make install
      cd qtbase\ && ( if not exist Makefile C:\Qt\5.9.3\Src\qtbase\bin\qmake.exe -o Makefile C:\Qt\5.9.3\Src\qtbase\qtbase.pro ) && mingw32-make -f Makefile install
      mingw32-make[1]: Entering directory 'C:/Qt/5.9.3/Src/qtbase'
      cd src\ && ( if not exist Makefile C:\Qt\5.9.3\Src\qtbase\bin\qmake.exe -o Makefile C:\Qt\5.9.3\Src\qtbase\src\src.pro ) && mingw32-make -f Makefile install
      mingw32-make[2]: Entering directory 'C:/Qt/5.9.3/Src/qtbase/src'
      cd tools\bootstrap\ && ( if not exist Makefile C:\Qt\5.9.3\Src\qtbase\bin\qmake.exe -o Makefile C:\Qt\5.9.3\Src\qtbase\src\tools\bootstrap\bootstrap.pro ) && mingw32-make -f Makefile install
      mingw32-make[3]: Entering directory 'C:/Qt/5.9.3/Src/qtbase/src/tools/bootstrap'
      mingw32-make -f Makefile.Release install
      mingw32-make[4]: Entering directory 'C:/Qt/5.9.3/Src/qtbase/src/tools/bootstrap'
      The filename, directory name, or volume label syntax is incorrect.
      Makefile.Release:9881: recipe for target 'install_target' failed
      mingw32-make[4]: *** [install_target] Error 1
      mingw32-make[4]: Leaving directory 'C:/Qt/5.9.3/Src/qtbase/src/tools/bootstrap'
      Makefile:46: recipe for target 'release-install' failed
      mingw32-make[3]: *** [release-install] Error 2
      mingw32-make[3]: Leaving directory 'C:/Qt/5.9.3/Src/qtbase/src/tools/bootstrap'
      Makefile:79: recipe for target 'sub-bootstrap-install_subtargets' failed
      mingw32-make[2]: *** [sub-bootstrap-install_subtargets] Error 2
      mingw32-make[2]: Leaving directory 'C:/Qt/5.9.3/Src/qtbase/src'
      Makefile:56: recipe for target 'sub-src-install_subtargets' failed
      mingw32-make[1]: *** [sub-src-install_subtargets] Error 2
      mingw32-make[1]: Leaving directory 'C:/Qt/5.9.3/Src/qtbase'
      Makefile:88: recipe for target 'module-qtbase-install_subtargets' failed
      mingw32-make: *** [module-qtbase-install_subtargets] Error 2

      Anyone know what to do?

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @NuMs

      Hi and welcome to devnet forum

      Not sure what the issue is.

      Do you have windows admin rights?
      Another possibility is that the anti-virus app is interferring and blocks you off.

      Vote the answer(s) that helped you to solve your issue(s)

      N 1 Reply Last reply
      0
      • K koahnig

        @NuMs

        Hi and welcome to devnet forum

        Not sure what the issue is.

        Do you have windows admin rights?
        Another possibility is that the anti-virus app is interferring and blocks you off.

        N Offline
        N Offline
        NuMs
        wrote on last edited by
        #3

        @koahnig

        Heya,

        The cmd window was running as an admin and the only AV I have is Windows Defender.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi and welcome to devnet,

          What parameters did you pass to configure ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          N 1 Reply Last reply
          0
          • SGaistS SGaist

            Hi and welcome to devnet,

            What parameters did you pass to configure ?

            N Offline
            N Offline
            NuMs
            wrote on last edited by
            #5

            @SGaist

            configure -opensource -confirm-license -static -platform win32-g++ -opengl desktop -prefix “C:\Qt\5.9.3\mingw53_32_static” -skip webengine -skip qtspeech

            webengine apparently cant be built statically and qtspeech doesn't compile (and I don't use it) so those two were skipped.

            K 1 Reply Last reply
            0
            • N NuMs

              @SGaist

              configure -opensource -confirm-license -static -platform win32-g++ -opengl desktop -prefix “C:\Qt\5.9.3\mingw53_32_static” -skip webengine -skip qtspeech

              webengine apparently cant be built statically and qtspeech doesn't compile (and I don't use it) so those two were skipped.

              K Offline
              K Offline
              koahnig
              wrote on last edited by koahnig
              #6

              @NuMs

              Probably you should use forward slashes '/' instead of backward slashes '\'

              For windows it does not matter. It handles both. With linux you can use only '/' in file path. Since Qt originates from linux world, it has traditionally trouble with '\'. Therefore, as a general rules it is much better to use always forward slashes with Qt. Only when you are actually required e.g. for escape sequences you have to use the backward slash.

              [edit: koahnig] Correct to:
              Simply follow the standard to make life easier.

              Vote the answer(s) that helped you to solve your issue(s)

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @koahnig it has nothing to do with Windows VS Linux nor Qt. The "forward backward slash" use comes from the standard and how they can or cannot be used. See this stack overflow answer which sums it pretty well.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                K 1 Reply Last reply
                1
                • SGaistS SGaist

                  @koahnig it has nothing to do with Windows VS Linux nor Qt. The "forward backward slash" use comes from the standard and how they can or cannot be used. See this stack overflow answer which sums it pretty well.

                  K Offline
                  K Offline
                  koahnig
                  wrote on last edited by
                  #8

                  @SGaist

                  Thanks for correcting my wrong 'philosophic' windows view.
                  That certainly explains why MS supports "suddenly" both slashes. Assuming that MS adopted volunteeringly something from linux I have considered always as a bit shaky. However, I never followed up to the standard details.

                  Vote the answer(s) that helped you to solve your issue(s)

                  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