Hi,
Before going into the endless loop of
UndefinedObject(Object)>>#doesNotUnderstand: nil, calling the platform function fails. Primitive failed calling 'RaspberryALSA':spaOpenOnDevice from PlatformFunction>>#callWith:with: due to OS error1. The walkback log is attached.
For one test I changed '
RaspberryALSA' to '
RaspberryALSAXX' and got the same error. That seems to imply the .so isn't being found. The .ini file contains:
RaspberryALSA=/usr/lib/aarch64-linux-gnu/spa-0.2/alsa/libspa-alsa.so
which I sure seems like the path to the lib.
OS Error1 means (I think) permission deigned but it seems it can also mean the lib wasn't found.
I tried a bunch of things to see if the problem was in the abt.ini file. I commented out all the RaspberryGpio... libs that control the GPIO pins, in all the .ini files I could find. The thought was that if I run the program in test mode in the dev env it should get the same error because the libs wouldn't be found. Well, I don't know how but the program works just fine. How it finds the libs (.so files) I don't know? Maybe they are defaulted somewhere?
; RaspberryGpio=libpigpio.so
; RaspberryGpioDaemon=libpigpiod_if2.so
; RaspberryGpioUltrasonicDaemon=libpigpioultrasonic.so
; RaspberryALSA=/usr/lib/aarch64-linux-gnu/spa-0.2/alsa/libspa-alsa.so
I also added this to the ini file:
RaspberryALSA=/usr/lib/aarch64-linux-gnu/libasound.so.2
to see if I was using the wrong lib. No joy.
Now to look more into OS Error1. But everything runs as root so...
Lou