Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Qt Creator Shared Library at runtime

    Tools
    qt creator shared library visual studio
    1
    1
    661
    Loading More Posts
    • 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.
    • T
      tomkulaga last edited by

      Hi All,

      When I create a project in QtCreator and it contains shared libraries (DLL) and an executable, and I compile with MSVC and run, it works just fine. When I then take that project into Visual Studio, it compiles but at runtime it complains about the missing DLLs part of my project. I have the Qt5 DLLs in my path so it doesn't complain about them. So it seems that Qt Creator/ qmake + msvc is somehow adding the location of the shared libraries to the debugging "environment path", so the exe can locate them and it works. This step seems to no be done in Visual studio when I import the qmake project across.

      Does anyone know what the difference is and how can i get it to work without modifying the .pro files specifically for VS?

      Thanks,

      1 Reply Last reply Reply Quote 0
      • First post
        Last post