Results 1 to 5 of 5

Thread: compilation errors "gcc: all: No such file or directory"

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2010
    Posts
    12
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default compilation errors "gcc: all: No such file or directory"

    Qt Code:
    1. #include <QApplication>
    2. #include <QDebug>
    3.  
    4. int main(int argc,char*argv[]){
    5.  
    6. QApplication a(argc,argv);
    7. qDebug()<<"Helloworld";
    8.  
    9. return 0;
    10. }
    To copy to clipboard, switch view to plain text mode 

    sample_pr_commandline.pro file:

    TEMPLATE = app
    TARGET =
    DEPENDPATH += .
    INCLUDEPATH += .

    # Input
    SOURCES += first.cpp


    namus@namus-desktop:~/Sample_Qt_progs/sample_pr_commandline$ ls
    first.cpp sample_pr_commandline.pro
    namus@namus-desktop:~/Sample_Qt_progs/sample_pr_commandline$ qmake
    namus@namus-desktop:~/Sample_Qt_progs/sample_pr_commandline$ ls
    first.cpp Makefile sample_pr_commandline.pro

    namus@namus-desktop:~/Sample_Qt_progs/sample_pr_commandline$ make
    g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o first.o first.cpp
    g++ -Wl,-O1 -o sample_pr_commandline first.o -L/usr/lib -lQtGui -lQtCore -lpthread
    gcc first.o all -o first
    gcc: all: No such file or directory
    make: *** [first] Error 1

    Makefile is attached to this thread.
    I am not getting why this error is coming & other programs are running fine.
    Attached Files Attached Files

Similar Threads

  1. Replies: 1
    Last Post: 23rd June 2010, 06:03
  2. Replies: 9
    Last Post: 20th May 2010, 09:55
  3. Replies: 3
    Last Post: 15th February 2010, 17:27
  4. Replies: 3
    Last Post: 8th July 2008, 19:37
  5. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05

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.