question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[package] paho-mqtt-c/1.3.5: cmake_find_package_multi issue during conan create

See original GitHub issue

Tried using the latest paho-mqtt-c package here but targeting 1.3.5 of the library and during my conan create I am getting a bunch of cmake_find_package_multi errors that I don’t quite know what to make of them. Before the most recent additions of this feature here I was able to create the package fine. The same issues are also happening with the latest paho.mqtt.cpp package which also added this new feature.

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: paho-mqtt-c & paho-mqtt-cpp/latest
  • Operating System+version: Windows
  • Compiler+version: VS2017
  • Conan version: conan 1.24.0
  • Python version: Python 3.7.7
  • cmake: 3.17.0

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

Configuration for profile vs-15-debug:

[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=Visual Studio
compiler.version=15
build_type=Debug
compiler.runtime=MDd
[options]
[build_requires]
[env]

Steps to reproduce (Include if Applicable)

conan create . k3p/stable -tf test_package -pr vs-15-debug --build missing

Logs (Include/Attach if Applicable)

find-package-multi-issue.txt

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:26 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
SpaceImcommented, Oct 12, 2020

Spot on brother, that seems to have fixed it for the paho.mqtt.c project at least now I will try again with the cpp one. Is there a way to perhaps enforce the minimum conan version on a recipe with some error message to upgrade similar to how cmake has a minimum version? Otherwise this is totally confusing. It would make sense to enforce some minimum conan version check on all recipes in here

Starting from conan 1.28, there is required_conan_version: https://github.com/conan-io/conan-center-index/blob/a79d9f7f0c2b61c3e137720a917313c717761720/recipes/any-lite/all/conanfile.py#L4

0reactions
keysight-darylcommented, Oct 12, 2020

Closing this issue as I have managed to sort through all the required updates and other packages that were needed to get by. The short of the answer here is you need to be using conan 1.26 or better and you need to possibly update all requirement packages to also use this new mechanism of cmake_find_package_multi.

Read more comments on GitHub >

github_iconTop Results From Across the Web

conan create — conan 1.44.1 documentation
Builds a binary package for a recipe (conanfile.py). Uses the specified configuration in a profile or in -s settings, -o options, etc.
Read more >
Troubleshooting — conan 1.55.0 documentation
Maybe the package creator didn't build and shared pre-built packages at all and only uploaded the package recipe, or they are only providing...
Read more >
Package development flow — conan 1.44.1 documentation
The build method takes a path to a folder that has sources and also to the install folder to get the information of...
Read more >
Conan Documentation
Conan is a software package manager which is intended for C and C++ developers. Conan is universal and portable. It works in all...
Read more >
Tool requirements — conan 1.55.0 documentation
In this example, tool1 , tool2 , tool3 and tool4 will be used for all packages in the dependency graph (while running conan...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found