Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Error: Project: No such file or directory



  • I'm trying to rebuild my project but I get "Error: Project: No such file or directory"

    
    gcc: error: Project: No such file or directory
    windres: preprocessing failed.
    Makefile.Release:233: recipe for target 'release/DaxiSMSsender_res.o' failed
    mingw32-make[1]: Leaving directory 'C:/Users/tleladze/Desktop/mmi/build-TazSMSSender-Desktop_Qt_5_7_0_MinGW_32bit-Release'
    Makefile:34: recipe for target 'release' failed
    mingw32-make[1]: *** [release/DaxiSMSsender_res.o] Error 1
    mingw32-make: *** [release] Error 2
    11:54:26: The process "C:\Qt\Qt5.7.0\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project TazSMSSender (kit: Desktop Qt 5.7.0 MinGW 32bit)
    When executing step "Make"
    

  • Qt Champions 2017

    Did you switch from MSVC to MinGW? If so you need to rerun qmake (I'd also advise wiping out all the old stuff from the build dirs) and then rebuild.



  • @kshegunov said in Error: Project: No such file or directory:

    Did you switch from MSVC to MinGW?

    i was on mingw and i am using all the time.

    @kshegunov said in Error: Project: No such file or directory:

    'd also advise wiping out all the old stuff from the build dirs

    i'v tryed this but nothing.

    4:33:53: Running steps for project TazSMSSender...
    14:33:53: Starting: "C:\Qt\Qt5.7.0\Tools\mingw530_32\bin\mingw32-make.exe" clean
    C:/Qt/Qt5.7.0/Tools/mingw530_32/bin/mingw32-make -f Makefile.Release clean
    mingw32-make[1]: Entering directory 'C:/Users/tleladze/Desktop/lastbuild'
    del release\qrc_rec.cpp
    Could Not Find C:\Users\tleladze\Desktop\lastbuild\release\qrc_rec.cpp
    del release\moc_mainwindow.cpp release\moc_globalall.cpp release\moc_addnewcontact.cpp release\moc_contact.cpp release\moc_editcontact.cpp release\moc_dlghistory.cpp release\moc_configuration.cpp release\moc_dlgautomaticsend.cpp release\moc_threadautomaticsend.cpp release\moc_wdgmytree.cpp release\moc_dlgaddtemplate.cpp release\moc_insertmessagequeue.cpp release\moc_dlgchoosemanycontact.cpp release\moc_dlgedittemplate.cpp release\moc_childthreadd.cpp release\moc_templatemanually.cpp release\moc_dlgtodayreport.cpp release\moc_dlgcontfullinfo.cpp release\moc_dlgfiltcontacts.cpp release\moc_dlgcontactgroups.cpp release\moc_dlgaddnewgroups.cpp release\moc_dlggroups.cpp release\moc_dlgeditgroups.cpp release\moc_dlgdetailedsearch.cpp release\moc_dlgchooseorganization.cpp release\moc_dlgaddposition.cpp release\moc_dlgupdateposition.cpp release\moc_dlgsettings.cpp
    Could Not Find C:\Users\tleladze\Desktop\lastbuild\release\moc_mainwindow.cpp
    del ui_mainwindow.h ui_dialog.h ui_addnewcontact.h ui_editcontact.h ui_history.h ui_dlghistory.h ui_configuration.h ui_dlgautomaticsender.h ui_dlgautomaticsend.h ui_wdgmytree.h ui_dlgaddtemplate.h ui_insertmessagequeue.h ui_dlgchoosemanycontact.h ui_dlgedittemplate.h ui_templatemanually.h ui_dlgtodayreport.h ui_dlgcontfullinfo.h ui_dlgfiltcontacts.h ui_dlgcontactgroups.h ui_dlgaddnewgroups.h ui_dlgeditgroups.h ui_dlgdetailedsearch.h ui_dlgchooseorganization.h ui_dlgaddposition.h ui_dlgupdateposition.h ui_dlgsettings.h
    Could Not Find C:\Users\tleladze\Desktop\lastbuild\ui_mainwindow.h
    del release\main.o release\mainwindow.o release\globalall.o release\addnewcontact.o release\contact.o release\editcontact.o release\dlghistory.o release\configuration.o release\dlgautomaticsend.o release\threadautomaticsend.o release\wdgmytree.o release\dlgaddtemplate.o release\insertmessagequeue.o release\dlgchoosemanycontact.o release\dlgedittemplate.o release\childthreadd.o release\templatemanually.o release\dlgtodayreport.o release\dlgcontfullinfo.o release\dlgfiltcontacts.o release\dlgcontactgroups.o release\dlgaddnewgroups.o release\dlggroups.o release\dlgeditgroups.o release\dlgdetailedsearch.o release\dlgchooseorganization.o release\dlgaddposition.o release\dlgupdateposition.o release\dlgsettings.o release\qrc_rec.o release\moc_mainwindow.o release\moc_globalall.o release\moc_addnewcontact.o release\moc_contact.o release\moc_editcontact.o release\moc_dlghistory.o release\moc_configuration.o release\moc_dlgautomaticsend.o release\moc_threadautomaticsend.o release\moc_wdgmytree.o release\moc_dlgaddtemplate.o release\moc_insertmessagequeue.o release\moc_dlgchoosemanycontact.o release\moc_dlgedittemplate.o release\moc_childthreadd.o release\moc_templatemanually.o release\moc_dlgtodayreport.o release\moc_dlgcontfullinfo.o release\moc_dlgfiltcontacts.o release\moc_dlgcontactgroups.o release\moc_dlgaddnewgroups.o release\moc_dlggroups.o release\moc_dlgeditgroups.o release\moc_dlgdetailedsearch.o release\moc_dlgchooseorganization.o release\moc_dlgaddposition.o release\moc_dlgupdateposition.o release\moc_dlgsettings.o
    Could Not Find C:\Users\tleladze\Desktop\lastbuild\release\main.o
    del release\DaxiSMSsender_res.o
    Could Not Find C:\Users\tleladze\Desktop\lastbuild\release\DaxiSMSsender_res.o
    mingw32-make[1]: Leaving directory 'C:/Users/tleladze/Desktop/lastbuild'
    C:/Qt/Qt5.7.0/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug clean
    mingw32-make[1]: Entering directory 'C:/Users/tleladze/Desktop/lastbuild'
    del debug\qrc_rec.cpp
    Could Not Find C:\Users\tleladze\Desktop\lastbuild\debug\qrc_rec.cpp
    del debug\moc_mainwindow.cpp debug\moc_globalall.cpp debug\moc_addnewcontact.cpp debug\moc_contact.cpp debug\moc_editcontact.cpp debug\moc_dlghistory.cpp debug\moc_configuration.cpp debug\moc_dlgautomaticsend.cpp debug\moc_threadautomaticsend.cpp debug\moc_wdgmytree.cpp debug\moc_dlgaddtemplate.cpp debug\moc_insertmessagequeue.cpp debug\moc_dlgchoosemanycontact.cpp debug\moc_dlgedittemplate.cpp debug\moc_childthreadd.cpp debug\moc_templatemanually.cpp debug\moc_dlgtodayreport.cpp debug\moc_dlgcontfullinfo.cpp debug\moc_dlgfiltcontacts.cpp debug\moc_dlgcontactgroups.cpp debug\moc_dlgaddnewgroups.cpp debug\moc_dlggroups.cpp debug\moc_dlgeditgroups.cpp debug\moc_dlgdetailedsearch.cpp debug\moc_dlgchooseorganization.cpp debug\moc_dlgaddposition.cpp debug\moc_dlgupdateposition.cpp debug\moc_dlgsettings.cpp
    Could Not Find C:\Users\tleladze\Desktop\lastbuild\debug\moc_mainwindow.cpp
    del ui_mainwindow.h ui_dialog.h ui_addnewcontact.h ui_editcontact.h ui_history.h ui_dlghistory.h ui_configuration.h ui_dlgautomaticsender.h ui_dlgautomaticsend.h ui_wdgmytree.h ui_dlgaddtemplate.h ui_insertmessagequeue.h ui_dlgchoosemanycontact.h ui_dlgedittemplate.h ui_templatemanually.h ui_dlgtodayreport.h ui_dlgcontfullinfo.h ui_dlgfiltcontacts.h ui_dlgcontactgroups.h ui_dlgaddnewgroups.h ui_dlgeditgroups.h ui_dlgdetailedsearch.h ui_dlgchooseorganization.h ui_dlgaddposition.h ui_dlgupdateposition.h ui_dlgsettings.h
    Could Not Find C:\Users\tleladze\Desktop\lastbuild\ui_mainwindow.h
    del debug\main.o debug\mainwindow.o debug\globalall.o debug\addnewcontact.o debug\contact.o debug\editcontact.o debug\dlghistory.o debug\configuration.o debug\dlgautomaticsend.o debug\threadautomaticsend.o debug\wdgmytree.o debug\dlgaddtemplate.o debug\insertmessagequeue.o debug\dlgchoosemanycontact.o debug\dlgedittemplate.o debug\childthreadd.o debug\templatemanually.o debug\dlgtodayreport.o debug\dlgcontfullinfo.o debug\dlgfiltcontacts.o debug\dlgcontactgroups.o debug\dlgaddnewgroups.o debug\dlggroups.o debug\dlgeditgroups.o debug\dlgdetailedsearch.o debug\dlgchooseorganization.o debug\dlgaddposition.o debug\dlgupdateposition.o debug\dlgsettings.o debug\qrc_rec.o debug\moc_mainwindow.o debug\moc_globalall.o debug\moc_addnewcontact.o debug\moc_contact.o debug\moc_editcontact.o debug\moc_dlghistory.o debug\moc_configuration.o debug\moc_dlgautomaticsend.o debug\moc_threadautomaticsend.o debug\moc_wdgmytree.o debug\moc_dlgaddtemplate.o debug\moc_insertmessagequeue.o debug\moc_dlgchoosemanycontact.o debug\moc_dlgedittemplate.o debug\moc_childthreadd.o debug\moc_templatemanually.o debug\moc_dlgtodayreport.o debug\moc_dlgcontfullinfo.o debug\moc_dlgfiltcontacts.o debug\moc_dlgcontactgroups.o debug\moc_dlgaddnewgroups.o debug\moc_dlggroups.o debug\moc_dlgeditgroups.o debug\moc_dlgdetailedsearch.o debug\moc_dlgchooseorganization.o debug\moc_dlgaddposition.o debug\moc_dlgupdateposition.o debug\moc_dlgsettings.o
    Could Not Find C:\Users\tleladze\Desktop\lastbuild\debug\main.o
    del debug\DaxiSMSsender_res.o
    Could Not Find C:\Users\tleladze\Desktop\lastbuild\debug\DaxiSMSsender_res.o
    mingw32-make[1]: Leaving directory 'C:/Users/tleladze/Desktop/lastbuild'
    14:33:54: The process "C:\Qt\Qt5.7.0\Tools\mingw530_32\bin\mingw32-make.exe" exited normally.
    14:33:54: Configuration unchanged, skipping qmake step.
    14:33:54: Starting: "C:\Qt\Qt5.7.0\Tools\mingw530_32\bin\mingw32-make.exe" 
    

  • Qt Champions 2019

    @Taz742 You should manually delete the build directory, run qmake and then build.
    Also check the kit you're using - are there any warnings/errors?



  • @jsulm @kshegunov
    in my .pro file i have RC_FILE = DaxiSMSSender.rc i delete this line and work.


  • Qt Champions 2017

    Thanks for sharing the solution. I don't really know why you had this line in your .pro to be honest.



  • @Taz742 Where can i finde the .pro file?


  • Qt Champions 2019

    @Loen said in Error: Project: No such file or directory:

    Where can i finde the .pro file?

    In your project directory.
    Also, you can always search for files like *.pro in Windows Explorer for example...


  • Banned

    This post is deleted!

Log in to reply