libzstd.dll error on Windows

Discussion about building and installing Elmer
Post Reply
blindmasher
Posts: 1
Joined: 04 Oct 2022, 21:06
Antispam: Yes

libzstd.dll error on Windows

Post by blindmasher »

Hi all,

I am trying to compile a UDF on Windows but I'm getting the error:
"The code execution cannot proceed because libzstd.dll was not found. Reinstalling the program may fix this problem."

I've installed the latest "ElmerFEM-nogui-nompi-Windows-AMD64.exe" version. I tried re-installing to no avail.

My command was:
elmerf90 -o test.dll test.f90
"C:\Program Files\Elmer 9.0-Release/stripped_gfortran/bin/x86_64-w64-mingw32-gfortran.exe" -o test.dll test.f90 -fallow-argument-mismatch -DCONTIG= -DMINGW32 -DWIN32 -DHAVE_EXECUTECOMMANDLINE -DUSE_ISO_C_BINDINGS -DUSE_ARPACK -O3 -DNDEBUG -O3 -shared -I"C:\Program Files\Elmer 9.0-Release/share/elmersolver/include" -L"C:\Program Files\Elmer 9.0-Release/bin" -shared -lelmersolver

Has anyone else run into this problem before?

Thanks!
Rich_B
Posts: 421
Joined: 24 Aug 2009, 20:18

Re: libzstd.dll error on Windows

Post by Rich_B »

Hello,

What happens if you use the Elmer Windows installer with gui and with mpi?
Do you get the same error?

Rich.
Rich_B
Posts: 421
Joined: 24 Aug 2009, 20:18

Re: libzstd.dll error on Windows

Post by Rich_B »

Hello,

I just ran this test:
elmerfem\fem\tests\PoissonPFEM
using these commands:
elmerf90.bat Poisson.f90 -o Poisson.dll
elmergrid 1 2 square
elmersolver ptest.sif
I used the Windows installers from today, 05-Oct-2022, for both with gui/with mpi and without gui/without mpi.
Both versions ran to completion and passed the test.

Rich.
Rich_B
Posts: 421
Joined: 24 Aug 2009, 20:18

Re: libzstd.dll error on Windows

Post by Rich_B »

One more thing to check, on my laptop, libzstd.dll exists in C:\Program Files\Elmer 9.0-Release\bin.

Rich.
kevinarden
Posts: 2237
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: libzstd.dll error on Windows

Post by kevinarden »

Either the file is missing ot the path is wrong. You can check for the existence of the file by searching for it by name.
If it exists then check the path settings using
https://www.nic.funet.fi/pub/sci/physic ... dElmer.pdf
Rich_B
Posts: 421
Joined: 24 Aug 2009, 20:18

Re: libzstd.dll error on Windows

Post by Rich_B »

Hello,

I tried again, this time doing a complete uninstall and finished up by deleting the C:\Program Files\Elmer 9.0-Release folder. Then after installing the no gui no mpi version, the PoissonPFEM test passes, working normally. Interestingly with the no gui/no mpi version, the subject file, libzstd.dll, no longer exists in the C:\Program Files\Elmer 9.0-Release\bin folder.

Then after installing Elmer with gui/with mpi, the subject file now exists in the bin folder.

Rich.
PierreAntonetti
Posts: 22
Joined: 06 Oct 2023, 14:31
Antispam: Yes

Re: libzstd.dll error on Windows

Post by PierreAntonetti »

Hi,

I got the same error, It'd be great to add this fille in the nogui nompi exe/zip setup file.
You can get the file under msys/mingw64 :

Code: Select all

pacman -S mingw-w64-i686-zstd
The dll file is located at /mingw/bin/libzstd.dll
Attachments
libzstd.zip
(483.57 KiB) Downloaded 29 times
Post Reply