Qt Static Build Error: Target 'install' Not Remade Because of Errors



  • Hey everybody,

    I am trying to create a static build of Qt 5.5.1 using the instructions given by Qt here on my Windows 7 machine. Through a few attempts I always seem to land at the following issue with the given script.

    mingw32-make[1]: Target 'install' not remade because of errors.
    mingw32-make[1]: Leaving directory 'C:/Qt/StaticBuild/src/qt-everywhere-opensource-src-5.5.1/qtbase'
    makefile:80: recipe for target 'module-qtbase-install_subtargets' failed
    mingw32-make: *** [module-qtbase-install_subtargets] Error 2
    mingw32-make: Target 'install' not remade because of errors.
    

    I am kind of stuck here and wondering how I might be able to resolve this issue, which I noticed some others were having. I have followed the instructions as far as I can tell and believe I have all the proper packages installed. For reference, the configure line I used is given below.

    $QtSrcUrl = "http://download.qt.io/official_releases/qt/5.5/5.5.1/single/qt-everywhere-opensource-src-5.5.1.7z",
    $QtStaticDir = "C:\Qt\StaticBuild", 
    $QtVersion = "5.5.1",
    $MingwDir = "C:\Qt\Tools\mingw492_32",
    [switch]$NoPause = $false
    

    Cheers
    ~ notalocal


  • Moderators

    @notalocal said in Qt Static Build Error: Target 'install' Not Remade Because of Errors:

    mingw32-make[1]: Target 'install' not remade because of errors.

    What was printed before this line?



  • Hey, sorry for the late response. The full message looks more like the following with a lot more copies above it.

    2 File(s) copied
    xcopy /s /q /y /i C:\Qt\Static\src\qt-everywhere-opensource-src-5.7.0\qtbase\mkspecs\winrt-x86-msvc2013 C:\Qt\Static\5.7
    .0\mkspecs\winrt-x86-msvc2013
    2 File(s) copied
    xcopy /s /q /y /i C:\Qt\Static\src\qt-everywhere-opensource-src-5.7.0\qtbase\mkspecs\winrt-x86-msvc2015 C:\Qt\Static\5.7
    .0\mkspecs\winrt-x86-msvc2015
    2 File(s) copied
    xcopy /s /q /y /i C:\Qt\Static\src\qt-everywhere-opensource-src-5.7.0\qtbase\doc\global C:\Qt\Static\5.7.0\doc\global
    76 File(s) copied
    mingw32-make[1]: Target 'install' not remade because of errors.
    mingw32-make[1]: Leaving directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.7.0/qtbase'
    Makefile:85: recipe for target 'module-qtbase-install_subtargets' failed
    mingw32-make: *** [module-qtbase-install_subtargets] Error 2
    mingw32-make: Target 'install' not remade because of errors.
    Press Enter to continue...:
    

    I wanted to add that I noticed it also said this about half-way through the script:

    WARNING: Using OpenGL ES 2.0 without ANGLE.
    Specify -opengl desktop to use Open GL.
    The build will most likely fail.
    (Press any key to continue...)
    

    As an extra piece of information, I wanted to include my paths as I feel like they are totally relevant. I might be missing one maybe?

    C:\Windows\system32;
    C:\Windows;
    C:\Windows\System32\Wbem;
    C:\Windows\System32\WindowsPowerShell\v1.0;
    C:\..\Skype\Phone\;
    C:\..\Tortoise SVN\bin;
    C:\..\Microsoft Windows Performance Toolkit\;
    C:\..\.dnx\bin;
    C:\..\Microsoft DNX\Dnvm\;
    C:\..\Microsoft SQL Server\130\Tools\Binn\;
    C:\Qt\Tools\mingw492_32\bin\;
    C:\Qt\Tools\mingw530_32\bin;
    C:\Ruby23\bin;
    C:\Python27;
    C:\Python27\Scripts;
    C:\..\Python\Python35;
    C:\Users\..\Python\Python35\Scripts;
    C:\Strawberry\perl\bin
    

  • Moderators

    @notalocal said in Qt Static Build Error: Target 'install' Not Remade Because of Errors:

    mingw32-make[1]: Target 'install' not remade because of errors.

    What was before all the xcopy calls?



  • This post is deleted!


  • /mingw530_32/bin/mingw32-make -f Makefile install
    mingw32-make[3]: Entering directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.7.0/qtbase/src/3rdparty/freetype'
    C:/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug install
    mingw32-make[4]: Entering directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.7.0/qtbase/src/3rdparty/freetype'
    C:\Qt\Static\src\qt-everywhere-opensource-src-5.7.0\qtbase\bin\qmake -install sed -e "s,C:/Qt/Static/src/qt-everywhere-o
    pensource-src-5.7.0/[^/][^/]*/lib,$$[QT_INSTALL_LIBS],g" -e "s,C:\\\\Qt\\\\Static\\\\src\\\\qt-everywhere-opensource-src
    -5.7.0\\\[^\\\][^\\\]*\\\\lib,$$[QT_INSTALL_LIBS],gi" ..\..\..\lib\qtfreetyped.prl > C:\Qt\Static\5.7.0\lib\qtfreetyped.prl
    copy /y ..\..\..\lib\libqtfreetyped.a C:\Qt\Static\5.7.0\lib\libqtfreetyped.a
            1 file(s) copied.
    mingw32-make[4]: Leaving directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.7.0/qtbase/src/3rdparty/freetype'
    C:/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile.Release install
    mingw32-make[4]: Entering directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.7.0/qtbase/src/3rdparty/freetype'
    C:\Qt\Static\src\qt-everywhere-opensource-src-5.7.0\qtbase\bin\qmake -install sed -e "s,C:/Qt/Static/src/qt-everywhere-opensource-src-5.7.0/[^/][^/]*/lib,$$[QT_INSTALL_LIBS],g" -e "s,C:\\\\Qt\\\\Static\\\\src\\\\qt-everywhere-opensource-src-5.7.0\\\[^\\\][^\\\]*\\\\lib,$$[QT_INSTALL_LIBS],gi" ..\..\..\lib\qtfreetype.prl > C:\Qt\Static\5.7.0\lib\qtfreetype.prl
    copy /y ..\..\..\lib\libqtfreetype.a C:\Qt\Static\5.7.0\lib\libqtfreetype.a
            1 file(s) copied.
    mingw32-make[4]: Leaving directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.7.0/qtbase/src/3rdparty/freetype'
    mingw32-make[3]: Leaving directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.7.0/qtbase/src/3rdparty/freetype'
    mingw32-make[2]: Target 'install' not remade because of errors.
    mingw32-make[2]: Leaving directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.7.0/qtbase/src'
    Makefile:53: recipe for target 'sub-src-install_subtargets' failed
    mingw32-make[1]: *** [sub-src-install_subtargets] Error 2
    cd qmake\ && ( if not exist Makefile.qmake-aux C:\Qt\Static\src\qt-everywhere-opensource-src-5.7.0\qtbase\bin\qmake C:\Q
    t\Static\src\qt-everywhere-opensource-src-5.7.0\qtbase\qmake\qmake-aux.pro -o Makefile.qmake-aux ) && C:/Qt/Tools/mingw5
    30_32/bin/mingw32-make -f Makefile.qmake-aux install
    mingw32-make[2]: Entering directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.7.0/qtbase/qmake'
    C:/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile.qmake-aux.Debug install
    mingw32-make[3]: Entering directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.7.0/qtbase/qmake'
    copy /y C:\Qt\Static\src\qt-everywhere-opensource-src-5.7.0\qtbase\bin\qmake.exe C:\Qt\Static\5.7.0\bin
            1 file(s) copied.
    mingw32-make[3]: Leaving directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.7.0/qtbase/qmake'
    mingw32-make[2]: Leaving directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.7.0/qtbase/qmake'
    


  • I was able to fix my issue by re-downloading the script and entering my lone argument for the Mingw directory on the command line instead of in the script. I also went to 5.7 instead of 5.5. Stupid I know.


Log in to reply
 

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