Results 1 to 4 of 4

Thread: No such file or directory error on Non QT Project

  1. #1
    Join Date
    Nov 2016
    Posts
    17
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Windows

    Question No such file or directory error on Non QT Project

    Hi you all,

    I just started to play with QT Creator using V5.7 so im newbie about all of this situations.

    I'm trying to use QT just as compiler of C or C++ ; doesnt matter. I wanted to implement dot matrix lcd libraries and source files and add them to qt project. So i created a non qt project which is on C++ Plane.

    I added my include and source files to project directory. I also declared them with " INCLUDEPATH += " command. Addition to i tried to add them by hand to project. I did all of these in different variations but, im getting an error and i couldnt handle it. I tried so many things which i read about this error. They were unticking the shadow building, setting building configurations etc. I really need help about that because i dont know what to do more.



    There is my .pro file just concerned part:


    TEMPLATE = app
    CONFIG += console c++11
    CONFIG -= app_bundle
    CONFIG -= qt


    INCLUDEPATH += "C:\ROO\\QT_Projects\\DENEME4\\inc"
    INCLUDEPATH += "C:\\ROO\\QT_Projects\\DENEME4\\fonts"
    INCLUDEPATH += "C:\\ROO\\QT_Projects\\DENEME4\\ssd0323"
    INCLUDEPATH += "C:\\ROO\\QT_Projects\\DENEME4\\ssd0323\\cfg03 23"
    INCLUDEPATH += "C:\\ROO\\QT_Projects\\DENEME4\\ssd0323\\cfgio "
    INCLUDEPATH += "C:\\ROO\\QT_Projects\\DENEME4\\ssd0323\\seria l"
    INCLUDEPATH += "C:\\ROO\\QT_Projects\\DENEME4\\ssd0323\\singl chp"

    DEFINES += "GHW_NOHDW = 1"
    DEFINES += "GHW_PCSIM = 1"
    DEFINES += "SGPCMODE = 1"
    -------------------------------------------------------------------------
    Error is given below:


    17:21:38: Running steps for project DENEME4...
    17:21:38: Configuration unchanged, skipping qmake step.
    17:21:38: Starting: "C:\Qt\Qt5.7.0\Tools\mingw530_32\bin\mingw32-make.exe"
    C:\Qt\Qt5.7.0\5.7\mingw53_32\bin\qmake.exe -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" -o Makefile DENEME4.pro
    C:/Qt/Qt5.7.0/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'C:/ROO/QT_Projects/DENEME4'
    g++ -c -pipe -fno-keep-inline-dllexport -g -std=gnu++11 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DGHW_NOHDW = 1 -DGHW_PCSIM = 1 -DSGPCMODE = 1 -DQT_QML_DEBUG -I. -Iinc -Ifonts -Issd0323 -Issd0323\cfg0323 -Issd0323\cfgio -Issd0323\serial -Issd0323\singlchp -I..\..\..\Qt\Qt5.7.0\5.7\mingw53_32\mkspecs\win32-g++ -o debug\main.o main.cpp
    g++: error: =: No such file or directory
    g++: error: 1: No such file or directory
    g++: error: =: No such file or directory
    g++: error: 1: No such file or directory
    g++: error: =: No such file or directory
    g++: error: 1: No such file or directory
    mingw32-make[1]: *** [debug/main.o] Error 1
    mingw32-make: *** [debug] Error 2
    Makefile.Debug:424: recipe for target 'debug/main.o' failed
    mingw32-make[1]: Leaving directory 'C:/ROO/QT_Projects/DENEME4'
    Makefile:34: recipe for target 'debug' failed
    17:21:39: The process "C:\Qt\Qt5.7.0\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project DENEME4 (kit: Desktop Qt 5.7.0 MinGW 32bit)
    When executing step "Make"
    17:21:39: Elapsed time: 00:01.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: No such file or directory error on Non QT Project

    Remove the blank spaces from your "DEFINES" literals: DEFINES += "GHW_NOHDW=1". If you look at the arguments being passed to g++ on the command line, you'll see that your defines are mapping to "-DGHW_NOHDW = 1", which is being interpreted as 3 arguments to g++, not one.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    Join Date
    Nov 2016
    Posts
    17
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: No such file or directory error on Non QT Project

    Quote Originally Posted by d_stranz View Post
    Remove the blank spaces from your "DEFINES" literals: DEFINES += "GHW_NOHDW=1". If you look at the arguments being passed to g++ on the command line, you'll see that your defines are mapping to "-DGHW_NOHDW = 1", which is being interpreted as 3 arguments to g++, not one.
    Thank you for your information. I cant try it now but in the morning i will try it directly. Is it only thing about this error for this case ?

    Regards.

  4. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: No such file or directory error on Non QT Project

    Is it only thing about this error for this case ?
    It will fix the command line for g++, but I have no idea what errors you will run into during the rest of the compilation and linking. I don't see any libraries being linked in, for example, so you'll likely get unresolved symbol errors once you get past the compile stage and into the link stage.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Replies: 11
    Last Post: 1st February 2018, 05:27
  2. Replies: 5
    Last Post: 10th November 2010, 16:39
  3. Replies: 4
    Last Post: 9th May 2010, 17:18
  4. change makefile directory from qt project file
    By majer627 in forum Qt Programming
    Replies: 0
    Last Post: 22nd December 2009, 09:28
  5. Replies: 7
    Last Post: 2nd November 2009, 20:07

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.