RGB Matrix + RTC Hat... can't compile rgbmatrix.so

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
spencerk
 
Posts: 16
Joined: Fri Jan 04, 2013 9:55 am

RGB Matrix + RTC Hat... can't compile rgbmatrix.so

Post by spencerk »

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

User avatar
adafruit2
 
Posts: 22144
Joined: Fri Mar 11, 2005 7:36 pm

Re: RGB Matrix + RTC Hat... can't compile rgbmatrix.so

Post by adafruit2 »

ill let philb post up with any hints when he's up, but try apt-get install python-dev?

User avatar
spencerk
 
Posts: 16
Joined: Fri Jan 04, 2013 9:55 am

Re: RGB Matrix + RTC Hat... can't compile rgbmatrix.so

Post by spencerk »

I will try that tonight. Will check and see if that is in the tutorial.

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: RGB Matrix + RTC Hat... can't compile rgbmatrix.so

Post by pburgess »

D'oh! Guide updated, python-dev is indeed a prerequisite to compiling the module.

User avatar
spencerk
 
Posts: 16
Joined: Fri Jan 04, 2013 9:55 am

Re: RGB Matrix + RTC Hat... can't compile rgbmatrix.so

Post by spencerk »

No worries... This thing JUST came out didn't it?

User avatar
spencerk
 
Posts: 16
Joined: Fri Jan 04, 2013 9:55 am

Re: RGB Matrix + RTC Hat... can't compile rgbmatrix.so

Post by spencerk »

OK, can verify, everything working as expected now.

User avatar
bsbwtim
 
Posts: 5
Joined: Tue Mar 01, 2011 10:08 pm

Re: RGB Matrix + RTC Hat... can't compile rgbmatrix.so

Post by bsbwtim »

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?

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: RGB Matrix + RTC Hat... can't compile rgbmatrix.so

Post by pburgess »

Oh foo. Try:

Code: Select all

sudo apt-get install python-imaging
I think latest Raspbian has this baked in, but maybe not. I'll add it to the guide regardless.

User avatar
bsbwtim
 
Posts: 5
Joined: Tue Mar 01, 2011 10:08 pm

Re: RGB Matrix + RTC Hat... can't compile rgbmatrix.so

Post by bsbwtim »

That did it!
The Raspbian I installed was from the latest NOOBS image; perhaps the python-imaging is missing from it.
Thank you!

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”