Results 1 to 3 of 3

Thread: Error during qmake hello.pro command execution

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2011
    Posts
    36
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1

    Default Error during qmake hello.pro command execution

    Hi All,
    I tried to use the following sample hello world program.

    Qt Code:
    1. #include "QApplication"
    2. #include "QLabel"
    3.  
    4. int main(int arg c, char* argv[])
    5. {
    6. QApplication app(argc, arv);
    7. QLabel *myLabel = new QLabel("Hello World");
    8. myLabel->show();
    9. return app.exec();
    10. }
    To copy to clipboard, switch view to plain text mode 

    1. Ran qmake -project and it created hello.pro file as expected.
    2. Ran qmake hello.pro, but it throws the following error,

    C:\Qt Samples\hello>qmake -project

    C:\Qt Samples\hello>qmake hello.pro
    Error processing meta file: c:\Qt\4.5.0\lib\qtmain
    Error processing meta file: c:\Qt\4.5.0\lib\qtmaind
    Error processing meta file: c:\Qt\4.5.0\lib\qtmain

    Could you tell me how to resolve this issue. Thanks.

    Regards,
    Sankar.
    Last edited by Lykurg; 9th February 2011 at 08:27.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Error during qmake hello.pro command execution

    Try to use
    Qt Code:
    1. #include <QApplication>
    2. #include <QLabel>
    To copy to clipboard, switch view to plain text mode 
    and how does your pro file looks like? Further, please use the code tags!

  3. #3
    Join Date
    Feb 2011
    Posts
    36
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1

    Default Re: Error during qmake hello.pro command execution

    Thanks Lykurg.

    I tried to modify the include statement as per your suggestion. But still I have the same problem.

    The hello.pro file is shown below for you reference,
    ################################################## ####################
    # Automatically generated by qmake (2.01a) Wed Feb 9 15:00:47 2011
    ################################################## ####################

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

    # Input
    SOURCES += hello.cpp

    Regards,
    Sankar.

Similar Threads

  1. Qmake command not recognized
    By Rakula in forum Installation and Deployment
    Replies: 2
    Last Post: 15th September 2014, 13:10
  2. Where is the command line for qmake commands?
    By Rakula in forum Installation and Deployment
    Replies: 1
    Last Post: 21st October 2010, 10:53
  3. Replies: 8
    Last Post: 27th October 2009, 09:07
  4. QMAKE run bash command
    By kemp in forum Qt Programming
    Replies: 8
    Last Post: 9th February 2007, 15:35
  5. Execution error
    By Shuchi Agrawal in forum Installation and Deployment
    Replies: 10
    Last Post: 9th February 2007, 12:12

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
  •  
Qt is a trademark of The Qt Company.