conan-io / conan-io/examples2

Very first tutorial lesson does not work due to ZLIB

Open
#149 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
125
Forks
64
PR merge metrics
No merged PRs in 30d

Description

Tutorial from `tutorial\consuming_packages\simple_cmake_project\` does not build with commands provided from first lesson in documentation I am trying to follow (https://docs.conan.io/2/tutorial/consuming_packages/build_simple_cmake_project.html)

When I do `conan install . --output-folder=build --build=missing`, it finishes with "finished successfully" status, despite of two warnings
`WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated: 'cpp_info.names' used in: zlib/1.2.11`
However next command which is `cmake .. -G "Visual Studio 15 2017" -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake"` fails with
`CMake Error at C:/Program Files/CMake/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)`

I have changed required ZLIB version to 1.3.1 and now it works.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in tutorial/consuming_packages/simple_cmake_project/ and run the documented conan install command, noting the zlib deprecation warnings. Then run the supplied CMake command with the Visual Studio 15 2017 generator and conan_toolchain.cmake. Done means the first tutorial lesson builds successfully with the documented zlib dependency rather than failing to find ZLIB.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.