Compiling and installing static build issue.



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


  • Moderators

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



  • @koahnig

    Heya,

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


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What parameters did you pass to configure ?



  • @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.


  • Moderators

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


  • Lifetime Qt Champion

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


  • Moderators

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.