-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create and install libcoap-3.pc when building with cmake #748
Comments
Can you please check if this patch works for you? |
The patch works partly. Now cmake installs a libcoap-3.pc into /usr/local/lib/pkgconfig, and its content basically looks fine. But when I compile libcoap-minimum I get several errors.
Here is difference between libcoap-3.pc generated with autoconf, and that one generated with cmake.
I think the reason that the libcaop-minimum build fails is because that out-of-the box the cmake based build only generates the static library libcoap-3.a (at least in my setup), while the autoconf also generates libcoap-3-openssl.a and shared libraries. Anyway, its absolutely not a show stopper for me. I think its just a feature which would be nice to have. |
Just to be noted. I found an open feature request in the cmake community addressing this topic. https://gitlab.kitware.com/cmake/cmake/-/issues/22621 Eventually, future versions of cmake will have a built in support for pkg-config file generation. |
Thanks for the feedback. There are several reasons to think of why this has failed in your tests. I will try to track this down. (The main issue here is not generating the .pc file but populating it properly—the |
There are several things at play here. With this Fixing the built However, with |
I built and installed libcoap v4.3.0 with cmake. Then I tried to compile libcoap-minimal. I found that the Makefile in libcoap-minimal uses pkg-config to locate the library. Unfortunately, this failed because the cmake based build did not install the necessary .pc file.
It seems that libcoap-3.pc is only provided when building with autoconf.
Feature request: Please also create and install libcoap-3.pc when building with cmake.
Used versions:
The text was updated successfully, but these errors were encountered: