adafruit / DotStarPiPainter

Light painting project for Raspberry Pi + DotStar strips
14 stars 6 forks source link

Pi OS Bullseye lightpaint.so: undefined symbol: __pow_finite #3

Open mikeysklar opened 1 year ago

mikeysklar commented 1 year ago

The DotStarPiPainter guide mentions that the lightpaint.so library will occasionally need to be re-compiled. This is the case for a Pi OS Bullseye release.

Easy enough, but perhaps a style issue with the source.

Is it better to include the python specific release in the Makefile compiler flags or in the #include in the lightpaint.c.

I'm pretty sure the answer is Makefile.

lightpaint.c - change from including python3.5 to any python release.

#include <Python.h>

Makefile - added compiler flags to include python3.9 folder

PY     = 3.9
CFLAGS = -fPIC -Ofast -fomit-frame-pointer -funroll-loops -I/usr/include/python${PY}
schwarzmalte commented 10 months ago

Thanks @mikeysklar, that worked for me!

For my RaspberryPi 4B I got the error: OSError: /dev/spidev0.0 does not exist

The solution provided here works for me:

https://raspberrypi.stackexchange.com/questions/127793/raspberry-pi-4b-no-dev-spidev0-0