Irrlicht.dll was not found.

105 views
Skip to first unread message

Utkarsh

unread,
Mar 26, 2025, 11:04:28 AMMar 26
to ProjectChrono
Hello,
Trying to build chrono using the instructions on this page. for a windows 11 machine. But after the build is complete the demos won't work with a error message irrlicht.dll was not found, even though the demos folder has the chrono.irrlicht.dll file in it. Please help. Thank you.

Best,
Utk

Dario Mangoni

unread,
Mar 26, 2025, 11:12:27 AMMar 26
to ProjectChrono
Hi Utk,
we recently changed how DLLs are handled in Chrono. We copy the DLLs only for the INSTALL tree not for the BUILD anymore.

In the page you referred there is a small section telling that:

  • Since many of the 3rd-party dependency packages create and install shared libraries, the following steps may be required:
    • on Linux, run ldconfig (you will likely need root permissions) to cache the necessary link to the newly created shared libraries or set the LD_LIBRARY_PATH environment variable
    • on Windows, add to the PATH environment variable the directories containing the package DLLs (otherwise, these DLLs have to be manually copied next to the binaries so that they can be found at run-time)
This means that you need to add the Irrlicht DLL folder to PATH if you are on Windows.

However, since you refer to Irrlicht you should have checked the dedicated Chrono::Irrlicht install guide... but you wouldn't have find anything about this. We should definitely remind the user about it

Dario

Utkarsh

unread,
Mar 26, 2025, 12:05:03 PMMar 26
to ProjectChrono
Dear Dario,
Thanks for your prompt reply. I am facing a new issue now. It cannot find the mkl dlls even after adding
C:\Program Files (x86)\Intel\oneAPI\mkl\2023.0.0\lib\cmake\mkl; to the PATH.
 I however think the issue is because I have not added the variables given in the Pardiso MKL module .
 For Windows:
<install_folder>/Intel/oneAPI/mkl/latest/redist/intel64
<install_folder>/Intel/oneAPI/compiler/latest/windows/redist/intel64_win/compiler
the reason being I cannot find those folders especially the redist. Thanks for the help.

Best,
Utk

Dario Mangoni

unread,
Mar 26, 2025, 12:37:00 PMMar 26
to ProjectChrono
Location of MKL DLLs may vary depending on your MKL version.

I highly recommend, as also suggested in the PardisoMKL installation guide, to make the first tests by running the demos using MKL through a "Intel oneAPI command prompt for Intel 64 for Visual Studio 2022".
You should find it among the installed software,
This command prompt already sets all the variables for you.

If this works I would still recommend to always start both your Visual Studio, your CMake etc, from such command prompt to avoid having to pollute your PATH envvar with hardcoded MKL paths.

Dario

Radu Serban

unread,
Mar 26, 2025, 3:36:49 PMMar 26
to ProjectChrono

Hi Utk,

 

The installation documentation for the PardisoMKL module needs a face lift. 

 

For now, as Dario mentioned, the easiest is to use the Intel command prompt, at least when you first configure Chrono with CMake (in other words, start cmake-gui from the Intel command prompt).  That will allow CMake to find all necessary dependencies if/when you enable the Chrono::PardisoMKL module. 

 

After that, you can proceed as Dario suggested and start Visual Studio from within the same Intel environment (as well as run Chrono programs for there).  But if you have added the correct MKL directory to the PATH environment variable, you don’t actually need to do that after the first CMake configuration of Chrono. Once that first configuration was done, you can skip the Intel command prompt (when running cmake-gui, or starting Visual Studio, or running Chrono demos). This is how I personally deal with the MKL stuff.

 

Having said that, the directory you mention (C:\Program Files (x86)\Intel\oneAPI\mkl\2023.0.0\lib\cmake\mkl) is *not* the correct path to the DLLs that you need at run-time.  That should be something like: C:\Program Files (x86)\Intel\oneAPI\mkl\latest\redist\intel64 (just like the Chrono documentation says).  If you do not find that on your machine, you may have an incomplete Intel OneAPI installation.

 

Best,
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 visit https://groups.google.com/d/msgid/projectchrono/7c1e2a6c-26df-4528-b095-f2e7d2bfba17n%40googlegroups.com.

Utkarsh

unread,
Mar 27, 2025, 5:15:07 AMMar 27
to ProjectChrono
Dear Radu, Dario,
Thanks for your help.

Best,
Utk
Reply all
Reply to author
Forward
0 new messages