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. external library
Forum Updated to NodeBB v4.3 + New Features

external library

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 316 Views 1 Watching
  • 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.
  • D Offline
    D Offline
    dauriac
    wrote on last edited by
    #1

    I am using QtCreator to create an app using Qt6.5 and an external library (modbus) under msys2 in windows10.
    I installed the external library with pacman, that I added to my project cliking in the .pro file. It compiles and links, but I can't run it neither in QtCreator, nor from the command line. I get the following error:
    The code execution cannot proceed because libmodbus-5.dll was not found. Reinstalling the program may fix this problem.
    Which program should be reinstalled ? Where does the "-5" suffix from the expected library comes from ?
    Thank you a lot for any help !

    SGaistS 1 Reply Last reply
    0
    • D dauriac

      I am using QtCreator to create an app using Qt6.5 and an external library (modbus) under msys2 in windows10.
      I installed the external library with pacman, that I added to my project cliking in the .pro file. It compiles and links, but I can't run it neither in QtCreator, nor from the command line. I get the following error:
      The code execution cannot proceed because libmodbus-5.dll was not found. Reinstalling the program may fix this problem.
      Which program should be reinstalled ? Where does the "-5" suffix from the expected library comes from ?
      Thank you a lot for any help !

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Go to the Run part of the Project panel and there modify the PATH environnement variable to include the path of the folder where this dll can be found.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dauriac
        wrote on last edited by
        #3

        Thank you for your answer.
        Unfortunately it did not work since, according to the error message, the "missing" library is libmodbus-5.dll while the only library I mentionned in the .pro file libmodbus.dll.a without "-5" . I wonder how this "-5" is introduced.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dauriac
          wrote on last edited by
          #4

          Ok I found the problem. It turns out that there is a library libmodbus-5.dl.a which is strangely located in the /bin directory . So I added this directory /bin in the PATH, and now it works fine.
          Thank you very much for your help SGaist !

          1 Reply Last reply
          0
          • D dauriac has marked this topic as solved on

          • Login

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