[CMake] Cmake : undefined reference to `udev_device_get_devnode'
Nils Gladitz
nilsgladitz at gmail.com
Fri Nov 20 08:04:41 EST 2015
On 11/20/2015 01:39 PM, Nikita Barawade wrote:
>
> ../../../LLAPI/build/Source/libLLAPI.so: undefined reference to
> `udev_device_get_devnode'
>
>
> Before this, while buildinga library libLLAPI.so I got error " fatal
> error: libudev.h: No such file or directory" .
>
> It worked fine after installing libudev-dev .
>
>
These errors indicate that libLLAPI.so uses function from libudev but
probably does not actually link to the library.
Assuming it is missing you will need an appropriate
target_link_libraries() call for your LLAPI target so that it links to
libudev.
Nils
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20151120/cccccf79/attachment-0001.html>
More information about the CMake
mailing list