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. How to add custom dll for windeployqt

How to add custom dll for windeployqt

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 431 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.
  • S Offline
    S Offline
    shokarta
    wrote on last edited by
    #1

    Hello guys,

    After release my app and then using tool windeployqt to copy all dlls into the folder, everything works great (on my own pc), but then I copy the app into another PC then MySQL is not working because libmysql.dll from Windows/System32 was not copied into the folder of app.
    Therefore if I manuály copy this dll there and then copy whole folder to another PC, everything works great...

    So what I am asking for is if I can somehow add something like LIBS += to my pro to include path for this dll so it would be copied next time i do windeployqt?

    Thank you

    raven-worxR 1 Reply Last reply
    0
    • S shokarta

      Hello guys,

      After release my app and then using tool windeployqt to copy all dlls into the folder, everything works great (on my own pc), but then I copy the app into another PC then MySQL is not working because libmysql.dll from Windows/System32 was not copied into the folder of app.
      Therefore if I manuály copy this dll there and then copy whole folder to another PC, everything works great...

      So what I am asking for is if I can somehow add something like LIBS += to my pro to include path for this dll so it would be copied next time i do windeployqt?

      Thank you

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @shokarta
      the mysql lib is a runtime dependency and thus is not picked up by windeployqt tool
      you can write a simple script which calls windeployqt and additionally copies all additional libraries.
      Then simply call this script when needed.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2

      • Login

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