Results 1 to 3 of 3

Thread: compile error

  1. #1
    Join Date
    Oct 2010
    Posts
    14
    Thanks
    7

    Default compile error

    Hi,
    I'm trying to compile a .exe with qmake command for my first QT application Hello.
    My hello.pro is
    Qt Code:
    1. TEMPLATE = app
    2. TARGET = hello
    3.  
    4. QT += core gui
    5.  
    6. HEADERS += hello.h
    7. SOURCES += main.cpp \
    8. hello.cpp
    9. FORMS += hello.ui
    10. RESOURCES +=
    11.  
    12. CONFIG += qt warn_on release
    13.  
    14. qmake -project
    To copy to clipboard, switch view to plain text mode 

    I get this error in the console:
    c:\Users\ ... \workspaceC++\hello\hello.pro:13: Parse Error ('qmake -project')
    Error processing project file: hello.pro

    What can I do?

    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: compile error

    This is not correct:
    Qt Code:
    1. RESOURCES +=
    To copy to clipboard, switch view to plain text mode 

  3. The following user says thank you to tbscope for this useful post:

    dmartino (8th December 2010)

  4. #3
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: compile error

    Remove
    Qt Code:
    1. qmake -project
    To copy to clipboard, switch view to plain text mode 
    from your pro file.
    Use in console/cmd qmake nameOfProjectFiles.pro
    In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
    The advance of computerization however, has not yet wiped out nations and ethnic groups.

  5. The following user says thank you to Talei for this useful post:

    dmartino (8th December 2010)

Similar Threads

  1. no compile error, but error on run with QMenu QAction
    By sincnarf in forum Qt Programming
    Replies: 4
    Last Post: 4th May 2011, 11:05
  2. Qt 4.4.0 compile error
    By MarkoSan in forum Installation and Deployment
    Replies: 10
    Last Post: 15th May 2008, 07:14
  3. Compile error with Qt3.2.3
    By redsprite in forum Installation and Deployment
    Replies: 1
    Last Post: 19th January 2007, 10:36
  4. error compile
    By mickey in forum General Programming
    Replies: 5
    Last Post: 27th June 2006, 22:21
  5. error compile
    By mickey in forum Qt Programming
    Replies: 22
    Last Post: 2nd March 2006, 09:42

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.