Results 1 to 7 of 7

Thread: the "qrc_res.cpp" doesn't exist after compiling

  1. #1
    Join Date
    Oct 2012
    Posts
    12
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Thumbs up the "qrc_res.cpp" doesn't exist after compiling

    I writed a program by Qt Creator(2.4.1), but now the program doesn't complete compile.
    the error:
    d:\QtSDK\4.8.3\bin\qmake.exe -spec ..\..\QtSDK\4.8.3\mkspecs\win32-g++ -o Makefile ..\ChooseSeat\ChooseSeat.pro
    Can't find the specified path.
    Can't find the specified path
    D:/QtSDK/mingw/bin/mingw32-make -f Makefile.Release
    mingw32-make[1]: Entering directory `D:/QtApp/ChooseSeat-build-desktop-Qt_4_8_3__4_8_3____'
    bin\rcc.exe -name res ..\ChooseSeat\res.qrc -o release\qrc_res.cpp
    mingw32-make[1]: Leaving directory `D:/QtApp/ChooseSeat-build-desktop-Qt_4_8_3__4_8_3____'
    process_begin: CreateProcess(NULL, bin\rcc.exe -name res ..\ChooseSeat\res.qrc -o release\qrc_res.cpp, ...) failed.
    make (e=2): Can't find the specified path
    mingw32-make[1]: *** [release/qrc_res.cpp] Error 2
    mingw32-make: *** [release] Error 2
    21:19:20: process"D:\QtSDK\mingw\bin\mingw32-make.exe"exit,exit code 2.
    Error while building/deploying project ChooseSeat (target: desktop)
    When executing step 'Make'

    My .pro file:
    RESOURCES += res.qrc
    and the res.qrc file is normal.
    res.qrc:
    <RCC>
    <qresource prefix="/">
    <file>res/about/about.png</file>
    <file>res/login/pw.png</file>
    <file>res/login/user.png</file>
    <file>res/mainWin/about.png</file>
    <file>res/mainWin/exit.png</file>
    <file>res/mainWin/find.png</file>
    <file>res/mainWin/help.png</file>
    </qresource>
    </RCC>
    every file is existed in res.qrc

    What I should do?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: the "qrc_res.cpp" doesn't exist after compiling

    Diagnose the fault with your Qt SDK/Qt build environment. It is fairly obvious that there are several error messages in the output you posted indicating that bot qmake and rcc were not found or were having issues. These paths, for example, are not typical of a standard QtSDK installation:
    Qt Code:
    1. d:\QtSDK\4.8.3\bin\qmake.exe
    2. bin\rcc.exe
    To copy to clipboard, switch view to plain text mode 
    I would expect both to be of the form:
    Qt Code:
    1. d:\QtSDK\Desktop\4.8.3\bin\qmake.exe
    2. d:\QtSDK\Desktop\4.8.3\bin\rcc.exe
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: the "qrc_res.cpp" doesn't exist after compiling

    This is one of the 3 bugs that hunted me (well not only me) in past few days after going to the 4.8.3.

    Honestly 4.8.3 is the worst release ever - up till now I didn't have any problem with the Qt upgrade.

    Back to the problem:
    The problem is with the path to the rcc.exe.

    Look into this bugreport for the soulution:
    https://bugreports.qt-project.org/browse/QTBUG-27237
    In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
    The advance of computerization however, has not yet wiped out nations and ethnic groups.

  4. #4
    Join Date
    Oct 2012
    Posts
    12
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: the "qrc_res.cpp" doesn't exist after compiling

    should I reinstall the qt-win-opensource-4.8.3-mingw?
    and install it in d:\QtSDK\Desktop
    why?
    I'm not sure what you mean


    Added after 16 minutes:


    should I reinstall the qt-win-opensource-4.8.3-mingw?
    and install it in d:\QtSDK\Desktop
    why?
    I'm not sure what you mean
    Last edited by Hughen; 17th October 2012 at 17:14.

  5. #5
    Join Date
    Jun 2012
    Posts
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: the "qrc_res.cpp" doesn't exist after compiling

    Hi Hughen,

    your log states:

    d:\QtSDK\4.8.3\bin\qmake.exe -spec ..\..\QtSDK\4.8.3\mkspecs\win32-g++ -o Makefile ..\ChooseSeat\ChooseSeat.pro
    Can't find the specified path.


    It is not clear what Can't find the specified path means. Is the location d:\QtSDK\4.8.3\bin\qmake.exe correct? If yes then qmake cannot process the parameters as specified, thus the execution directory does not match with the relative locations given for -spec and -o. You have to find out and fix this for yourself as we don't have your environment (or attach your project to the next post if this is even possible).

    All other errors reported by the log are not relevant yet as those are printed out by calls stated in the MakeFile generated by qmake - and qmake did not create a valid MakeFile due to the first error. So you should concentrate on solving the first error.

  6. #6
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: the "qrc_res.cpp" doesn't exist after compiling

    OMG... Virus.. Hughen
    Did any of You read the link that I posted?
    The correct answer that fix problem is already given, and no one is talking about reinstalling.

    Btw. The problem is with this:
    process_begin: CreateProcess(NULL, bin\rcc.exe -name res ..\ChooseSeat\res.qrc -o release\qrc_res.cpp, ...) failed.
    With means that on Windows platform API function CreateProcess can't start program bin/rcc.exe. Depending on settings in the QtCreator current working directory is the directory with the .pro. So %pathToYourProjectPRO%/bin/rcc.exe can't be found. And thats probably ok, because You didn't installed QtSDK in the newly created project directory did You?
    Look at the link that I posted for the answer.
    In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
    The advance of computerization however, has not yet wiped out nations and ethnic groups.

  7. #7
    Join Date
    Oct 2012
    Posts
    12
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: the "qrc_res.cpp" doesn't exist after compiling

    Thank you, I'm sorry, there is nobody poisoning, and the ping is bad, so.....

    My problem is solved by your idea, thanks.
    CreateProcess doesn't find rcc.exe, and I add "QMAKE_RCC = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}rcc.exe" after the QMAKE_IDC line in qmake.conf(for me its: D:\QtSDK\4.8.3\mkspecs\win32-g++)

Similar Threads

  1. Compiling Qt 4.8.2 results in "ld.exe: final link failed: Memory exhausted"
    By themagician in forum Installation and Deployment
    Replies: 8
    Last Post: 26th July 2012, 20:53
  2. Replies: 0
    Last Post: 20th November 2011, 12:41
  3. "Cannot find -lqjpeg" error when compiling QT application in static mode
    By JonathanReez in forum Installation and Deployment
    Replies: 7
    Last Post: 6th September 2011, 15:44
  4. Replies: 5
    Last Post: 17th May 2011, 11:47
  5. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.