python-evdev icon indicating copy to clipboard operation
python-evdev copied to clipboard

Installing on Linkit smart 7688 fail

Open LSChyi opened this issue 9 years ago • 2 comments

Hello @gvalkov, recently there was a new board called Linkit smart 7688, which is a cheap IoT board. I was trying to use this board to build an bluetooth keyboard adapter, and just like Arduino Yun, it uses openwrt as the OS. As I was trying to use this awesome plugin, the installation was failed due to missing linux kernel header files. Then I found there is another evdev for Arduino Yun, I downloaded and run opkg install to install that package, it popped error messages, saying that "incompatible with the architectures configured". Can you give some me advise? Thank you!

spec of Linkit smart 7688: MIPS CPU

LSChyi avatar Mar 10 '16 15:03 LSChyi

Hi @LSChyi,

Interesting little board and an interesting project! Since the openwrt build system supports the board, it should be relatively straightforward to cross-compile and package python-evdev for it.

I'm in the process of submitting a python-evdev build script to the default openwrt packages feed. If you can wait a day or two, I'll have an opkg ready for you. Otherwise, you can try building it yourself by following these instructions (you may have to tweak the makefile a bit - I haven't gotten it to work yet).

Kind regards, Georgi

gvalkov avatar Mar 11 '16 00:03 gvalkov

Hello @gvalkov,

after few days of trying cross compile, I found Linkit smart has already released the SDK and Toolchain about it, SDK includes imgs and toolchain in it.

Then I read this post, I followed the instructions, set STAGING_DIR, PYTHONXCPREFIX, CROSS_COMPILE, CC, LDSHARED, LDFLAGS(I save them in a .sh file, source that .sh file before doing cross compile), and try to build, and I executed the command

python setup.py build -x

and got an error:

error: option -x not recognized

and if I just type

python setup.py build

then I got the error message

mipsel-openwrt-linux-gcc: error: unrecognized command line option '-fstack-protector-strong'

and the build process was terminated. Can you give me some me advise?

update: I found that gcc error can be solved by updating gcc, I'll try to update gcc version.

LSChyi avatar Mar 14 '16 17:03 LSChyi