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?
EXE from Simulink Model (made with PackNGo) returns "Could not open library: tovideodevice.dll
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Varun Bansal
el 3 de Mayo de 2024
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
Respuestas (1)
Shuba Nandini
el 18 de Ag. de 2023
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!
0 comentarios
Ver también
Categorías
Más información sobre Code Generation, GPU, and Third-Party Support en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!