AnsweredAssumed Answered

libudev.h: No such file or directory

Question asked by srinivasan shanmugam on Dec 11, 2013
Latest reply on Dec 13, 2013 by Leonardo Sandoval Gonzalez

Dear I.MX Community,

 

I need to monitor USB-stick insertion in my attached c application using libudev & am using L2.6.35_10.12.01_ER_source for I.MX28

I am able to compile using gcc on ubuntu10.04 and it is "OK" but I cannot cross compile using  /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/arm-fsl-linux-gnueabi toolchain & facing the issue as shown below, could anybody please kindly do the needful in resolving the below issue as soon as possible


appusony@appusony-laptop:~/Desktop$ arm-none-linux-gnueabi-gcc libudev-test.c -o libudev-test -ludev

libudev-test.c:25:21: error: libudev.h: No such file or directory

libudev-test.c: In function 'main':

libudev-test.c:42: warning: assignment makes pointer from integer without a cast

libudev-test.c:65: warning: assignment makes pointer from integer without a cast

libudev-test.c:66: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'struct udev_monitor *'

libudev-test.c:78: warning: assignment makes pointer from integer without a cast

libudev-test.c:79: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'struct udev_enumerate *'

libudev-test.c:82: warning: assignment makes pointer from integer without a cast

libudev-test.c:83: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'struct udev_list_entry *'

libudev-test.c:89: error: expected ';' before '{' token

libudev-test.c:174: warning: assignment makes pointer from integer without a cast

libudev-test.c:177: warning: format '%s' expects type 'char *', but argument 2 has type 'int'

libudev-test.c:178: warning: format '%s' expects type 'char *', but argument 2 has type 'int'

libudev-test.c:179: warning: format '%s' expects type 'char *', but argument 2 has type 'int'

libudev-test.c:181: warning: format '%s' expects type 'char *', but argument 2 has type 'int'

appusony@appusony-laptop:~/Desktop$

 

Kindly do the needful

Many Thanks in advance,

Original Attachment has been moved to: libudev-test.c.zip

Outcomes