i want call MATLAB Script from QT Creator i use ENGINE MATLAB , i add the libeng and libmx librairies in QT , i test a simple example , in executin it appears a black windows whit the error message : DURING STARTUP PROGRAM EXITED WHIT CODE 0xC0000135 the program is not being run
my file .pro :
QT += datavisualization
QT+=widgets
QT        += script
QT        -= gui
TARGET     = QtScript
CONFIG    += console
CONFIG    -= app_bundle
 
TEMPLATE = app
 
SOURCES += main.cpp
 
LIBS += -L"C:/Program Files (x86)/MATLAB/R2013a/extern/lib/win32/microsoft" -llibeng \
        -L"C:/Program Files (x86)/MATLAB/R2013a/extern/lib/win32/microsoft" -llibmx
 
INCLUDEPATH += "C:/Program Files (x86)/MATLAB/R2013a/extern/include"
file main.cpp :
#include <QApplication>
#include <stdio.h>
#include<iostream>
#include "engine.h"
int main(int argc, char **argv)
{
Engine *eng = engOpen("NULL");
engEvalString(eng,"testPlot.m");
}
execution result:
error message :

Réponses (1)

Guillaume
Guillaume le 3 Août 2018

0 votes

0xC0000135 is possibly STATUS_DLL_NOT_FOUND. Make sure all the required dlls are installed. If necessary use procmon to see which dlls your program attempts to load and fail to find.

3 commentaires

sou hail
sou hail le 3 Août 2018
wich dll ,the file libeng.dll is exists as well i installed microsoft .net framework but without result
Guillaume
Guillaume le 3 Août 2018
As said, use procmon to see which dll your program is looking find and failing to find.
sou hail
sou hail le 3 Août 2018
i dont know how to use procmon !!!!!!

Connectez-vous pour commenter.

Question posée :

le 3 Août 2018

Commenté :

le 3 Août 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by