Why can't i start the "androidFa​ceDetectio​nAndTracki​ng"?

4 Ansichten (letzte 30 Tage)
I've started the first introductive example of the "Simulink Support Package for Android Devices" succesfully and i've also opened on Android Studio the folder ending with "ert_rtw", seeing all the java files and classes that implements this project.
But when i try to run on my Android Phone this example https://it.mathworks.com/help/supportpkg/android/ref/detect-and-track-face-on-an-android-device.html , i receive this type of error every time, and the folder "androidFaceDetectionAndTracking_ert_rtw" is always empty
Diagnostic Viewer:
Model Action Rebuild Reason =========================================================================================== androidFaceDetectionAndTracking Failed Code generation information file does not exist.
What can i do to solve the issue?
  2 Kommentare
Sruthi Yenugula
Sruthi Yenugula am 14 Jun. 2021
Can you provide the full message/error shown in the Diagnostic Viewer
Pietro Ventrella
Pietro Ventrella am 14 Jun. 2021
This is a screenshot of what appears in Diagnostic Viewer @Sruthi Yenugula

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Sutanu Maiti
Sutanu Maiti am 17 Jun. 2021
Can you please try mex setup [>>mex -setup c++] and then build model?
Find more details in below documentation:
https://www.mathworks.com/help/matlab/matlab_external/choose-c-or-c-compilers.html
  2 Kommentare
Pietro Ventrella
Pietro Ventrella am 17 Jun. 2021
Hi, thank you for the answer
I used the command [>>mex -setup c++] and it configured to use MinGW64 Compiler for C++ language
After this i built the model and then i got this error
I find out that OpenCV library requires Visual Studio 2015 (or later ) C++ Compiler, so i installed Visual Studio 2019 and then i reused [>>mex -setup c++] and i chose Visual Studio 2019 Compiler
When i built the model again i got the same error: "Generated code from your project uses OpenCV and requires that you use a supported C++ compiler"
What can i do more in order to fix this?
Pietro Ventrella
Pietro Ventrella am 29 Jun. 2021
I used [>>mex -setup] to select a compiler for the C language, instead of C++ and then the issue was fixed. Thank you for the help

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Vimal Rathod
Vimal Rathod am 16 Jun. 2021
Hello,
Few recommendation from myside based on the information you provided.
1) Verify the existance of the file which is to be used for code generation.
2) Check running the code generation by cutshorting the path to the file.
3) Also make sure the folders reaching to the file have proper name without spaces.
Refer to the following link containing similar answer to your question.

Kategorien

Mehr zu Android Devices finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by