According to the error i think the gcc is not installed. Thats what my question is "where could i and how could i install this i586 poky linux gcc thingy.? I researched a bit but the information that i got was quite confusing and perhaps i couldn't understand.
Even i think the same that gcc is not installed in the standard linux image for the galileo. Any assistance on this problem from your side mhahn?
Thanks for your time looking into this issue. its really bugging me.
1 of 1 people found this helpful
gcc is not installed out of the box. You can either create a cross-compilation toolchain by following instructions in BSP build guide or install it from my package repo (Package Repo Configuration Instructions). Here's a blog post outlining the steps to get it installed: Installing development tools onto Galileo official Linux image
Thanks for your response. I've been looking at your posts in the community have come across your dev-tools image. http://telekinect.media.mit.edu/galileo/image-devtools-1.0.1-1.tar.bz2 i have installed this version and now i have the gcc in it.
But now i ran into new problem i.e. while installing greenlet or gevent, for ex greenlet i encountered new error
root@clanton:/media/realroot/greenlet-0.4.2# python setup.py install
i586-poky-linux-uclibc-gcc -m32 -march=i586 -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -fno-tree-dominator-opts -I/usr/include/python2.7 -c /tmp/tmpuKbWhk/simple.c -o /tmp/tmpuKbWhk/tmp/tmpuKbWhk/simple.o
/tmp/tmpuKbWhk/simple.c:1:6: warning: function declaration isn't a prototype [-Wstrict-prototypes]
building 'greenlet' extension
i586-poky-linux-uclibc-gcc -m32 -march=i586 -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -fno-tree-dominator-opts -I/usr/include/python2.7 -c greenlet.c -o build/temp.linux-i586-2.7/greenlet.o
In file included from greenlet.c:5:0:
greenlet.h:8:20: fatal error: Python.h: No such file or directory
error: command 'i586-poky-linux-uclibc-gcc' failed with exit status 1
I have underlined the error statements.
I researched a bit over this error about python.h missing and the results i found says that python-dev package is missing, but python2.7 is already installed in the image isn't it?
the command to install python-dev is sudo ... but i cant run sudo or other things on the this image.
Can you please help for this issue or what can be done to install python-dev environment in this image? I'm this close in operating the wemo device through the galileo. But first in need to install greenlet and gevent which needs to be installed so that i can proceed ahead.
Thanks for your time for looking into this issue.
1 of 1 people found this helpful
if you are already root (which the shown output says) you don't need any sudo to run root commands.
Well, you'll need python-dev. Not sure whether there are ipk packages available for your image. You can try
opkg list | grep python
If it shows a python-dev package try
opkg install python-dev
Thaanks for the info.. I'll try and keep it posted. i hope it works.. cause i need to install gevent for my other package to function.
Ok i tried .
this is what i got.
root@clanton:~# opkg list|grep python
libpython2.7-1.0 - 2.7.3-r0.3
python-2to3 - 2.7.3-r0.3
python-audio - 2.7.3-r0.3
python-bsddb - 2.7.3-r0.3
python-codecs - 2.7.3-r0.3
python-compile - 2.7.3-r0.3
python-compiler - 2.7.3-r0.3
python-compression - 2.7.3-r0.3
python-core - 2.7.3-r0.3
python-crypt - 2.7.3-r0.3
python-ctypes - 2.7.3-r0.3
python-curses - 2.7.3-r0.3
python-datetime - 2.7.3-r0.3
python-db - 2.7.3-r0.3
python-debugger - 2.7.3-r0.3
python-difflib - 2.7.3-r0.3
python-distutils - 2.7.3-r0.3
python-doctest - 2.7.3-r0.3
python-elementtree - 2.7.3-r0.3
python-email - 2.7.3-r0.3
python-fcntl - 2.7.3-r0.3
python-gdbm - 2.7.3-r0.3
python-hotshot - 2.7.3-r0.3
python-html - 2.7.3-r0.3
python-idle - 2.7.3-r0.3
python-image - 2.7.3-r0.3
python-io - 2.7.3-r0.3
python-json - 2.7.3-r0.3
python-lang - 2.7.3-r0.3
python-logging - 2.7.3-r0.3
python-mailbox - 2.7.3-r0.3
python-math - 2.7.3-r0.3
python-mime - 2.7.3-r0.3
python-misc - 2.7.3-r0.3
python-mmap - 2.7.3-r0.3
python-modules - 2.7.3-r0.3
python-multiprocessing - 2.7.3-r0.3
python-netclient - 2.7.3-r0.3
python-netserver - 2.7.3-r0.3
python-nose - 1.2.1-r0
python-numbers - 2.7.3-r0.3
python-numpy - 1.7.0-r0
python-opencv - 2.4.9-r1
python-pickle - 2.7.3-r0.3
python-pkgutil - 2.7.3-r0.3
python-pprint - 2.7.3-r0.3
python-profile - 2.7.3-r0.3
python-pydoc - 2.7.3-r0.3
python-re - 2.7.3-r0.3
python-readline - 2.7.3-r0.3
python-resource - 2.7.3-r0.3
python-robotparser - 2.7.3-r0.3
python-shell - 2.7.3-r0.3
python-smtpd - 2.7.3-r0.3
python-sqlite3 - 2.7.3-r0.3
python-sqlite3-tests - 2.7.3-r0.3
python-stringold - 2.7.3-r0.3
python-subprocess - 2.7.3-r0.3
python-syslog - 2.7.3-r0.3
python-terminal - 2.7.3-r0.3
python-tests - 2.7.3-r0.3
python-textutils - 2.7.3-r0.3
python-threading - 2.7.3-r0.3
python-tkinter - 2.7.3-r0.3
python-unittest - 2.7.3-r0.3
python-unixadmin - 2.7.3-r0.3
python-xml - 2.7.3-r0.3
python-xmlrpc - 2.7.3-r0.3
python-zlib - 2.7.3-r0.3
but the one you mentioned is not there,
Is there any other package in this list you might know which can help. Sorry i'm asking many questions, but once its working i can put up the whole solution to all the problems.
Thanks for your time and efforts in looking for solutions.
Not sure whether this is of any help for you:
I actually built devkit-daisy-multilibc branch from meta-intel-iot-devkit - Intel IoT Developer Kit metadata. A bitbake devkit-dev-prof-image will build with gcc and python-dev.
To be honest I actually don't know what to do with that devkit-daisy-multilibc file as i'm not a core developer for this stuff. I'm a complete noob for these stuff. This is my 1st time i'm dealing with embedded programming.
If you can share your full image with me please? or what needs to be done with the above link about devkit-daisy-multilibc? I'm actually confused now.
I'm sorry but i could use some help.
Well, I feared it won't be of too much help to you. You'd have to build the image yourself (Yocto bitbake) with this link. It's actually not too hard to do. But it requires a Linux box with at least 40 GB free disk space. On a virtual machine Linux on a laptop it takes me a couple of hours to build an image - of course you can significantly get the time down running on a workstation or server. Sorry, can't share an image right now. An older version would be available on Intel® IOT Developer Kit
There is python-dev in the package repo (http://alextgalileo.altervista.org/pkgrepo/i586/python-dev_2.7.3-r0.3_i586.ipk) and I see it's present in the package index, so you should be able to install it without problems. Just run "opkg update && opkg install python-dev".
By the way, I see you're using image-devtools-1.0.1-1, I've updated the image a couple of times since then, so I'd suggest you to use that one, it has some important things updated/fixed such as AES encryption in libgcrypt or newer Node.js and OpenCV. And looks like I've pasted wrong links in my newest message in the thread devoted to that image, I've just updated them. Use these links for download:
And then try the abovemenioned opkg commands out, I think that should do it for you.
Thanks a Milllion AlexT. The new image worked perfectly fine. Sorry for my late response as i was on holiday.
I had to follow steps as well mentioned in Package Repo Configuration Instructions and then update the package. But for me the "cat" command didnt work. so i had to echo "/etc/opkg/base-feeds.conf src ...... and the links for "all.. clanton.. and i586" and run the opkg update. and then install python-dev.
After installing python-dev i could successfully instal the gevent and "ouimeaux" library. Now my main target is to control the wemo device through this ouimeaux library which is python based.