Option 1: QtCreator GUI Build and Run
- Launch Qt Creator
- Make sure you have the source code for Grbl Controller: in a terminal window, go back to your home folder: cd ~
- mkdir github
- cd github
- git clone https://github.com/zapmaker/GrblHoming
- In QtCreator, open existing project, navigate to github/GrblHoming and open GcodeSenderGUIthreads.pro
- Choose the default Desktop mode which should be checked and click Configure Project
- Click the green arrow to run. This will take a while to build and Grbl Controller should eventually launch.
After running you will need to pick the correct USB serial port. In the drop down of available ports, it may have USB in the name or it may be ttyS0.
Extra! Running Ubuntu in VirtualBox with pass-through USB – Only for the Adventurous
If you are running Ubuntu in VirtualBox on Windows, you’ll need to do the following:
- In VirtualBox, open Settings on your OS and go to USB and click Add (this assumes you installed VirtualBox with USB support).
- Pick the Arduino entry and then move it to the top of the list.
- Restart the Linux virtual machine – if Windows 7 you should see a “Device Driver Installation” popup appear with “Unidentified Device” – wait about 5 minutes or so for it to finish. It should find “VirtualBox USB” and say Ready to Use”.
- In a terminal window, cd into the folder that starts with “build…” in the github folder where QtCreator created the executable (tip: don’t type the 50 character long folder in by hand, just type a couple of characters and then hit the tab key – it will autocomplete the entire filename).
- Type sudo ./GrblController
- It will ask you to type your admin password (this step is required since Linux won’t open the serial port if not admin)
- In the Grbl Controller dropdown, pick ttyACM0 and Open. You should see the friendly greeting of grbl.
Option 2: Command Line
1. Open terminal window to your GrblHoming folder
2. Type qmake -config release -spec linux-g++ GcodeSenderGUIthreads.pro
3. Type make
4. To launch, type ./GrblController
Since you may not have sufficient permissions to access the executable, you can launch it like so:
Or create a shell script to do this for you:
1. gedit g.sh
2. Enter this text and save
3. chmod +x g.sh
4. Type this to run: ./g.sh