Hi Nils,
Got It !
As per your suggestion, linked libudev to LLAPI target and rebuilt both LLAPI
lib and App . No errors now .
Thank you !
/Cmake/LLAPI/build$ ldd Source/libLLAPI.so
linux-vdso.so.1 => (0x00007ffccff9c000)
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007fb8d2235000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fb8d202d000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(0x00007fb8d1d29000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fb8d1b13000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb8d174e000)
libcgmanager.so.0 => /lib/x86_64-linux-gnu/libcgmanager.so.0
(0x00007fb8d1533000)
libnih.so.1 => /lib/x86_64-linux-gnu/libnih.so.1 (0x00007fb8d131b000)
libnih-dbus.so.1 => /lib/x86_64-linux-gnu/libnih-dbus.so.1
(0x00007fb8d1111000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007fb8d0ecc000)
/lib64/ld-linux-x86-64.so.2 (0x00007fb8d2b6f000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007fb8d0cae000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fb8d09a8000)
Regards,
Nikita Barawade
Engineer | PES
________________________________
From: Nils Gladitz <[email protected]>
Sent: 20 November 2015 06:34 PM
To: Nikita Barawade; [email protected]
Subject: Re: [CMake] Cmake : undefined reference to `udev_device_get_devnode'
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 building a 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
*************************************************************************************************************************************************************
eInfochips Business Disclaimer: This e-mail message and all attachments
transmitted with it are intended solely for the use of the addressee and may
contain legally privileged and confidential information. If the reader of this
message is not the intended recipient, or an employee or agent responsible for
delivering this message to the intended recipient, you are hereby notified that
any dissemination, distribution, copying, or other use of this message or its
attachments is strictly prohibited. If you have received this message in error,
please notify the sender immediately by replying to this message and please
delete it from your computer. Any views expressed in this message are those of
the individual sender unless otherwise stated. Company has taken enough
precautions to prevent the spread of viruses. However the company accepts no
liability for any damage caused by any virus transmitted by this email.
*************************************************************************************************************************************************************
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake