Results 1 to 8 of 8

Thread: how does Qt knows Qt-dll path in windows

  1. #1
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default how does Qt knows Qt-dll path in windows

    hi
    I am using windows-xp. i have installed Qt in the E directory.When i create Qt programs and try to run it by double clicking ,i get errors stating that QtGui dlls are not found.After setting the path to Qt-dlls directory and running the program in command prompt works fine.

    But if i double click qt-assistant it gets executed without complaining about dlls.How does the assistant knows the dll path.i have checked the path environment variable,there is no information about qt dll's in it.

    How does the assistant knows qt-dlls path

  2. #2
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how does Qt knows Qt-dll path in windows

    Have you added a path to your Qt's bin (smth like E:\Qt\4.4.3\bin) to the the environment variable PATH?
    I'm a rebel in the S.D.G.

  3. #3
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default Re: how does Qt knows Qt-dll path in windows

    No. Thats my question
    How does Qt-assistant is able to detect the dlls with out specifying the path in PATH env.

  4. #4
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how does Qt knows Qt-dll path in windows

    QtAssistant finds these dlls because these dlls and QtAssistant itself are located in the same directory.
    I'm a rebel in the S.D.G.

  5. The following user says thank you to lyuts for this useful post:

    babu198649 (18th November 2008)

  6. #5
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default Re: how does Qt knows Qt-dll path in windows

    Good Catch,
    i should have noticed it.
    Is there a mechanism without specifying the path the application should be able to find the dlls .Similar to rpath in unix-like systems

  7. #6
    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: how does Qt knows Qt-dll path in windows

    The only alternative is to place the DLLs in a system-wide directory, like C:\Windows\System32

  8. #7
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default Re: how does Qt knows Qt-dll path in windows

    Thanks
    If i run a program from Qt Creator i dont need to place the dlls in system-wide directories or in the program's directory.

    How does this work.

  9. #8
    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: how does Qt knows Qt-dll path in windows

    It probably modifies the system path (hence the directory becomes "system-wide").

Similar Threads

  1. Problems with korean symbols in file path
    By Raistlin in forum Qt Programming
    Replies: 5
    Last Post: 6th April 2008, 13:59
  2. Windows not appearing in XP.
    By beardybloke in forum Qt Programming
    Replies: 7
    Last Post: 24th October 2007, 17:32
  3. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  4. Which path should I use?
    By Dark_Tower in forum Newbie
    Replies: 3
    Last Post: 8th April 2006, 12:09
  5. MinGW Windows Library Search Path
    By zztop in forum Qt Programming
    Replies: 4
    Last Post: 26th March 2006, 15:18

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.