Results 1 to 5 of 5

Thread: dll's needed to launch application

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    valdemar593 Guest

    Default dll's needed to launch application

    Hello people. I wrote an application and it needs mingwm32.dll .... to launch. I've copied them all to the application directory and that works. But that is not the way I want. I want those dlls to be situated in my application's /lib subdirectory. How should I tell my application about those dlls?

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: dll's needed to launch application

    It is not possible for application to do so, it is managed by OS. The dlls need to be either in the same directory as the application's running directory, or in one of the directories configured in system path.

    You can have dlls in /lib (or wherever you want), if you access them by QLibrary (which in your case I assume is not the case)

  3. #3
    valdemar593 Guest

    Default Re: dll's needed to launch application

    Thanks for your answer Santosh. Yes you are quite right that is not the case. Can you explain how I can edit the PATH variable with Qt tools?

  4. #4
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: dll's needed to launch application

    PATH variable is something which is manged by OS, not by Qt

  5. #5
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: dll's needed to launch application

    It is possible to place that DLL inside your application executable, but I forget how. If you really don't want it in the same directory as your executable researching that may be an option.

Similar Threads

  1. Application Launch Extremely Slow
    By SKolaMunn in forum Qt Programming
    Replies: 1
    Last Post: 17th October 2011, 17:01
  2. application fails to launch
    By freekill in forum Qt Programming
    Replies: 12
    Last Post: 7th March 2011, 15:14
  3. Minimize application on launch ..?
    By hakermania in forum Newbie
    Replies: 2
    Last Post: 2nd September 2010, 07:30
  4. How to launch an application automatically ?
    By merry in forum Qt Programming
    Replies: 5
    Last Post: 16th January 2009, 15:26
  5. Application crashes at launch-time
    By Salazaar in forum Newbie
    Replies: 70
    Last Post: 22nd June 2007, 01:11

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.