Results 1 to 10 of 10

Thread: Adding Qt to Path not working

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Adding Qt to Path not working

    Oh my God! I am very sorry, forget about src. It's just crap, in a hurry I mixed things...

    So let's start form the beginning! With which compiler do you have build your application?

  2. #2
    Join Date
    Jul 2008
    Posts
    48
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    14
    Thanked 1 Time in 1 Post

    Default Re: Adding Qt to Path not working

    I am building with QtCreator, and there are two compilers:

    Qt 4.7.0 and Qt in Path. Both are compiling and the application runs fine from QtCreator

    I have included this in the beginning of my user path:

    C:\Qt\2010.05\mingw\bin;C:\Qt\2010.05\qt\bin;C:\lc c\bin;C:\cygwin\bin;... etc.

    Not sure if the other stuff affects it, but I think it stays with the first executables it sees. I am still unable to double click and run my application without the same error.

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

    Iderval (6th May 2011)

  4. #3
    Join Date
    May 2010
    Location
    Holguín City, Cuba
    Posts
    13
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Re: Adding Qt to Path not working

    Check if there are any other library QtCore.dll in c: / windows/system32 or c: / windows.

    and ... just to test, copy QtCore.dll, QtGui.dll and others that your application uses to the folder where the executable of your application and run it again.

  5. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 334 Times in 317 Posts

    Default Re: Adding Qt to Path not working

    Try to place the C:\Qt\2010.05\qt\bin path before other paths in the PATH env variable and see if it works.
    Probably it is getting C:\Qt\2010.05\mingw\bin first and picking libraries from there.

  6. The following user says thank you to aamer4yu for this useful post:

    Iderval (6th May 2011)

  7. #5
    Join Date
    May 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    3

    Default Re: Adding Qt to Path not working

    Guys you are awesome!
    I had the same proble in deploying in release mode. I had even tried to put C:\Qt\2010.05\qt\bin in the PATH and nothing happend until I tried the suggestion of aamer4yu to put the path before any other.
    I don't know why but it worked!
    Thanks !!!

Similar Threads

  1. QWebView Images with UNC path not working
    By michael. in forum Qt Programming
    Replies: 1
    Last Post: 2nd March 2012, 08:46
  2. Adding 3rd Party framework path in pro file
    By munna in forum Qt Programming
    Replies: 4
    Last Post: 9th November 2009, 10:42
  3. adding directory to the path
    By threaderslash in forum Installation and Deployment
    Replies: 2
    Last Post: 2nd April 2009, 17:13
  4. adding QAction to QDialog is not working
    By sanjayshelke in forum Qt Programming
    Replies: 3
    Last Post: 13th August 2008, 09:39
  5. Replies: 2
    Last Post: 3rd April 2007, 19: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
  •  
Qt is a trademark of The Qt Company.