Closed shuixing85 closed 4 years ago
If zlib's bin directory is in he PATH, cmake should be able to find zlib: https://github.com/introlab/rtabmap/blob/ad44b65a28c0bb16add80a3d0afb9c721f84ba68/.appveyor.yml#L77
To rebuild zlib with Visual Studio 2019, this can be done following instructions from source here.
$ cd zlib-1.2.8
$ mkdir build
$ cd build
$ cmake -G "Visual Studio 16 2019" -A x64 ..
$ cmake --build . --config Release --target install
Hi All,
I'm trying to compile the code using VS 2019, saw the install tutorial and kind of stuck at this step:
the CMake output like this: 1> [CMake] CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:164 (message): 1> [CMake] Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
have put the zlib under the program folder,
my understanding about the next step is to update the dir in CMakeLists.txt?
can anyone give me a hint about the syntax,
or any keywords I can pursue?
Thanks a lot