nagimov / adxl345spi

ADXL345 three-axis accelerometer reader (SPI interface)
GNU General Public License v3.0
62 stars 23 forks source link

Package 'pigpio' has no installation candidate #9

Closed Deneteus closed 1 year ago

Deneteus commented 3 years ago

I have PIGPIOD installed but it's giving an error about no installation candidate.

image

I am trying to get this setup on an RPI3.

Deneteus commented 3 years ago

After much wrangling I was able to get it to work after a reboot. image

nagimov commented 3 years ago

This looks like an apt issue to me. Unfortunately I am not familiar with the octopi and its tweaks and differences from raspbian.

Deneteus commented 3 years ago

This looks like an apt issue to me. Unfortunately I am not familiar with the octopi and its tweaks and differences from raspbian.

That is Raspbian.

image

nagimov commented 3 years ago

Yes octopi is based on raspbian, but it's tweaked and repackaged via CustomPiOS. Sorry I don't have the resources to test against multiple distributions. If you have issues with adxl on octopi, I would recommend running octoprint on standard raspbian, e.g. via docker (there are octpprint images compiled for arm).

Deneteus commented 3 years ago

I am way ahead of you. I already setup a PI with the stock Raspbian image to test it there when I made the post. I'll let you know if I find a solution. It looks like it may be an environment path issue to me but I haven't had time to test further.

Turbine1991 commented 2 years ago

Yes octopi is based on raspbian, but it's tweaked and repackaged via CustomPiOS. Sorry I don't have the resources to test against multiple distributions. If you have issues with adxl on octopi, I would recommend running octoprint on standard raspbian, e.g. via docker (there are octpprint images compiled for arm).

Same issue with Armbian Ubuntu.

Solution:

git clone https://github.com/joan2937/pigpio.git && cd pigpio
sudo make install

But there's other bugs with adxl345spi, it needs an update too.

dxl345spi.c: In function ‘printUsage’:
adxl345spi.c:28:34: warning: ‘%s’ directive argument is not a nul-terminated string [-Wformat-overflow=]
+---------------------------------------------------------+
|Sorry, this system does not appear to be a raspberry pi. |
|aborting.                                                |
+---------------------------------------------------------+

Seriously.. that's why we have WiringPI for our various boards.