Open AntiMoonYT opened 7 years ago
Zlib needs to be in your project directory, specifically wherever your build output folder is (which contains ets2_auto_driving.exe)
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.
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.
hi i just installed Cmake what do I do now
I put the file in all the places and still it gives the same error!! and how does it work with Cmake
Guy it's the zlibd1.dll
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.
Hi now i have this problem
it won't start correctly
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.
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
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.
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
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