Results 1 to 3 of 3

Thread: Qt compilation windows with g++

  1. #1
    Join Date
    Aug 2007
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt compilation windows with g++

    I have a problem compiling Qt's programs under windows from the cmd line in windows XP. I'm using Qt 4.3.0 evals version. To test Qt I use the simple hello world example. Compile using qmake -project and then qmake -spec win32-g++ . I check the makefile and the right path for the g++ lib is there. When I type make to generate the exe file I get an error messange:
    "Makefile:66: *** multiple target patterns. Stop."
    Any ideas what I'm doing wrong?
    Cheers,
    Ben

  2. #2
    Join Date
    May 2007
    Location
    Lublin, Poland
    Posts
    345
    Thanks
    40
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt compilation windows with g++

    Hi,

    Maybe you've compiled Qt for/using a different compiler than g++?

    Maverick
    Qt allows you to use everything you want
    wysota
    --------------------------------------------------------------------------------
    #if defined(Q_OS_UNIX) && defined(QT_DEBUG)
    abort(); // trap; generates core dump
    #else
    exit(1); // goodbye cruel world
    #endif

  3. #3
    Join Date
    Jul 2007
    Posts
    166
    Thanks
    25
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt compilation windows with g++

    Hi,
    You check the version on MinGW in your system. I think you need to update the MinGW in your system. Please google it in net. . Because I am not remember the link. After that you search " qmake.exe" in your system. Copy the qmake.exe from your QT directory to then MinGW folder, before you take a copy of the old one. And you set the PATH vriable as proper. I am sure that, these three things are your probs.
    You first check these three things.

Similar Threads

  1. Replies: 10
    Last Post: 25th February 2007, 01:23
  2. Deploying with MySQL support under Windows
    By KShots in forum Installation and Deployment
    Replies: 1
    Last Post: 12th October 2006, 10:19
  3. converting unix exe to windows binary
    By deekayt in forum General Programming
    Replies: 2
    Last Post: 17th September 2006, 02:00
  4. Experience using KDevelop with Cygwin under windows
    By high_flyer in forum General Discussion
    Replies: 4
    Last Post: 11th September 2006, 17:50
  5. MDI windows without QWorkspace
    By Big Duck in forum Newbie
    Replies: 2
    Last Post: 16th June 2006, 18:15

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.