I've soldered up the hat and the precompiled software works (the 32x32 matrix is BRIGHT!) but the python library will not compile!
I'm running this on a fresh image of wheezy and updated everything. any thoughts?
---------
g++ -Iinclude -Wall -O3 -g -fno-strict-aliasing -DADAFRUIT_RGBMATRIX_HAT -c -o rgbmatrix.o rgbmatrix.cc
rgbmatrix.cc:10:30: fatal error: python2.7/Python.h: No such file or directory
compilation terminated.
Makefile:31: recipe for target 'rgbmatrix.o' failed
make: *** [rgbmatrix.o] Error 1
RGB Matrix + RTC Hat... can't compile rgbmatrix.so
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- spencerk
- Posts: 16
- Joined: Fri Jan 04, 2013 9:55 am
- adafruit2
- Posts: 22144
- Joined: Fri Mar 11, 2005 7:36 pm
Re: RGB Matrix + RTC Hat... can't compile rgbmatrix.so
ill let philb post up with any hints when he's up, but try apt-get install python-dev?
- spencerk
- Posts: 16
- Joined: Fri Jan 04, 2013 9:55 am
Re: RGB Matrix + RTC Hat... can't compile rgbmatrix.so
I will try that tonight. Will check and see if that is in the tutorial.
- pburgess
- Posts: 4161
- Joined: Sun Oct 26, 2008 2:29 am
Re: RGB Matrix + RTC Hat... can't compile rgbmatrix.so
D'oh! Guide updated, python-dev is indeed a prerequisite to compiling the module.
- spencerk
- Posts: 16
- Joined: Fri Jan 04, 2013 9:55 am
Re: RGB Matrix + RTC Hat... can't compile rgbmatrix.so
No worries... This thing JUST came out didn't it?
- spencerk
- Posts: 16
- Joined: Fri Jan 04, 2013 9:55 am
Re: RGB Matrix + RTC Hat... can't compile rgbmatrix.so
OK, can verify, everything working as expected now.
- bsbwtim
- Posts: 5
- Joined: Tue Mar 01, 2011 10:08 pm
Re: RGB Matrix + RTC Hat... can't compile rgbmatrix.so
I get a slightly different error:
g++ -Iinclude -Wall -O3 -g -fno-strict-aliasing -DADAFRUIT_RGBMATRIX_HAT -c -o rgbmatrix.o rgbmatrix.cc
rgbmatrix.cc:11:31: fatal error: python2.7/Imaging.h: No such file or directory
compilation terminated.
Makefile:31: recipe for target 'rgbmatrix.o' failed
make: *** [rgbmatrix.o] Error 1
pi@raspberrypi ~/rpi-rgb-led-matrix-master $
----------
I had the previously mentioned "Python.h"error earlier, and upgraded the Pi today. This "Imaging.h" error occurs after I have done a re-install of the entire Pi, including python-dev.
Any ideas??
Any ideas?
g++ -Iinclude -Wall -O3 -g -fno-strict-aliasing -DADAFRUIT_RGBMATRIX_HAT -c -o rgbmatrix.o rgbmatrix.cc
rgbmatrix.cc:11:31: fatal error: python2.7/Imaging.h: No such file or directory
compilation terminated.
Makefile:31: recipe for target 'rgbmatrix.o' failed
make: *** [rgbmatrix.o] Error 1
pi@raspberrypi ~/rpi-rgb-led-matrix-master $
----------
I had the previously mentioned "Python.h"error earlier, and upgraded the Pi today. This "Imaging.h" error occurs after I have done a re-install of the entire Pi, including python-dev.
Any ideas??
Any ideas?
- pburgess
- Posts: 4161
- Joined: Sun Oct 26, 2008 2:29 am
Re: RGB Matrix + RTC Hat... can't compile rgbmatrix.so
Oh foo. Try:
I think latest Raspbian has this baked in, but maybe not. I'll add it to the guide regardless.
Code: Select all
sudo apt-get install python-imaging
- bsbwtim
- Posts: 5
- Joined: Tue Mar 01, 2011 10:08 pm
Re: RGB Matrix + RTC Hat... can't compile rgbmatrix.so
That did it!
The Raspbian I installed was from the latest NOOBS image; perhaps the python-imaging is missing from it.
Thank you!
The Raspbian I installed was from the latest NOOBS image; perhaps the python-imaging is missing from it.
Thank you!
Please be positive and constructive with your questions and comments.