6. Compiling and running with QtCreator on the Pi

One problem with the Pi is that QtCreator doesn’t allow out-of-the-box compiling and debugging.

To solve this, do the following:

  1. Open QtCreator
  2. Open Grbl Controller project by opening ~/github/GrblHoming/GcodeSenderGUIthreads.pro
  3. You are now prompted to create an Embedded project, which won’t work. Go to Tools > Options and pick the Tool Chains tab and then Manual and press the Add button on the right, picking GCC
  4. Browse the compiler path to /usr/bin/gcc
  5. Browse the debugger path to /usr/bin/gdb
  6. Click OK
  7. You should now be able to click on the Configuration icon in the lower left, click the link in the popup to configure and pick Qt 4.8.2 in PATH (System) Release
  8. QtCreator should now start processing this and the hammer (build) icon in the lower left should become highlighted. Press it and it should build the project.


  1. On the left, click on Projects and go to Run Settings tab
  2. For Deployment, add new “No deployment” item
  3. For Run configuration, add new custom executable and point to /home/pi/github/GrblHoming/GrblController (also the path in the Executable field). Leave other settings alone.
  4. You should now see the arrows in the lower left turn green. Clicking the green arrow will start GrblController.
(to do)

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>