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 request] paho-c recipe, including necessary libraries without options

See original GitHub issue

I 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?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ken00535commented, Feb 7, 2020

@TrevorMuraro thanks.

I use MQTTAsync.h now. This is work for me.

1reaction
memshardedcommented, Jan 14, 2020

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!

Read more comments on GitHub >

github_iconTop 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 >

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