Install Candle linux ubuntu 20.04

Install Candle (old grlb-control) linux ubuntu 20.04

https://github.com/Denvi/Candle

https://github.com/Denvi/Candle/releases/tag/v1.0 (old grbl)

Install Candle Ubuntu Focal 20.04

We cant run candle in ubuntu 64 bits. It gives an ELF error, so we need to replace the executable.

This instructions ar for the version 1.0 as my CNC 3018 have the old firmware.

For the last one, just change the urls and the name of files.

Install Candle Linux

# install pre requesites
sudo apt-get install qt5-default qt5-qmake libqt5serialport5-dev make gcc g++ git

#get the source code
cd ~/src
wget https://github.com/Denvi/Candle/archive/refs/tags/v1.0.tar.gz
tar -xzf Candle-1.0.tar.gz

# make exectutable
cd Candle/src
qmake
make

# get and install release package
cd ..
wget https://github.com/Denvi/Candle/releases/download/v1.0/Candle_1.0.11.tar.gz
sudo tar -zxf Candle_1.0.11.tar.gz -C /opt
sudo mv /opt/Candle /opt/candle-0.9

# replace candle exec
sudo cp src/Candle /opt/candle-0.9/

# go home and update dinamic libs
cd
ldd Candle

# start icon
sudo nano /usr/share/applications/candle-0.9.desktop

[Desktop Entry]
Name=Candle
GenericName=Candle
Comment=CNC controller software
Exec=/opt/candle-0.9/Candle
Icon=/opt/candle-0.9/candle.png
Terminal=false
Type=Application
Categories=Development;Electronics;

# copy image icon to /opt/candle-0.9/
cd ~/src/Candle/src
sudo cp images/candle_256.png /opt/candle-0.9/candle.png

# add user to dialout group and change permission files
sudo usermod -a -G dialout $USER
sudo chown -R $USER:$USER /opt/Candle

Source for candle install

http://naisema.blogspot.com/2017/11/install-candle-on-ubuntu-64bit-machines.html

Install Candle 1.2b from sources on Ubuntu 20.04

git clone https://github.com/Denvi/Candle
cd Candle
git git checkout tags/v1.2b
qmake
make

error

g++: error: unrecognized command line option ‘-Z7’; did you mean ‘-Z’?

Remove -Z7 from Makefile

Error

frmmain.h:73:17: error: looser throw specifier for ‘virtual const char* CancelException::what() const’

Change this:

const char* what() const override

to this:

const char* what() const noexcept override

Error

g++: error: /DEBUG: No such file or directory
g++: error: /OPT:REF: No such file or directory

Remove /DEBUG /OPT:REF from Makefile

Runtime error solving

In frmmain.cpp:

Replace

m_settingsFileName = qApp->applicationDirPath() + “/settings.ini”;

With

#ifdef WINDOWS
m_settingsFileName = qApp->applicationDirPath() + “/settings.ini”;
#else
m_settingsFileName = QDir::homePath() + “/.config/Candle/settings.ini”;
#endif

Source of make problem solutions

https://adrian.siemieniak.net/portal/candle-1-2b-for-linux/