フィルターのクリア

EXE from Simulink Model (made with PackNGo) returns "Could not open library: tovideodevice.dll

6 ビュー (過去 30 日間)
Hey,
I've been working on a simulink model and not converted it to an executeable using the PackNGo function.
Everything is working fine on my Laptop and the executeable runs like a charm. I cross tested it on another Desktop PC with Matlab installed - no problems.
Now moving the executeable on to a Car PC running windows but no matlab installation - i get the error message:
Could not open library: tovideodevice.dll
To run the generatred code outside the MATLAB environment, use the PackNGo Function
Could not open library: slhostlibcanreceive.dll
To run the generatred code outside the MATLAB environment, use the PackNGo Function
Could not open library: slhostlibcanreceive.dll
To run the generatred code outside the MATLAB environment, use the PackNGo Function
** starting the model **
Could not open library: slhostlibcanreceive.dll
To run the generatred code outside the MATLAB environment, use the PackNGo Function
Afterwards the executeable closes down.
I've tried installing the Matlab runtime (also 2021b, same version as i compiled the executeable on) with no success.
The DLLs mentioned in the error messages are all present in the same directory as the executeable file is.
Any ideas what might be causing this / how to fix it?
  2 件のコメント
Dominik Pahlke
Dominik Pahlke 2023 年 6 月 29 日
As of now my theory would be that the issue is caused by the Windows LTSC Running on the Car PC. Is there any known issues with the libraries / additional libraries required which are not per default available in Windows LTSC?
Varun Bansal
Varun Bansal 2024 年 5 月 3 日
I have same issue, generated code with pack checkbox checked.. when I run generated exe, gives me error
Could not open library: slhostlibcanreceive.dll.
To run the generated code outside the MATLAB environment, use the packNGo function.
I am using 2023b

サインインしてコメントする。

回答 (1 件)

Shuba Nandini
Shuba Nandini 2023 年 8 月 18 日
Hello,
It is my understanding that you are unable to load the executable file on the destination environment even when MATLAB is installed. As suggested by the error message, the "packNGo" function packages all the relevant files including the prebuilt DLL files in a compressed ZIP file so that you can relocate, unpack, and rebuild your project in another development environment.
If MATLAB or MATLAB Runtime are installed on the machine and you are running the executable, you can also set the system environment, instead of manually copying the DLLs from the packNGo archive.
You may use the following command prompt to set the environment variables from terminal:
set PATH=%PATH%; %MATLABROOT%\bin\win64
For more details regarding this workflow, and general information on how to run a generated executable outside MATLAB, please refer to the documentation page below:
I hope this helps!

Community Treasure Hunt

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

Start Hunting!

Translated by