Results 1 to 3 of 3

Thread: Where are .dlls searched for?

  1. #1
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    387
    Thanks
    101
    Thanked 15 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Where are .dlls searched for?

    Hi There,

    I frequently use an external library, which I usually compile to a static library and then link it with my project. I do this on both, Linux and Windows. For some reason on Windows it also needs a dynamic linked library (.dll), which so far I always have to copy manually to the directory, where the executable is. I would much rather somehow specify an additional location, where .dlls are searched for, so that I can leave it one designated place. Is there a way I can do this? Something in the .pro file?

    Thanks
    Cruz

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Where are .dlls searched for?

    On Windows dlls are searched in places added to Path environment variable, so you need to add a path to your dll to Path or copy your dll to some directory from Path.
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

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

    Cruz (15th October 2010)

  4. #3
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    387
    Thanks
    101
    Thanked 15 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Where are .dlls searched for?

    Alright that makes it very clear. Not quite what I was looking for, but I can see that there is no way around copying or PATH hacking. Thanks mate!

Similar Threads

  1. Linking to VB6 dlls
    By drmath in forum Qt Programming
    Replies: 0
    Last Post: 17th September 2010, 16:00
  2. Error using dlls
    By HelderC in forum Newbie
    Replies: 1
    Last Post: 15th March 2010, 22:58
  3. suffix for qt dlls
    By jobrandt in forum Installation and Deployment
    Replies: 6
    Last Post: 11th April 2008, 09:59
  4. Additional Library Directories Not Searched
    By TheGrimace in forum General Programming
    Replies: 1
    Last Post: 11th September 2007, 15:50
  5. Qt and dlls ?
    By probine in forum Qt Programming
    Replies: 4
    Last Post: 15th December 2006, 14:12

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.