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!
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!
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
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
|
DetailsWhen 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
Friday, 06 April 2018, 16:44 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in libwebsockets-2.4.2-1
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