Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing python-evdev on arduino yun - fhonour-copts error #34

Closed
vrbs opened this issue Jun 4, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@vrbs
Copy link

commented Jun 4, 2015

Hi:
I am trying to install python-evdev on my arduino yun using "./setup.py install". I get the following error: Any suggestion will be appreciated (bear in mind that I am a newbie).

./setup.py install

running install

running bdist_egg

writing ecodes.c (using /usr/include/linux/input.h)

running egg_info

writing evdev.egg-info/PKG-INFO

writing top-level names to evdev.egg-info/top_level.txt

writing dependency_links to evdev.egg-info/dependency_links.txt

reading manifest file 'evdev.egg-info/SOURCES.txt'

reading manifest template 'MANIFEST.in'

writing manifest file 'evdev.egg-info/SOURCES.txt'

installing library code to build/bdist.linux-mips/egg

running install_lib

running build_py

running build_ext

building 'evdev._input' extension

mips-openwrt-linux-uclibc-gcc -fno-strict-aliasing -Os -pipe -mips32r2 
-mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -DNDEBUG -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -fPIC -I/usr/include/python2.7 -c evdev/input.c -o build/temp.linux-mips-2.7/evdev/input.o -std=c99 -Wno-error=declaration-after-statement

cc1: error: unrecognized command line option '-fhonour-copts'

cc1: error: unrecognized command line option '-fhonour-copts'

error: command 'mips-openwrt-linux-uclibc-gcc' failed with exit status 1

root@Arduino:/mnt/sda1/python-evdev-0.4.7# cc1: error: unrecognized command 
line option '-fhonour-copts'
-ash: cc1:: not found
root@Arduino:/mnt/sda1/python-evdev-0.4.7# cc1: error: unrecognized command line option '-fhonour-copts'
-ash: cc1:: not found
@gvalkov

This comment has been minimized.

Copy link
Owner

commented Jun 4, 2015

Hello @VictorAtreides,

A few months ago another person was also interested in building python-evdev on the Arduino Yun. I made an ipkg file (a package which you can install using openwrt's package manager - opkg) for him and also submitted it for inclusion in the Arduino Yun package tree. Here is his StackOverflow question for reference.

You could try downloading the prebuilt package from here (sorry, sharing it on dropbox is all I could think of at the moment) and installing with:

$ opkg update
$ opkg install /path/to/python-evdev_0.4.7-1_ar71xx.ipk

Please let me know if this works for you. If not, we could troubleshoot the compilation issue more thoroughly.

Best regards,
Georgi

@vrbs

This comment has been minimized.

Copy link
Author

commented Jun 5, 2015

Hi Gregory:

I was able to install the ev-dev package on my YUN!! Thanks a lot for your valuable contribution.
Best regards!
Victor


From: Georgi Valkov [notifications@github.com]
Sent: Thursday, June 04, 2015 11:57 PM
To: gvalkov/python-evdev
Cc: Victor Hernandez
Subject: Re: [python-evdev] Installing python-evdev on arduino yun - fhonour-copts error (#34)

Hello @VictorAtreideshttps://github.com/VictorAtreides,

A few months ago another person was also interested in building python-evdev on the Arduino Yun. I made an ipkg file (a package which you can install using openwrt's package manager - opkg) for him and also submitted it for inclusion in the Arduino Yun package treehttps://github.com/arduino/openwrt-packages-yun/pull/25. Herehttp://stackoverflow.com/questions/27868339/python-evdev-binding-for-openwrt is his StackOverflow question for reference.

You could try downloading the prebuilt package from herehttps://www.dropbox.com/s/ce44jh9udlubq01/python-evdev_0.4.7-1_ar71xx.ipk?dl=0 (sorry, sharing it on dropbox is all I could think of at the moment) and installing with:

$ opkg update
$ opkg install /path/to/python-evdev_0.4.7-1_ar71xx.ipk

Please let me know if this works for you. If not, we could troubleshoot the compilation issue more thoroughly.

Best regards,
Georgi


Reply to this email directly or view it on GitHubhttps://github.com//issues/34#issuecomment-109067895.

@gvalkov gvalkov closed this Jun 6, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.