Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Loading Qt Dll's in a separate directory of executable file
QtWS25 Last Chance

Loading Qt Dll's in a separate directory of executable file

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 208 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RiLw
    wrote on last edited by
    #1

    I'm currently working on an Windows extension for another another program's executable so I would prefer to not any .dll's into their executable's directory. What options are available for me? I understand that adding to the PATH will fix this issue however, I'm not convinced that is the best way to go about it.

    I have tried delay loading Qt's dll's however Qt5Widget seems to import a QMetaObject struct with the following error
    fatal error LNK1194: cannot delay-load 'Qt5Widgets_v142.dll' due to import of data symbol '"__declspec(dllimport) public: static struct QMetaObject const QWidget::staticMetaObject" (_imp?staticMetaObject@QWidget@@2UQMetaObject@@B)'; link without /DELAYLOAD:Qt5Widgets_v142.dll

    Any pointers would be appreciated!

    Thanks,
    RL

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      If the Qt DLLs are in the same location as your extension DLL then they should be fine. How does the other program find extensions to load? In many cases the program will have an extension search path that may be configurable in-program or through an environment variable. This could allow you to put all your executables elsewhere.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved