Instructions to build OLA on latest raspberry pi OS (buster)

55 views
Skip to first unread message

Josh McAuliffe

unread,
Jul 12, 2020, 7:24:52 AM7/12/20
to open-lighting
Hey team, i'm struggling to work out how to successfully build OLA on my raspberry pi 4 - is someone able to type out instructions on how to do it? I want to build from scratch as i want to increase the amount of Artnet inputs available, something i have done before. But it doesn't seem to be working for me now. 

i manged to build and install ola, but once installed it will not run and gives these errors when running olad:

common/file/Util.cpp:135: Could not open /usr/share/ola/pids:No such file or directory
olad/AvahiDiscoveryAgent.cpp:342: Failed to add _ola._sub._http._tcp
common/io/IOUtils.cpp:39: open(/dev/dmx0): No such file or directory
plugins/opendmx/OpenDmxPlugin.cpp:80: Could not open /dev/dmx0 No such file or directory
common/io/IOUtils.cpp:39: open(/dev/kldmx0): No such file or directory
plugins/karate/KaratePlugin.cpp:79: Could not open /dev/kldmx0 No such file or directory

note: I had to work out how to install a handful of the dependancies manually as the instructions from the OLA website seem to be out of date maybe - ie. i had to do apt-get install libmicrohttpd12 - as  libmicrohttpd10 was not found/working.

Maybe im going about this the wrong way, or maybe there are issues with the latest raspbian version, not sure, if anyone can help me that would be very much appreciated,



Peter Newman

unread,
Jul 12, 2020, 7:39:27 AM7/12/20
to open-lighting
Hi Josh,

The only errors there that are possibly problematic are these:
common/file/Util.cpp:135: Could not open /usr/share/ola/pids:No such file or directory
You could ignore it if you're not using RDM, or set the --pid-location argument correctly:

olad/AvahiDiscoveryAgent.cpp:342: Failed to add _ola._sub._http._tcp
You might get this if Bonjour/Avahi isn't installed I guess, again it's not critical; --no-register-with-dns-sd would mute it.

The rest are just for particular plugins, if you disable all the plugins apart from the ones you're using those messages should go away.

Josh McAuliffe

unread,
Jul 12, 2020, 9:52:38 AM7/12/20
to open-lighting
Thanks Peter, will try your suggestions to get it working.

If anyone else feels like punching out the commands needed to build and install OLA on rasp pi OS (buster) without any errors, that would be amazing. i'm not great with linux so when things dont work its a bit of a rabbithole trying to work out what went wrong :/

Josh McAuliffe

unread,
Jul 12, 2020, 10:46:27 AM7/12/20
to open-lighting
also FYI, i disabled all plugins and the errors disappeared but when i try run olad it just hangs and will not run.

Peter Newman

unread,
Jul 12, 2020, 5:52:04 PM7/12/20
to open-lighting
What do you mean by hangs?

You need to browse to the website to see anything http://<IP of Pi>:9090/

If you turn on -l 4 logging:

You'd also see more output. Or run it as a daemon.

Josh McAuliffe

unread,
Jul 14, 2020, 8:42:48 PM7/14/20
to open-lighting
okay my bad, i was forgetting to run olad -f to run ola in background and then was ctrl-c shutting it down before going to browser - MASSIVE DERP!

All seems to be running fine now, I disabled the plugins that were causing errors as i don't need them except one error remains for Avahi:

olad/AvahiDiscoveryAgent.cpp:342: Failed to add _ola._sub._http._tcp

Avahi is installed, but how will the functions of OLA be affected if i ignore/mute this error?

thanks!
josh

Peter Newman

unread,
Jul 15, 2020, 8:11:09 AM7/15/20
to open-lighting
Replies inline.

On Wednesday, 15 July 2020 at 01:42:48 UTC+1 joshfr...@gmail.com wrote:
okay my bad, i was forgetting to run olad -f to run ola in background and then was ctrl-c shutting it down before going to browser - MASSIVE DERP!

Glad you've sorted it!
 
All seems to be running fine now, I disabled the plugins that were causing errors as i don't need them except one error remains for Avahi:

olad/AvahiDiscoveryAgent.cpp:342: Failed to add _ola._sub._http._tcp

Avahi is installed, but how will the functions of OLA be affected if i ignore/mute this error?

Did you try adding the olad command line flag --no-register-with-dns-sd ?

It just means it won't be available via DNS SD. We don't have a full E1.33 implementation yet, so the actual issues will be fairly minor. We could try and troubleshoot them if you'd like? Actually looking at it, mine throws the same error too (unless I disable the option), I'd ignore it for now if I were you!

