[package request] paho-c recipe, including necessary libraries without options
See original GitHub issueI am beginner of conan, and I want to use paho-c
here is my conanfile.txt
[requires]
paho-c/1.3.0@conan/stable
OpenSSL/1.0.2s@conan/stable
[generators]
cmake
[options]
paho-c:shared=True
paho-c:asynchronous=False
paho-c:SSL=True
paho-c has three options and conan will generate paho-mqtt3cs.lib or paho-mqtt3as.lib according these options.
But it generate one of these libs once build, and I need to use both of two.
How can I modify my conanfile.txt to use two types of libs?
- I’ve read the CONTRIBUTING guide.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Define the package information — conan 1.53.0 documentation
When creating a recipe to package a library, it is important to define the information about the package so consumers can get the...
Read more >Defining packages and their contents
A bitbake recipe is a set of instructions from creating one, or more, packages for installation on the target device. Typically these are...
Read more >Guide to pkg-config - FreeDesktop.Org
For instance, a package installing libfoo.so would have a corresponding libfoo.pc file containing the pkg-config metadata. This choice is not necessary; ...
Read more >Contributing packages - conda-forge
Once the pull request is merged, the package becomes available on the conda-forge channel. ... In case you are building your first recipe...
Read more >3. Definitions — DRAGONS - Recipe System User Manual 3.0 ...
The Recipe System will search the active data reduction package ( geminidr or as specified by the --drpkg option) for recipe libraries and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@TrevorMuraro thanks.
I use MQTTAsync.h now. This is work for me.
Then, that might be a issue or problem of the paho recipe. It might be incorrect or incomplete.
I have just installed it (in Windows), and inside the package indeed it only has 1 lib, called
paho-mqtt3a-static.lib
. I think this is worth reporting to the recipe of paho-c package, to be fixed.As the efforts in packaging open source libraries is moving to https://github.com/conan-io/conan-center-index, even if the modernized version of paho-c is not there, I think that any change or new modification should be provided in the new conan-center-index recipe.
I am going to transfer this issue to that repo, to follow up there. If you have further questions about Conan usage, do not hesitate to open more issues. Thanks!