Setup Qt with LCD Touch on Beaglebone – PART IV

In the previous part i.e. PART-III, I have shown how to set up the touchscreen libraries and Qt toolchain. In this PART-IV, I will show you how to integrate Qt and the touchscreen libraries with your BBB. After this, we shall also wrap with installing and setting up the Qt Creator IDE for you to build and deploy your applications.

Connect the RJ45 ethernet cable to your BBB and power up your BBB. Your set up should look like in Fig 2. You can boot the BBB from emmc Flash or from the SD card as well. To know more about how to write a Debian OS image to the BBB emmc or create an SD card image, please view the tutorial here.

Qt and touch screen Library Setup on BBB

Run the below commands to copy the Qt and touch screen supporting files to the BBB as shown below.

After running the above command, you should be able to install the Qt creator as shown here. Once the Qt Creator has been installed, run the below commands.

Shell

1

vinaydivakar@debian:~$sudo apt-getinstall qt4-dev-tools

Then run the ‘qmake -v’ command as shown below, to check details of your installed Qt Creator.

Shell

1

vinaydivakar@debian:~$qmake-v

For the above command, you should see an output as shown below.

Shell

1

2

QMake version2.01a

Using Qt version4.8.6in/usr/lib/x86_64-linux-gnu

Now let’s install the remote GDB debugger by running the below command.

Shell

1

vinaydivakar@debian:~$sudo apt-getinstall gdb-multiarch

In PART V we should be up and be running our Qt applications on Embedded Linux i.e. BBB. Before going ahead, I’d suggest you create a login password to ssh into your BBB in case you haven’t. This will prevent your colleagues, tech buddies or some random person from intruding into your BBB and messing up things. To set the password for your BBB, follow the below commands.

Shell

1

2

vinaydivakar@debian:~$ssh root@192.168.1.74

root@beaglebone:~# passwd

You will then be prompted to enter your new password and set it. So, next time when you ssh into your BBB, you will be asked for this password to get ssh access into your BBB.

To configure Qt Creator, there are a series of steps to set up the kit for compiling the Qt program on your Host Machine and deploying it to your BBB by just one click which will be shown in the next and the last part of this series i.e.PART-V.