MKL and Matlab

113 views
Skip to first unread message

Ashwin Sankar

unread,
Oct 30, 2023, 4:20:36 AM10/30/23
to ProjectChrono
Hello all,

First off, thank you to the developers for building such an amazing platform.
I had a couple questions relating to the Vehicle Demos. 
1. I have been trying to build a tracked vehicle model, and the first step was to look at the demos and understand how they work. However, everytime I try to run a tracked vehicle demo (All M113/Marder demos, including the JSON builds), I get an error message saying mkl_rt.2.dll is missing. I assume this is something to do with the Pardiso solver, and I have tried to follow all the steps to build environment variables as described, but it does not seem to have any effect.
2. Also, while running a co-simulation with Matlab, I get an error saying libmx.dll and libeng.dll were not found. Is this due to a clash in version compatibility? I have checked the extern directory of my Matlab SDK and the only .dll files there are libMatlabDataArray.dll and libMatlabEngine.dll. I did manage to find libmx and libeng but within a whole different folder within the Matlab root directory and that has confused me.
For reference, I am using Matlab 2022b and I have added my CMakeCache below. Any advice about this would be helpful.
Thank you so much for your time!

-Ashwin
CMakeCache.txt

Radu Serban

unread,
Oct 30, 2023, 5:11:24 AM10/30/23
to ProjectChrono

Ashwin,

 

Neither issue is Chrono-related, but rather these are your typical Windows problems where the system must be able to find all required DLLs. You can do that by adding the path to where the necessary DLLs are to your PATH environment variable.  You need to consult the documentation for the 3rd party libraries to understand where these are located (or else follow their installation instructions to properly set them up on your system).

 

For reference, here are the relevant entries in the PATH environment variable on my Windows machine:

C:\Program Files (x86)\Intel\oneAPI\mkl\latest\redist\intel64

C:\Program Files\MATLAB\R2019a\bin\win64

 

You may need additional entries for each one of those and the proper paths will depend on what/how you installed these external packages. Again, this is *not* a Chrono installation issues, but rather an MKL and Matlab installation problem. 

 

--Radu

--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectchron...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/b9f4c583-cf3e-416b-b437-5b3f4a8ebed9n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages