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

John Jacko 21 Reputation points
2022-09-21T01:59:04.92+00:00

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.

Developer technologies | Visual Studio | Debugging
Developer technologies | C++
Community Center | Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. John Jacko 21 Reputation points
    2022-09-21T03:07:42.577+00:00

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.