pihnat / rpi-Candle

Running Candle on a Raspberry Pi 4
32 stars 4 forks source link

Support for rPi 5? #14

Open zachariahfuller opened 2 months ago

zachariahfuller commented 2 months ago

So I had this running on my pi 4 beautifully. Unfortunately I had to pull it out of my 3d printer to do so, which wasn't a long-term solution, so naturally I felt justified in buying more hardware, namely a shiny new Pi 5. Unfortunately, it seems that the default bookworm image doesn't have something that rpi-candle wants. When I try to execute it from the terminal:

bash: ./Candle: cannot execute: required file not found.

This same behavior was observed on a Pi OS image upgraded to Bookworm from an earlier version, and one installed fresh from the imager tool. I had seen that there were some issues with the upgrade process, but I think I've ruled that out.

Anyway, since the terminal isn't forthcoming with what is missing, I figured I would try my hand at compiling it myself. I started by trying to install qt5 per the guide on the wiki. Unfortunately I was stopped by the fact that the main package is... well:

Package 'qt5-default' 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.

Any recommendations? I appreciate this is probably more of a general Linux question and less of an issue.

Alpusa commented 1 week ago

Install the qt packages

sudo apt install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libqt5serialport5-dev -y

sudo qtchooser -install qt5 /usr/lib/qt5/bin/qmake

build it using

cd Candle qmake make

InDevBrian commented 1 week ago

pi 5 here too, couldn't get it to run with the above but following the wikis steps for building with qtcreator did work for me. there's some ui updating issues that are pretty intrusive and the gcode visualizer doesn't work but it seems to be communicating with my router properly.