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.

So, let’s start with connecting  the 4D CAPE to your BBB carefully  as shown in Fig 2 below,

Qt Creator
Fig 2. BBB + 4D CAPE-43T Touch Screen Set Up

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.

Now ssh into the BBB as root by running the below command.

If prompted for a password, type the password and get access to the OS on BBB. After this, run the following commands on the BBB as shown below.

Now, run the ‘ts_calibrate’ command and calibrate the touch screen as shown in the video below.

 

After the calibration, you should see an output as shown below.

Now, test if the calibration was successful by running the below command.

After running the test command, move your finger on the screen while touching as shown in the video below,

While moving your finger on the touch screen, you should be able to see the values corresponding to the touch movements on your shell prompt as shown in the below video.


Install IDE – Qt Creator

Let’s download and install the Qt Creator 4.1.1 i.e. ‘IDE 4.1.1‘ for Linux 64bit. In case if this link is not active or to download the latest version of Qt Creator, please click here.

Now run the below commands to install the Qt Creator. Qt Creator setup file will be present in the ‘Download’ directory.

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.

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

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

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

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.

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.

 

Leave a Reply

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