hello, i meet a problem

44 views
Skip to first unread message

赵波

unread,
Jun 27, 2022, 8:37:18 AM6/27/22
to WebP Discussion
/usr/bin/ld: not find -llibwebp
i complie c++ progame wuth cmake and meet this problem
i dont now how to solve it
os: ubuntu18.04
my compute has libwebp.so in "usr/lib"

Vincent Rabaud

unread,
Jun 27, 2022, 8:56:19 AM6/27/22
to WebP Discussion, 赵波
Hi,

what did you use as a CMake command ?
You first need to find WebP using find_package(WebP) and you can then use target_link_libraries(your_library ${WEBP_LIBRARIES}) if it was found.

James Zern

unread,
Jun 27, 2022, 4:20:41 PM6/27/22
to WebP Discussion
On Mon, Jun 27, 2022 at 5:56 AM 'Vincent Rabaud' via WebP Discussion <webp-d...@webmproject.org> wrote:
Hi,

what did you use as a CMake command ?
You first need to find WebP using find_package(WebP) and you can then use target_link_libraries(your_library ${WEBP_LIBRARIES}) if it was found.

This should work.
 

On Monday, June 27, 2022 at 2:37:18 PM UTC+2 赵波 wrote:
/usr/bin/ld: not find -llibwebp

Note, though, that to link to lib<library>.{so,a} you would use -llibrary, so -lwebp here.
 
i complie c++ progame wuth cmake and meet this problem
i dont now how to solve it
os: ubuntu18.04
my compute has libwebp.so in "usr/lib"

--
You received this message because you are subscribed to the Google Groups "WebP Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webp-discuss...@webmproject.org.
To view this discussion on the web visit https://groups.google.com/a/webmproject.org/d/msgid/webp-discuss/1e527eb2-0714-43b8-a36f-dbeffcee1628n%40webmproject.org.
Reply all
Reply to author
Forward
0 new messages