Very first tutorial lesson does not work due to ZLIB
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- cmake
- Domain
- build-system
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.
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.
- Dominant language
- Python
- Stars
- 126
- Forks
- 65
- Avg merge
- 11h 3m
- Merged PRs (30d)
- 4
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from conan-io/examples2
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Running example2 compressor tutorial on UCRT64May be free again @memsharded claimed this 830 days ago, and no pull request is open. Open
-
White window is showed and closed in imgui exampleMay be free again @czoido claimed this 1018 days ago, and no pull request is open. Open
conan-io/examples2#131 · 7 comments · 2 reactions · 1 assignee ·
-
Error: conan profile detect --forceMay be free again @memsharded claimed this 1198 days ago, and no pull request is open. Open
-
[question] self.export_sources_folder in def export_sources(self) methodMay be free again @memsharded claimed this 1222 days ago, and no pull request is open. Openquestion
All issues in conan-io/examples2
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
hermes hooks doctor smoke test never checks the hook exit code — a crashing hook (exit=1) renders ✓ "ran clean" and "All shell hooks look healthy"Possibly taken @cestercian claimed this today. Opencomp/cli P2 type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
NousResearch/hermes-agent#162259 · 1 comment ·
Maintainers usually reply within 1 day
-
upstream update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
conan-io/conan-center-index#31597 ·
Maintainers usually reply within 1 day
-
bug enhancement
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AOSSIE-Org/PictoPy#1802 · 2 comments ·
Maintainers usually reply within 3 days
-
community-request
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA-NeMo/Run#727 ·
Maintainers usually reply within 1 day