Results 1 to 3 of 3

Thread: First Day with Qt: Makefile: ***Multiple target Patterns. stop.

  1. #1
    Join Date
    Mar 2012
    Location
    Pakistan
    Posts
    5
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy First Day with Qt: Makefile: ***Multiple target Patterns. stop.

    Hi guys,
    I have medium level experience of programming in C++. Today I got a very small project assignment in University. For that I want to use Qt to connect with MySQl for basic data storage and retrieval. But unfortunately I am stuck at the very first level of compiling and running a hello world type program in Qt.
    I have Qt SDK 4.8.0 installed on Windows 7.
    I have placed the following source code in a file named: GUITextEdit.cpp
    Qt Code:
    1. #include <QApplication>
    2. #include <QTextEdit>
    3.  
    4. int main( int args, char **argv )
    5. {
    6. QApplication myApp( args, argv );
    7. QTextEdit textedit;
    8.  
    9. textedit.show();
    10. return myApp.exec();
    11. }
    To copy to clipboard, switch view to plain text mode 
    Here is what happens when I try to compile this program.
    line no. 66 of the generated Makefile is:
    Makefile: GUITextEdit.pro c:/QtSDK/Desktop/Qt/4.8.0/mingw/mkspecs/default/qmake.conf c:/QtSDK/Desktop/Qt/4.8.0/mingw/mkspecs/qconfig.pri \
    I also have netbeans 7.1 installed with cygwin for my usual C++ ( and java ) programming. Could it be a reason of this problem.
    Please help me and tell what could be a reason of this problem.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: First Day with Qt: Makefile: ***Multiple target Patterns. stop.

    Try mingw32-make instead of make.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    Anas (27th March 2012)

  4. #3
    Join Date
    Mar 2012
    Location
    Pakistan
    Posts
    5
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: First Day with Qt: Makefile: ***Multiple target Patterns. stop.

    Thank you very much .. it worked!!

Similar Threads

  1. Replies: 7
    Last Post: 12th September 2012, 06:42
  2. Replies: 1
    Last Post: 5th March 2011, 18:23
  3. Replies: 1
    Last Post: 21st January 2008, 17:26
  4. mingw32-make : multiple target patterns error
    By tsemer in forum Installation and Deployment
    Replies: 2
    Last Post: 6th November 2007, 14:54
  5. Multiple target patterns in Makefile
    By mea36 in forum Newbie
    Replies: 12
    Last Post: 15th November 2006, 07:47

Tags for this Thread

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.