Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Unable to find .h files from MATLAB in a QT Creator Project

Unable to find .h files from MATLAB in a QT Creator Project

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
5 Posts 3 Posters 954 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.
  • T Offline
    T Offline
    tyleryoung210
    wrote on last edited by
    #1

    Hi everyone,

    I'm a certified noob when it comes to QT Creator and fairly new to C++ (I'm familiar with C and other common languages though). I found a project online that I am trying to have work that is ran through QT Creator with various C++ files. This project is trying to include header files I think that are from MATLAB after brief Googling like "matrix.h", "mex.h", and "engine.h", but QT is saying that it is unable to find the file. I am wondering if anybody knows what I'd need to do get rid of this error? So far I've tried installing MATLAB software on my computer and referencing it where need be in my project, but it hasn't gotten rid of these particular errors. If anyone could provide any assistance or help, I'd appreciate it!

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

      Hi and welcome to devnet,

      Do you have these headers in your Matlab installation somewhere ?

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

      T 2 Replies Last reply
      1
      • dheerendraD Offline
        dheerendraD Offline
        dheerendra
        Qt Champions 2022
        wrote on last edited by
        #3

        as @SGaist said, you must be having these header files in some directory of your system. Use INCLUDEPATH in Qt project file(.pro) file to specify where these files exist.

        Dheerendra
        @Community Service
        Certified Qt Specialist
        http://www.pthinks.com

        1 Reply Last reply
        1
        • SGaistS SGaist

          Hi and welcome to devnet,

          Do you have these headers in your Matlab installation somewhere ?

          T Offline
          T Offline
          tyleryoung210
          wrote on last edited by tyleryoung210
          #4

          @SGaist @dheerendra Hi there and thanks for the reply!

          The MATLAB installation does have the header files in it. I realized the INCLUDEPATH in the .pro file put in the path for the location of these header files and tried going to it in my terminal, only to realize a small typo needing to change /Applications/MATLAB_R2018b.app/extern/include/ to /Applications/MATLAB_R2018a.app/extern/include/. Changing that got rid of those errors. Thanks!

          1 Reply Last reply
          0
          • SGaistS SGaist

            Hi and welcome to devnet,

            Do you have these headers in your Matlab installation somewhere ?

            T Offline
            T Offline
            tyleryoung210
            wrote on last edited by
            #5
            This post is deleted!
            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