For a project I'm using I need the evdev module installed, but i'm running into problems. I'm using a Yun that was just reset with the latest OpenWRT-Yun upgrade image.
I'm trying to install evdev by using:
opkg update
opkg install distribute
opkg install python-openssl
easy_install pip
pip install evdev
When trying that I have gotten this error:
After that I have tried the following:
opkg update
opkg install binutils
opkg install make
opkg -t /root install yun-gcc
pip install evdev
This gives me the same error, but with different printout before the error:
Any idea what is going on?
I see that there is a method for installing evdev explained in this post: http://forum.arduino.cc/index.php?topic=309246.msg2148560#msg2148560
But I'm curious as to why my method is not working
Any thoughts?
Install Compile Python/C evdev module:
http://forum.arduino.cc/index.php?topic=305926.msg2148554#msg2148554
Try compare cross compile code to native compile code:
mips-openwrt-linux-uclibc-gcc -pthread -fno-strict-aliasing -DNDEBUG -g \
-fwrapv -O2 -Wall -Wstrict-prototypes -fPIC \
-I/home/sonnyyu/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include/python2.7 \
-c evdev/input.c -o build/tmp/input.o -std=c99 -Wno-error=declaration-after-statement
mips-openwrt-linux-uclibc-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/tmp/input.o -o build/lib/_input.so
mips-openwrt-linux-uclibc-gcc -pthread -fno-strict-aliasing -DNDEBUG -g \
-fwrapv -O2 -Wall -Wstrict-prototypes -fPIC \
-I/home/sonnyyu/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include/python2.7 \
-c evdev/uinput.c -o build/tmp/uinput.o -std=c99 -Wno-error=declaration-after-statement
mips-openwrt-linux-uclibc-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/tmp/uinput.o -o build/lib/_uinput.so
mips-openwrt-linux-uclibc-gcc -pthread -fno-strict-aliasing -DNDEBUG -g \
-fwrapv -O2 -Wall -Wstrict-prototypes -fPIC \
-I/home/sonnyyu/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include/python2.7 \
-c evdev/ecodes.c -o build/tmp/ecodes.o -std=c99 -Wno-error=declaration-after-statement
mips-openwrt-linux-uclibc-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/tmp/ecodes.o -o build/lib/_ecodes.so
Download and install OpenWrt-SDK for Yun:
http://forum.arduino.cc/index.php?topic=305926.msg2124474#msg2124474
It looks like it was easiest to go with option C. I entered the following code and it successfully insatlled:
cd /usr/lib/python2.7/
wget https://www.dropbox.com/s/n6pafjual1dfcmg/evdev.tar.gz?dl=0 -O evdev.tar.gz --no-check-certificate
tar -zxvf evdev.tar.gz
rm evdev.tar.gz
Thanks for all the help!
@rhammell ,
Could you please pre-pend to the subject line [SOLVED]? This would others in the future.
TIA
Jesse