Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for guidance on manual 10.9 build - RPi 4 #1907

Open
milksteakjellybeans opened this issue Sep 28, 2023 · 3 comments
Open

Request for guidance on manual 10.9 build - RPi 4 #1907

milksteakjellybeans opened this issue Sep 28, 2023 · 3 comments

Comments

@milksteakjellybeans
Copy link

I could really use some direction, I thought I was on the right track but now I'm not sure.

Here's what I'm trying to do,

I'm trying to use olad to confirm that my most basic setup is working before I dive any deeper with DMX. My setup is a raspberry pi 4 running raspberry pi os 64-lite, attached via uart/gpio to a dmx plug, that is in turn attached to a dmx cable and a dmx capable strobe light. I just want to be able to turn the light on/off to prove the hardware works before anything more advanced.

Here's where I'm at,

Initially I installed the ola package from the debian package repository. For raspberry pi os, that's still bullseye debian based, so it picked up ola 0.10.8. I got the web ui working but in the logs I saw the message:

... Failed to set baud rate to 250k

So I found the bugs / support tickets around that:

#1749
#1760
#1884

In particular I saw this message:
#1884 (comment)

So I tried to give building ola a shot.

Building 10.9 Attempt

~/ola/ola-0.10.9 $ debuild
 dpkg-buildpackage -us -uc -ui
dpkg-buildpackage: info: source package ola
dpkg-buildpackage: info: source version 0.10.9-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Peter Newman <bugs@pjnewman.co.uk>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture arm64
dpkg-source: info: using options from ola-0.10.9/debian/source/local-options: --single-debian-patch
dpkg-checkbuilddeps: error: Unmet build dependencies: python python-protobuf libusb-1.0-0-dev libftdi1-dev liblo-dev libmicrohttpd-dev libncurses5-dev libavahi-client-dev python-numpy
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui failed

I tried to install all the dependencies from the error in one big apt install but some of them could not be identified, at least python-protobuf python-numpy

So, I went back to #1884
and tried to use these instructions,

./configure --enable-rdm-tests
make
make check
sudo make install
sudo ldconfig

Following that, I installed packages as ./configure needed, although when I got to python-protobuf, I instead installed python3-pip followed by

pip install protobuf

which seemed to get me past the configure failure.

After all that it DID seem like I had ola:

~/ola/ola-0.10.9 $ olad -v
OLA olad version: 0.10.9

It seems to run fine, but now I can't seem to get back to the Web UI. This is a headless install.

So, Questions,

  • What is the preferred method to build ola for non-development use?
  • If the preferred install method is via debuild, how can I get past this error?
    dpkg-checkbuilddeps: error: Unmet build dependencies: python python-protobuf python-numpy See below.
  • How do I go about enabling the web ui? Is this a build option? I noticed this:
    "If you built OLA with http support you can just use the web interface on http://localhost:9090" (source: https://www.openlighting.org/ola/getting-started/using-ola/ )

Appendix - Errors with dependent package install?

~# apt install python python-protobuf python-numpy
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'python-is-python2' instead of 'python'
Package python-numpy is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package python-protobuf
E: Package 'python-numpy' has no installation candidate
@gobo-ws
Copy link
Contributor

gobo-ws commented Sep 28, 2023

Here are my guide for RPi 4, hopefully it is still valid: https://github.com/gobo-ws/misc/blob/master/OLA_install_RPi4.md

@milksteakjellybeans
Copy link
Author

thanks for your input, I will give this a shot!

One question though, with these instructions would you expect the web interface to be available with olad once compiled and running? Thanks!

@milksteakjellybeans
Copy link
Author

I appear to be up and running now. Thanks! I'm not sure what exactly was out of whack. I added a few dependencies from your instructions (https://github.com/gobo-ws/misc/blob/master/OLA_install_RPi4.md) that I hadn't installed, then:

make clean
./configure --disable-unittests --disable-examples --enable-http --disable-doxygen-doc --disable-all-plugins --enable-uartdmx
make
sudo make install

I'm not sure if it was the extra dependencies or the --enable-http or both, but I'm no longer stuck. Thanks!

I'll redo everything from scratch later today so I have a setup that's reproducible but for now, all good, thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants