Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#58113 - [libwebsockets] Broken CMake package configuration

Attached to Project: Community Packages
Opened by Alexander Mezin (Sanya_M) - Wednesday, 04 April 2018, 21:40 GMT
Last edited by Jelle van der Waa (jelly) - Friday, 06 April 2018, 16:44 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When building a project that depends on libwebsockets:

CMake Error at /usr/lib64/cmake/libwebsockets/LibwebsocketsTargets.cmake:82 (message):
The imported target "websockets" references the file

"/usr/lib/libwebsockets.a"

but this file does not exist. Possible reasons include:

* The file was deleted, renamed, or moved to another location.

* An install or uninstall procedure did not complete successfully.

* The installation package was faulty and contained

"/usr/lib64/cmake/libwebsockets/LibwebsocketsTargets.cmake"

but not all the files it references.


If static library was removed intentionally - please disable it:

cmake -D CMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX:PATH=/usr -DLWS_WITH_STATIC=OFF -DLWS_LINK_TESTAPPS_DYNAMIC=ON ..

This task depends upon

Closed by  Jelle van der Waa (jelly)
Friday, 06 April 2018, 16:44 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in libwebsockets-2.4.2-1
Comment by Daniel M. Capella (polyzen) - Wednesday, 04 April 2018, 23:23 GMT
You can use the aur/libwebsockets-static package.
Comment by Alexander Mezin (Sanya_M) - Thursday, 05 April 2018, 01:06 GMT
The problem is broken config file (referencing a non-existent file), not the static library itself.
When libwebsockets is built with -DLWS_WITH_STATIC=OFF, cmake configs don't mention the static library (because the static library isn't built), and find_package(Libwebsockets) works as expected - automatically links to the shared library

Loading...