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. Using Qt console application with MathKernelLib
Forum Updated to NodeBB v4.3 + New Features

Using Qt console application with MathKernelLib

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

    Hi,
    I have been writing Qt console application since a while and now I want to integrate some functionalities within this project. The method I want to add is based on some of Math Kernel Library. I am using Visual Studio 2019. Both projects work as separate code. While copying the method into Qt console app code I get KernelBase.dll related error: "Exception thrown at 0x00007FFCFCA8A839 (KernelBase.dll) in Qt_consoleapp.exe: 0xC06D007E: Module not found (parameters: 0x000000E264735100).". It appears while launching mkl_malloc - an equivalent of malloc windows built-in function.
    Has someone experienced similar problems with using both tools together? Thanks in advance for each of the comments!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Where do you have MKL installed ?

      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
      • J Offline
        J Offline
        JohnCu
        wrote on last edited by
        #3

        Hi,
        I have it installed on AMD cpu and in not default directory. Is something wrong with that? Maybe you mean something else, then please be more precise :)
        regards

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          AMD or Intel doesn't play a role, they both provide x86/x86_64 architectures.

          Since you are on Windows, your application has to first find the dlls matching the libraries you linked to. Therefore, you have two choices:

          1. copy the MKL dlls in the same folder as your executable or
          2. modify the PATH environment variable so it also contains the path to the folder containing the dlls.

          For number 2, go to the Run part of the Project panel and modify there the variable. Do not do it system wide.

          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
          4

          • Login

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