question

JohnJacko-9680 avatar image
0 Votes"
JohnJacko-9680 asked JohnJacko-9680 answered

Visual Studio application using glfw, freetype, and ffmpeg needs bz2.dll to start

I'm trying to run a Program I'm writing that uses various technologies such as glfw, ffmpeg, freetype 2.0, glew and compiles with Visual C++. Operating System is Windows 10, IDE is Visual Studio 2022.

I'm able to compile it. However, I'm unable to get it to run on the grounds that it needs zlib1.dll in order to run. Right now, I'm focused on the 64-bit version of the Program.

I've tried installing "Microsoft Visual C++ redistributable 2015-2019".

Is there a place where I can get a legitimate copy of the DLL (was bz2.dll used by MS and then removed at some point)?

If not, is there a way to figure out which dependency of mine uses bz2.dll as a dependency? I know of dumpbin /dependents (PE file here) but it only lists the immediate dependencies and the tree can get pretty long.

c++vs-debuggingvs-msbuild
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JohnJacko-9680 avatar image
0 Votes"
JohnJacko-9680 answered

Psuedo-Answer to my question. I was not able to find a valid version of bz2.dll. However, I discovered that my previous FreeType Dependency was the dependency requesting the bz2.dll. I was able to download a separate version of FreeType that I was able to compile. I was able to integrate this new version into my project and my Program began running.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.