Results 1 to 2 of 2

Thread: QMAKESPEC has not been set

  1. #1
    Join Date
    Jun 2007
    Location
    Secret
    Posts
    10
    Platforms
    Unix/X11 Windows

    Default QMAKESPEC has not been set

    Dear all,
    I am very new to Qt,
    I am working on SuSe 10.1, K.D.E 3.5.1

    Here I want to run a simple Qt program..

    Can you please help me..

    linux:~/hello # /root/qt_src/qt/bin/qmake -project

    linux:~/hello # /root/qt_src/qt/bin/qmake -o Makefile
    QMAKESPEC has not been set, so configuration cannot be deduced.
    Error processing project file: /root/hello/hello.pro
    You have new mail in /var/spool/mail/root

    linux:~/hello # ls
    hello.cpp hello.pro

    linux:~/hello # /root/qt_src/qt/bin/qmake -o hello.pro
    QMAKESPEC has not been set, so configuration cannot be deduced.
    Error processing project file: /root/hello/hello.pro

    Thanking you in advance,

    Regards
    Jivan

  2. #2
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QMAKESPEC has not been set

    Typically you don't need to set this variable. But I keep stumbling across cases, like yours, where qmake demands it.

    The makespec for SuSE is linux-g++. You can set this as an environment variable in your .bashrc (or elsewhere) by adding the line:

    export QMAKESPEC=linux-g++

    Or you can use the -spec option to qmake:

    qmake -spec linux-g++ -o Makefile

Similar Threads

  1. QMAKESPEC has not been set, so configuration cannot be deduced
    By Rekha in forum Installation and Deployment
    Replies: 11
    Last Post: 6th November 2012, 18:48
  2. QMAKESPEC in pro file
    By lni in forum Qt Programming
    Replies: 2
    Last Post: 14th May 2007, 19:46
  3. Replies: 1
    Last Post: 5th April 2007, 10:02
  4. How to set QMAKESPEC ??
    By Shuchi Agrawal in forum Qt Programming
    Replies: 14
    Last Post: 14th March 2007, 09:23
  5. what is this QMAKESPEC and hw to set it?
    By neomax in forum Qt Programming
    Replies: 2
    Last Post: 13th March 2007, 07:04

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.