Important: Please read the Qt Code of Conduct -

How solve error: [release/application_res.o] Error 1?

  • Hi,
    sorry for my english.
    i wrote an application with qt 5.3. After a year i'm trying to change it and rebuild with qt 5.7 and MinGw 5.3 32bit.
    When i try to buil it give me this error:

    10:36:14: Starting: "C:\Qt\Qt5.7.0\Tools\mingw530_32\bin\mingw32-make.exe"
    C:/Qt/Qt5.7.0/Tools/mingw530_32/bin/mingw32-make -f Makefile.Release
    mingw32-make[1]: Entering directory 'C:/Qt/Progetti/ProgrammaTexstyle/build-untitled-Desktop_Qt_5_7_0_MinGW_32bit-Release'
    windres -i ....\Texstyle\application.rc -o release\application_res.o --include-dir=./../../Texstyle -DUNICODE -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN
    windres: can't open icon file `icone/tex.ico': No such file or directory
    Makefile.Release:124: recipe for target 'release/application_res.o' failed
    mingw32-make[1]: *** [release/application_res.o] Error 1
    mingw32-make[1]: Leaving directory 'C:/Qt/Progetti/ProgrammaTexstyle/build-untitled-Desktop_Qt_5_7_0_MinGW_32bit-Release'
    Makefile:34: recipe for target 'release' failed
    mingw32-make: *** [release] Error 2
    10:36:15: The process "C:\Qt\Qt5.7.0\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project untitled (kit: Desktop Qt 5.7.0 MinGW 32bit)
    When executing step "Make"

    Someone knows how to fix it?

    Thanks a lot

  • Lifetime Qt Champion

    It (could) means that in the qres file, its mentioned `icone/tex.ico'
    but it cannot find the real file.
    So just open the qres and remove it.
    Then make sure to run qmake.
    If the real file is really there, sometimes remove and adding it again also makes it happy.

  • Solved! Thaks a lot!
    I've restored the icon in the right folder and now it build...

Log in to reply