Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [solved] DLL Qt5Cored not Found.
QtWS25 Last Chance

[solved] DLL Qt5Cored not Found.

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 2.0k 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.
  • D Offline
    D Offline
    derrek.telops
    wrote on last edited by
    #1

    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
    0
    • D Offline
      D Offline
      derrek.telops
      wrote on last edited by
      #2

      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
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        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
        0

        • Login

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