Results 1 to 13 of 13

Thread: I can't compile my program in windows!!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2006
    Location
    Shrewsbury, UK
    Posts
    97
    Thanks
    3
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I can't compile my program in windows!!

    Quote Originally Posted by wysota View Post
    Try changing DEPENDPATH to INCLUDEPATH. And don't use the slashdot, it's not needed.
    No its not needed, its just my style preference for include paths. I hoped that brevleq might have noticed that DEPENDPATH was the wrong choice for all the include folders. I also thought that he might have also noticed the discrepancy between \ used a path separator in the DEPENDPATH section (as well as line continuity) and / used in the HEADERS section. I hope that wysota agrees that you should use / to separate paths and \ as line continuation in qmake files. Or is this too many fish?

    Pete

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

    Default Re: I can't compile my program in windows!!

    I agree that patience is a virtue and I agree that trial & error and reading the docs can help much to prevent the loss of the virtue by people answering one's questions Definitely too many fish

  3. #3
    Join Date
    Aug 2007
    Posts
    64
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Red face Re: I can't compile my program in windows!!

    Thanks guys!!

    When I swap the DEPENDPATH to INCLUDEPATH the program compiled so well, but now I have another problem!!
    When I do a double click in the exe generated, a message is shown saying:

    This program couldn't be started cause mingwm10.dll wasn't found. The reinstall of application could solve this problem.

    but I have this dll in these directorys:

    c:\MinGW\bin
    c:\Qt\4.3.2\bin

    where should I put this dll? Should I reinstall MinGW?

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: I can't compile my program in windows!!

    Add a path to required dll to PATH environment variable.
    J-P Nurmi

  5. #5
    Join Date
    Aug 2007
    Posts
    64
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: I can't compile my program in windows!!

    ok, but...

    What's the name of file I should put the PATH variable?

  6. #6
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: I can't compile my program in windows!!

    When an application is launched, required DLLs (if any) are searched for in the current working directory and in paths listed in the PATH environment variable. Currently, as it says, mingwm10.dll cannot be found. So add "c:\MinGW\bin" to PATH so that it can be found.
    J-P Nurmi

Similar Threads

  1. Use VC2005 to compile Qt program (4.3.0)
    By firegun9 in forum Qt Programming
    Replies: 3
    Last Post: 8th June 2007, 16:04
  2. Porting my program to another windows machine !
    By probine in forum Qt Programming
    Replies: 1
    Last Post: 14th March 2007, 06:46
  3. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 04:19
  4. Project won't compile under Windows (works under Linux)
    By philski in forum Qt Programming
    Replies: 7
    Last Post: 14th September 2006, 15:29
  5. Replies: 4
    Last Post: 12th January 2006, 04:16

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.