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. Mat file API using C++ and Qt
Forum Updated to NodeBB v4.3 + New Features

Mat file API using C++ and Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt5matlabicu
6 Posts 2 Posters 2.6k 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.
  • pmathia0P Offline
    pmathia0P Offline
    pmathia0
    wrote on last edited by pmathia0
    #1

    Hi,
    I have problem running "Read MAT-File in C/C++" from Matlab examples.
    https://www.mathworks.com/help/matlab/matlab_external/creating-a-mat-file-in-c.html

    When I compile it from matlab command window using mex, everythink is ok, mat file is created.
    When I use the same msvc compiler parameters in command line, everything works fine.
    When I create simple console application in VS2015 and setup the project to use mat-file api (includes, libs), everything works.

    However, when I try to setup my QT application project to use mat-file api, it builds, but running the app gives me this error:
    https://stackoverflow.com/questions/36409340/mat-file-api-using-c-and-qt
    Is there some problem with conversion from Unicode? I read some article that Qt is abandoning ICU converters.

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

      Hi and welcome
      The link to the error demands login so people cannot see it :)

      1 Reply Last reply
      0
      • pmathia0P Offline
        pmathia0P Offline
        pmathia0
        wrote on last edited by
        #3

        Thanks for reply, should be ok now :)

        mrjjM 1 Reply Last reply
        1
        • pmathia0P pmathia0

          Thanks for reply, should be ok now :)

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @pmathia0
          super.
          One thought, Could there be more that one version of that DLL ?
          So that in Creator it somehow gets another one ?

          pmathia0P 1 Reply Last reply
          0
          • mrjjM mrjj

            @pmathia0
            super.
            One thought, Could there be more that one version of that DLL ?
            So that in Creator it somehow gets another one ?

            pmathia0P Offline
            pmathia0P Offline
            pmathia0
            wrote on last edited by
            #5

            @mrjj I haven't found another one. I have only one version of Matlab installed - 2016a, it's only 64bit version. I have completely reinstalled my windows because I had 2015 version before and saw some posts in Matlab forum that it could be the problem. But reinstall didn't solve anything. :(
            And I'm using Visual Studio 2015 with Qt addin.
            I think that I'll use .csv files for now in my semestral project, and maybe later when there's some time left, I'll try to solve this issue with mat files...

            1 Reply Last reply
            1
            • mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Its odd then.
              sounds like a good plan.
              csv should be fast to get up and running. :)

              1 Reply Last reply
              1

              • Login

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