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

Raspberry Pi support #22

Open
mterencelao opened this issue Jun 5, 2024 · 6 comments
Open

Raspberry Pi support #22

mterencelao opened this issue Jun 5, 2024 · 6 comments

Comments

@mterencelao
Copy link

Builds for ARM64 boards are much appreciated. I've put together a portable computer using Raspberry Pi and happen to own a Pokit Pro. Having this running on my Raspberry Pi would help reduce my dependence on phones.

@pcolby
Copy link
Owner

pcolby commented Jun 5, 2024

Hi @mterencelao, have you tried it? I don't have access to RPi at the moment, but I would expect it the build and run okay, as long as the RPi's Bluetooth adapter is compatible with Bluez.

If you get a chance to try it, let us know how it goes. If you run into any issues, let us know, and I might be able to help 😄

@mterencelao
Copy link
Author

Are you able to specify which Qt libraries are needed to build from source? I'm running Arch Linux ARM.

@pcolby
Copy link
Owner

pcolby commented Jun 6, 2024

I'm not sure about Arch, but as an example, this is the full set of packages you'd want for Ubuntu's Qt5:

qtbase5-dev qtbase5-doc-dev qtconnectivity5-dev qtconnectivity5-doc-html qttools5-dev qttools5-dev-tools

Or for Qt6:

qt6-base-dev qt6-base-dev-tools qt6-connectivity-dev qt6-l10n-tools qt6-tools-dev qt6-tools-dev-tools

Additionally:

  • for code coverage reporting: lcov
  • for documentation: doxygen

Cheers.

@mterencelao
Copy link
Author

It builds and runs successfully! But my files are all over the place. I'll have to find a suitable external storage before I attempt again. But first test got me this result:

$ ./dokit status
qt.bluetooth.bluez: Missing CAP_NET_ADMIN permission. Cannot determine whether a found address is of random or public type.
dokit.cli.command: Looking for first available Pokit device...
Device name:           PokitPro
Firmware version:      2.0
Maximum voltage:       850
Maximum current:       10
Maximum resistance:    3000
Maximum sampling rate: 1000
Sampling buffer size:  16384
Capability mask:       0
MAC address:           84:FD:27:86:DA:08
Device status:         Idle (0)
Battery voltage:       4.103
Battery status:        Good (1)
Switch position:       Voltage (0)
Charging status:       Discharging (0)

@mterencelao
Copy link
Author

How do you install this, by the way? Or is there no such thing as installing?

@pcolby
Copy link
Owner

pcolby commented Sep 12, 2024

There's currently no official installer. It you have linuxdeploy installed, then you can run: make cli-appimage to build an AppImage that you can deploy to other Linux machines.

What kind of install options would you be interested in? make install? A *.deb? etc? (Just curious / gauging interest 🙂)

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