Results 1 to 1 of 1

Thread: [solved] Qt 5.1.1 - Build error: No such file or directory

  1. #1
    Join Date
    Oct 2013
    Posts
    14
    Thanks
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default [solved] Qt 5.1.1 - Build error: No such file or directory

    EDIT: problem solved, i had a space in one of my folders which does not go well with CLI applications

    ok so i'm having a problem when implementing qt test lib.

    here is my .pro file


    Qt Code:
    1. QT += xml core gui network
    2.  
    3. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    4.  
    5. CONFIG += openssl c++11
    6.  
    7. win32{
    8. RC_FILE = Ouroboros.rc
    9. QMAKE_LFLAGS += -static -static-libgcc -static-libstdc++
    10. LIBS += -lpsapi
    11. }
    12.  
    13. TARGET = Ouroboros
    14. TEMPLATE = app
    15.  
    16. SOURCES += main.cpp\
    17. singleapplication.cpp \
    18. test1.cpp \
    19. test2.cpp
    20.  
    21. HEADERS += singleapplication.h \
    22. AutoTest.h \
    23. test1.h \
    24. test2.h
    25.  
    26.  
    27. #includes
    28. include(api/api.pri)
    29. include(library/library.pri)
    30. include(manager/manager.pri)
    31. include(ouroboros/ouroboros.pri)
    32. include(recognition/recognition.pri)
    33. #include(tests/tests.pri)
    34. include(ui/ui.pri)
    35.  
    36. RESOURCES += \
    37. Resources.qrc
    To copy to clipboard, switch view to plain text mode 

    as it is now qt builds the project perfectly, but when i add testlib (QT+=testlib) it won't compile the application, and it fails to find the debug build folder.
    here is the console output when that occurs:

    Qt Code:
    1. Starting: "C:\Qt\Qt5.1.1\Tools\mingw48_32\bin\mingw32-make.exe"
    2. C:\Qt\Qt5.1.1\5.1.1\mingw48_32\bin\qmake.exe -spec win32-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug -o Makefile ..\Ouroboros\Ouroboros.pro
    3. C:/Qt/Qt5.1.1/Tools/mingw48_32/bin/mingw32-make -f Makefile.Debug
    4. mingw32-make[1]: Entering directory 'C:/Users/Maka/Documents/QT Projects/build-Ouroboros-Desktop_Qt_5_1_1_MinGW_32bit-Debug'
    5. g++ -c -pipe -fno-keep-inline-dllexport -g -std=c++0x -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_TESTLIB_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR=\"C:/Users/Maka/Documents/QT Projects/build-Ouroboros-Desktop_Qt_5_1_1_MinGW_32bit-Debug\" -I..\Ouroboros -I"..\..\..\..\..\Qt\Qt5.1.1\5.1.1\mingw48_32\include" -I"..\..\..\..\..\Qt\Qt5.1.1\5.1.1\mingw48_32\include\QtWidgets" -I"..\..\..\..\..\Qt\Qt5.1.1\5.1.1\mingw48_32\include\QtNetwork" -I"..\..\..\..\..\Qt\Qt5.1.1\5.1.1\mingw48_32\include\QtXml" -I"..\..\..\..\..\Qt\Qt5.1.1\5.1.1\mingw48_32\include\QtTest" -I"..\..\..\..\..\Qt\Qt5.1.1\5.1.1\mingw48_32\include\QtGui" -I"..\..\..\..\..\Qt\Qt5.1.1\5.1.1\mingw48_32\include\QtCore" -I"debug" -I"." -I"." -I"..\..\..\..\..\Qt\Qt5.1.1\5.1.1\mingw48_32\mkspecs\win32-g++" -o debug\main.o ..\Ouroboros\main.cpp
    6. g++: error: Projects/build-Ouroboros-Desktop_Qt_5_1_1_MinGW_32bit-Debug": No such file or directory
    7. Makefile.Debug:2485: recipe for target 'debug/main.o' failed
    8. mingw32-make[1]: *** [debug/main.o] Error 1
    9. mingw32-make[1]: Leaving directory 'C:/Users/Maka/Documents/QT Projects/build-Ouroboros-Desktop_Qt_5_1_1_MinGW_32bit-Debug'
    10. makefile:34: recipe for target 'debug' failed
    11. mingw32-make: *** [debug] Error 2
    12. 17:17:28: The process "C:\Qt\Qt5.1.1\Tools\mingw48_32\bin\mingw32-make.exe" exited with code 2.
    13. Error while building/deploying project Ouroboros (kit: Desktop Qt 5.1.1 MinGW 32bit)
    14. When executing step 'Make'
    To copy to clipboard, switch view to plain text mode 
    Last edited by jigglyslime; 2nd January 2014 at 08:43. Reason: fouind fix

Similar Threads

  1. Replies: 11
    Last Post: 1st February 2018, 04:27
  2. error: QSqlDatabase: No such file or directory
    By learningqt in forum Newbie
    Replies: 3
    Last Post: 15th February 2012, 10:00
  3. Replies: 4
    Last Post: 9th May 2010, 16:18
  4. Replies: 7
    Last Post: 2nd November 2009, 19:07
  5. QT 4.5.1 failed to build with gtk/gtk.h: No such file or directory
    By doggrant in forum Installation and Deployment
    Replies: 5
    Last Post: 28th August 2009, 15:55

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.