Important: Please read the Qt Code of Conduct -

Unable to build same project under Windows 7 as on Windows 8.1

  • I have been working on a application from Windows 7 that should also work on Windows 8.1. I am able to run my executable on the Windows 8.1 computer, but running it under Qt Creator fails because I cannot compile it, I get these errors:

    bq. unrecognized escape sequence
    [debug/obj/application_res.o] Error 1.

    My compile output:

    bq. application.rc:1: unrecognized escape sequence
    windres: can't open icon file `images\icon.ico': No such file or directory
    Makefile.Debug:159: recipe for target 'debug/obj/application_res.o' failed
    mingw32-make[1]: *** [debug/obj/application_res.o] Error 1
    mingw32-make[1]: Leaving directory 'C:/Qt/desktop_2/gui'
    mingw32-make: *** [debug] Error 2
    makefile:34: recipe for target 'debug' failed
    13:44:22: The process "C:\Qt\Qt5.2.0\Tools\mingw48_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project production_test_util (kit: Desktop Qt 5.2.0 MinGW 32bit)
    When executing step 'Make'

    In my application.rc it complains about the line @0 ICON "images\icon.ico@

    whereas this is not the case on my Win7 computer. The error is removed if I escape the backslash tho, but what can I do about the

    bq. makefile:34: recipe for target 'debug' failed

    error? The SDK (5.2.0) version and the Creator version is the same on both computers. The project is identical, whereas I just check out my whole svn repo.

Log in to reply