309.4. candle2-2.4
GRBL CNC and laser controller with a G-code visualiser, height maps and jogging (Qt 5)
2.4-1 · GPL-3.0-or-later · 0.6 SBU · 1.1 MiB, 4 files · 44_apps, 125 of 422 · ports/core/fabrication/candle2
Homepage: https://github.com/Schildkroet/Candle2
Candle2 sends G-code to a CNC machine or laser running GRBL over a serial port, and shows the toolpath in a 3D view while the job runs, with jogging, work coordinates, height maps for uneven stock and user command buttons. It is a Qt 5 program built with qmake.
Depends on: qt5-qtbase, qt5-qtserialport, qt5-qtwayland, mesa, libglvnd.
Required by: no port names it.
Sources: candle2-2.4.tar.gz (360.1 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install candle2'
build.sh:
cd src
/usr/lib/qt5/bin/qmake CONFIG+=release candle2.pro
make
install -Dm755 Candle2 "$PKG/usr/bin/candle2"
install -Dm644 images/candle_256.png "$PKG/usr/share/icons/hicolor/256x256/apps/candle2.png"
install -d "$PKG/usr/share/applications"
cat > "$PKG/usr/share/applications/candle2.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Candle
GenericName=CNC Controller
Comment=Send G-code to a GRBL CNC machine or laser and watch the toolpath
Exec=env QT_QPA_PLATFORM=xcb candle2
Icon=candle2
Terminal=false
StartupWMClass=candle2
Categories=Qt;Utility;Engineering;
Keywords=cnc;grbl;gcode;g-code;mill;router;laser;sender;
DESKTOP
chmod 644 "$PKG/usr/share/applications/candle2.desktop"
Programs: candle2.
Directories: /usr/share/licenses/candle2.
The desktop entry runs env QT_QPA_PLATFORM=xcb candle2, so the program runs under Xwayland rather than on Qt’s Wayland platform; like Brasero’s, the entry forces X11 because the native path is broken (see Xwayland and X11 applications). Candle2 draws its 3D view with a widget derived from QGLWidget, Qt 5’s legacy OpenGL widget, whenever Qt is built for desktop OpenGL rather than OpenGL ES, and Qt 5’s Wayland platform composites that widget as transparent: on Wayland the view shows whatever is behind the window. Under xcb the same widget draws the toolpath. The window’s X11 instance name is candle2, which is the entry’s StartupWMClass and how KWin finds the window’s icon. Started as plain candle2 from a prompt in the session, the program runs on Wayland with the empty view.