Hi,
I need the libudev library on the imx28. In ltib I can only add udev, but not libudev. How can I add this library?
I need this library so I can monitor USB-stick insertion in my c application. If anyone can point me to an alternative to do this, that would also help me!
Thanks!
hi,
i am trying to cross compile libudev-dev package for IMX258.
i am using this package for detection of smart card insertion and removal. i am using pcsc-lite package which used libudev package.
ltib is already having udev-117 package, after this version udev package is been changed. i had verified udev-151 is working fine with pcsc-lite on ubuntu machine. but when i tried to cross compile udev-151 package. it is giving errors.
libudev/libudev-monitor.c: In function 'udev_monitor_new_from_socket':
libudev/libudev-monitor.c:142: error: 'SOCK_CLOEXEC' undeclared (first use in this function)
libudev/libudev-monitor.c:142: error: (Each undeclared identifier is reported only once
libudev/libudev-monitor.c:142: error: for each function it appears in.)
libudev/libudev-monitor.c: In function 'udev_monitor_new_from_netlink':
libudev/libudev-monitor.c:199: error: 'SOCK_CLOEXEC' undeclared (first use in this function)
make[2]: *** [libudev/libudev-monitor.lo] Error 1
please tell me which version i can use and is stable.
thanks in advance
i had overcome the issue by using updated toolchain. gcc-4.4.4-glibc-2.11.1-multilib-1.0. Thanks
./ltib -m shell
mkdir addons
cd addons
wget http://repository.timesys.com/buildsources/u/udev/udev-117/udev-117.tar.gz
tar zxvf udev-117.tar.gz
cd udev-117
edit Makefile and add at beginning: GCC=arm-linux-gcc
make
and voila:
LTIB> ls -ln lib*
-rw-rw-r-- 1 1029 1016 301238 Feb 29 10:43 libudev.a
Ohh! Sorry!
Sorry! I misinterpreted @Vladan Jovanovic.
synapticPM doesn't work when he needs a cross-compiled libudev that runs on i.MX, not on his host PC.
Krishna Pavan said:
I think the simplest way is to install the ' libudev' package from the synapticPM, If you are working on linux.......!
Hi,
Pls try following steps:
1. Create libudev directory in dist/lfs-5.1/.
2. Create libudev spec file libudev.spec.
3. Edit libudev.spec. Add something like:
%define pfx /opt/freescale/rootfs/%{_target_cpu}
Summary : A library for udev Name : libogg
Version : 1.0.0
Release : 1
License : BSD
Vendor : Freescale
Packager : Terry Lv
Group : System Environment/Libraries
Source : %{name}-%{version}.tar.gz
BuildRoot : %{_tmppath}/%{name}
Prefix : %{pfx}
URL : http://xxxx
%Description
%{summary}
%Prep
%setup
%Build
./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} --mandir=%{_mandir}
make
%Install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}
rm -f $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/*.la
%Clean
rm -rf $RPM_BUILD_ROOT
%Files
%defattr(-,root,root)
%{pfx}/*
Note: Pls take care to %Build and %Install section. Make sure the script can build your ap succeessful.
4. Add PKG_LIBUDEV to config/userspace/packages.lkc.
Something like:
config PKG_LIBUDEV
depends PKG_ASTERISK
bool "libudev"
help
udev library.
5. Add CONFIG_PKG_LIBUDEV to imx28.cf file.
You can use following commands for testing:
download package:
./ltib -m prep -p libudev
build package:
./ltib -m scbuild -p libudev
install package:
./ltib -m scdeploy -p libudev
Thanks~~