Josh McAuliffe

unread,
Jul 16, 2020, 3:24:55 AM7/16/20
to open-lighting


On Wednesday, 15 July 2020 20:11:09 UTC+8, Peter Newman wrote:
Replies inline.

On Wednesday, 15 July 2020 at 01:42:48 UTC+1 joshfr...@gmail.com wrote:
okay my bad, i was forgetting to run olad -f to run ola in background and then was ctrl-c shutting it down before going to browser - MASSIVE DERP!

Glad you've sorted it!

yep thanks, has been a while since i tinkered with any of this, seem to have forgotten everything i learned a couple years ago! 
 
All seems to be running fine now, I disabled the plugins that were causing errors as i don't need them except one error remains for Avahi:

olad/AvahiDiscoveryAgent.cpp:342: Failed to add _ola._sub._http._tcp

Avahi is installed, but how will the functions of OLA be affected if i ignore/mute this error?

Did you try adding the olad command line flag --no-register-with-dns-sd ?

It just means it won't be available via DNS SD. We don't have a full E1.33 implementation yet, so the actual issues will be fairly minor. We could try and troubleshoot them if you'd like? Actually looking at it, mine throws the same error too (unless I disable the option), I'd ignore it for now if I were you!

cool, all seems to be running okay except i can only seem to get it working with artnet on broadcast (not unicast) SACN works fine though and i use mad mapper now so am just using that.

Peter Newman

unread,
Jul 17, 2020, 11:43:42 AM7/17/20
to open-lighting
On Thursday, 16 July 2020 at 08:24:55 UTC+1 joshfr...@gmail.com wrote:


On Wednesday, 15 July 2020 20:11:09 UTC+8, Peter Newman wrote:
Replies inline.

On Wednesday, 15 July 2020 at 01:42:48 UTC+1 joshfr...@gmail.com wrote:
okay my bad, i was forgetting to run olad -f to run ola in background and then was ctrl-c shutting it down before going to browser - MASSIVE DERP!

Glad you've sorted it!

yep thanks, has been a while since i tinkered with any of this, seem to have forgotten everything i learned a couple years ago! 
 
All seems to be running fine now, I disabled the plugins that were causing errors as i don't need them except one error remains for Avahi:

olad/AvahiDiscoveryAgent.cpp:342: Failed to add _ola._sub._http._tcp

Avahi is installed, but how will the functions of OLA be affected if i ignore/mute this error?

Did you try adding the olad command line flag --no-register-with-dns-sd ?

It just means it won't be available via DNS SD. We don't have a full E1.33 implementation yet, so the actual issues will be fairly minor. We could try and troubleshoot them if you'd like? Actually looking at it, mine throws the same error too (unless I disable the option), I'd ignore it for now if I were you!

cool, all seems to be running okay

So I did a bit more digging after you mentioned it, and it turns out this was actually a bug in the error logging in the Avahi code which has been present since it was written! If it failed to add them it wouldn't log an error, the rest of the time it was actually logging the okay error! That's now fixed here and will be in the next release:
 
except i can only seem to get it working with artnet on broadcast (not unicast) SACN works fine though and i use mad mapper now so am just using that.

Are you doing Mad Mapper to OLA? There are various Art-Net options here although they should all be for when we're transmitting Art-Net:

Perhaps check the forum archives as a few people have commented on using Mad Mapper amongst others. Or look at Wireshark logging.

Josh McAuliffe

unread,
Jul 17, 2020, 10:41:16 PM7/17/20
to open-lighting


So I did a bit more digging after you mentioned it, and it turns out this was actually a bug in the error logging in the Avahi code which has been present since it was written! If it failed to add them it wouldn't log an error, the rest of the time it was actually logging the okay error! That's now fixed here and will be in the next release:

Oh interesting, great stuff! 

 
except i can only seem to get it working with artnet on broadcast (not unicast) SACN works fine though and i use mad mapper now so am just using that.

Are you doing Mad Mapper to OLA? There are various Art-Net options here although they should all be for when we're transmitting Art-Net:

Perhaps check the forum archives as a few people have commented on using Mad Mapper amongst others. Or look at Wireshark logging.

Ill have a look at wireshark and post results, im not sure what i would be looking for tbh - none of the artnet options seem to fix the unicast issue though. Its not much of a problem for me as i can just use SACN but would be good to have it resolved as if i wanted to use resolume or something i would need artnet to work properly.

Also i would use it on broadcast mode, but when i run artnet on broadcast at home it clogs up my wifi network to the point of it being unresponsive to anything else.
Reply all
Reply to author
Forward
0 new messages