Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zlibd1.dll missing #38

Open
AntiMoonYT opened this issue Sep 18, 2017 · 13 comments
Open

zlibd1.dll missing #38

AntiMoonYT opened this issue Sep 18, 2017 · 13 comments

Comments

@AntiMoonYT
Copy link

AntiMoonYT commented Sep 18, 2017

Hi I did a Local Windows debugger on the program in VS 2017 it start but I get the error that the zlibd1.dll is missing and that I need to reinstall the program. I installed de zlibd1.dll in system32 and SysWOW64 but iI still get the error help me :)
This is for windows not linux

@zappybiby
Copy link
Contributor

zappybiby commented Sep 18, 2017 via email

@zappybiby
Copy link
Contributor

Hey @chi3236 ,

zlib is only needed if we are using the static libraries of OpenCV (as opposed to dynamically like opencv_world). Since this project uses opencv's static libraries, and therefore zlib will be a requirement, I think you should add zlib to the repository.

Most people don't run into this issue because you would usually build OpenCV with CMake. However, since we are providing a link to the prebuilt nuget packages, I don't believe users get the same issue.

Actually, I'm wondering if the nuget packages include zlib? Then we could just add instructions to copy that file into the Debug and Release folders ...
License for zlib: https://zlib.net/zlib_license.html indicates there shouldn't be any legal issues adding it.

@chi3236
Copy link
Collaborator

chi3236 commented Sep 18, 2017

I got it. In case of nuget opencv packages, I guess what we have to do is download the zlib1.dll and add it to the (project file root)/packages/opencvcuda-release.redist.3.1.0/build/native/bin/x64/v20/Release or Debug/, and write down the path of it to the control panel -> System -> Advanced -> Environment Variables -> Path. After the path is added, then we don't have to put the .dll files and .exe file in the same directory

It's a little weird that I found the zlib.dll file in OpenCV directory, but it was in 3rdparty directory which was not added to the environment path. (I built OpenCV with CMake). I think if zlib is required for our program, then I might have a 'zlib' missing issue.

@AntiMoonYT
Copy link
Author

hi i just installed Cmake what do I do now

@AntiMoonYT
Copy link
Author

I put the file in all the places and still it gives the same error!!
and how does it work with Cmake

@AntiMoonYT AntiMoonYT changed the title zlib1.dll missing zlibd1.dll missing Sep 18, 2017
@AntiMoonYT
Copy link
Author

Guy it's the zlibd1.dll

@zappybiby
Copy link
Contributor

zappybiby commented Sep 18, 2017

Do you have the nuget packages installed? I know in VS17 I usually have to open the Nuget Package Manager first (Tools -> Options -> Nuget Package Manager) and then that will let you know if you are missing the two needed packages.

I'm assuming the nuget packages include the zlib file?
(project file root)/packages/opencvcuda-release.redist.3.1.0/build/native/bin/x64/v20/Release (project file root)/packages/opencvcuda-release.redist.3.1.0/build/native/bin/x64/v20/Debug

zlib1.dll is the release version of zlib and zlibd1.dll would be the debug version.
Then take that path and copy it to your Environment Paths
control panel -> System -> Advanced -> Environment Variables -> Path

Another thing you can try is my branch https://github.com/ajchili/ChosunTruck
I updated a couple things for VS17 (Most notably the nuget packages). It may be worth trying to build that branch to see if it works better with VS17. If that works then we might have to update our nuget packages to OpenCV 3.2 on this repository.

@AntiMoonYT
Copy link
Author

Hi now i have this problem
21868186_906545639486499_916625983_o

@AntiMoonYT
Copy link
Author

it won't start correctly

@zappybiby
Copy link
Contributor

That is a generic error message and doesn't really give me much information

Can you post the Build log produced by VS so I can see what errors are produced.
Can you also show me the nuget packages you are currently using.

@avestnik
Copy link

avestnik commented Nov 2, 2017

hello, I am stuck with similar problem: I'm using opencv from nuget and can successfully build my solution. but on start it complains about missing zlibd1.dll. i carefully read this topic, but didn't quite understand where I can get this dll. neither of mentioned packages have them

@bethesirius
Copy link
Owner

You'd better to compile OpenCV in your environment. Anyway, you are able to download the .dll file here(http://originaldll.com/file/zlib1.dll/7931.html). But, I am not sure that the file is safe.

@zappybiby
Copy link
Contributor

I actually had the same issue as @avestnik. I downloaded zlib1.dll online which worked fine for building for 'release' mode. However, when trying to build the project in debug mode, it will say that 'zlib1d.dll' is missing.

I downloaded zlib1.dll from their sourceforge website here:

http://gnuwin32.sourceforge.net/packages/zlib.htm

I'll try to see how I fixed that issue that happens when running in debug mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants