Results 1 to 2 of 2

Thread: My first Linux QT program wont compile

  1. #1
    Join Date
    Mar 2010
    Posts
    107
    Thanks
    22
    Qt products
    Qt4
    Platforms
    Windows

    Default My first Linux QT program wont compile

    Hello
    I have created a helloworld program
    I execute the following command

    qmake -project

    Followed by
    qmake qtprograms.pro

    This gives me the error
    QMAKESPEC has not been set, so configuration cannot be deduced.
    Error processing project file: qtprograms.pro

    couild someone please tell me what I am doing wrong?

    TIA

    Graham

  2. #2
    Join Date
    Oct 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: My first Linux QT program wont compile

    you can find the mkspecs in your QTDIR.
    Try something like:
    Qt Code:
    1. export QMAKESPEC='linux-g++'
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Replies: 3
    Last Post: 9th September 2010, 19:19
  2. how to statically compile a program with qt libs?linux platform
    By berlinud in forum Installation and Deployment
    Replies: 8
    Last Post: 27th August 2010, 16:38
  3. Cannot compile program- pls help
    By qtnewby in forum Newbie
    Replies: 7
    Last Post: 31st March 2010, 23:02
  4. Qt Opensource 4.5.2 wont compile
    By MarkoSan in forum Installation and Deployment
    Replies: 8
    Last Post: 26th November 2009, 06:56
  5. Compile general C++ program from Qt
    By srinivasj in forum Qt Programming
    Replies: 3
    Last Post: 30th December 2008, 08:19

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.