conan-io / conan-io/training

[Error] Exercise : Consume Hello Package - not enough instruction on how to modify files

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

Description

The commented instructions are very vague.

eg
`# modify conanfile.txt to account for new dependency`

Had to relisten since the only guidance here is in voice, and says to use the existing format as a guide, which gives us:
`[requires]`
`boost/1.72.0`
`poco/1.9.4`
`hello/0.1`

The next step is also obscure:
`# modify CMakeLists.txt to account for new CONAN_PKG::hello`

Which I assume refers to:
`target_link_libraries(timer CONAN_PKG::poco`
` CONAN_PKG::boost`
` CONAN_PKG::hello)`

Finally:
`# modify timer.cpp to include "hello.h" and call the hello() function`

The other includes have a path, but nothing is explained here, so this could be wrong:
`#include `

But I assume calling `hello()` anywhere in `main()` is fine.
`int main(int argc, char** argv){`
` ...`
` hello();`
` ...`
` return 0;`
`}`

Result:
`$ conan install ..`
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=7
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

hello/0.1: Not found in local cache, looking in remotes...
hello/0.1: Trying with 'conan-center'...
`ERROR: Unable to find 'hello/0.1' in remotes`

This looks like its failing from the first step, not the second or third (although it's not clear if they will work).

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect the exercise's conanfile.txt, CMakeLists.txt, and timer.cpp alongside the commented instructions. Run conan install .. to reproduce the missing hello/0.1 dependency and check the subsequent build steps. Clarify the file edits, include and function-call guidance, and dependency setup so a learner can complete the exercise successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system, documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.