Qt Forum

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

    [solved] DLL Qt5Cored not Found.

    Installation and Deployment
    2
    3
    1732
    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.
    • D
      derrek.telops last edited by

      Hello All,

      I was hoping someone could lend me a hand with this problem I am having.

      Goal #1: I am attempting to create an adaptable developement enviroment for work, so I would like to avoid directly adding paths into the PATH variable for the system.
      Goal #2: I want to avoid copying any dlls into the program folder, I would rather acess them through the added enviromental paths in Visual Studio.

      So with the Qt VS plugin I have the path for my QT folder set correctly to: C:\Qt\Qt5.1.1\5.1.1\msvc2012_64_opengl.
      My project has this set as its QT version( I have QT4 as well, but the 5.1.1 is selected in the plugin)
      Now using the default macro in VS for $(QTDIR) allows me to find both the .h files compiling, and the .lib files for linking, but it never finds the QT Dlls at run-time.
      The QT plugin appears to auto-add "PATH=$(QTDIR)\bin;..." to the start of my enviroment settings in configuration/debugging which is exactly what I want, but it doesn't seem able to find anything at run-time.

      Does anyone have any experience with this problem, or can someone help point me in the right direction?

      Just to confirm, I have found that if I copy the required QT5 dlls into the executable folder the application runs fine, but I want to avoid having to do this.

      Enviroment:
      Windows 7 64-bit
      Visual Studio C++ 2012 Professional
      Qt 5.1.1 64-bit pre-built with opengl.
      Qt Vs plugin 1.2.2

      1 Reply Last reply Reply Quote 0
      • D
        derrek.telops last edited by

        Update: Problem solved.

        In the end it had nothing to do with QT, I am also using MKL in the project, and its DLL path to MKL was within the "$(LocalDebuggerEnviroment)" Macro that had an error in it, and was then destroying my path at run-time. I changed over the following line to call MKL wiht a MKL Macro and everything works fine now. I was mislead into thinking the problem was QT by Qt5Cored.dll being the file that wasn't found.

        Thanks in any case.

        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi and welcome to devnet,

          Glad you found and thanks for sharing !

          Can you also update the thread title prepending [solved] ? So other forum users may know a solution has been 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 Reply Quote 0
          • First post
            Last post