Qt touchscreen

Setup Qt with LCD Touch on Beaglebone – PART III

In the previous part i.e. PART-II, I have shown how to set up the crossbuild toolchain for your BBB. In this part, I will walk you through the steps needed to install the touchscreen libraries for Qt & Qt Lib/Configurations.

Steps to Install Touchscreen Library for Qt & Qt Lib/Configurations

Follow the below steps very carefully. I will say this again “Follow the below steps very carefully ” double checking each of them.

S-1: Clone the touch screen libraries from Github.

S-2: Run the below commands.

S-3: Run the below commands within the ‘tslib’ directory present in the ‘Downloads’ directory.

S-4: Then run the shell script ‘autogen.sh’ .

S-5: You should see an output like below.

S-6: Then run the command to configure as shown below.

S-7: After the configuration completes, you should see an output like below.

S-8: Now, run the below commands.

S-9: Next, follow the below process.

S-10: Open ts.conf (file) using command: sudo nano ts.conf, as shown below.

S-11: In the ‘ts.conf’ file, uncomment the line “#module_raw input” by removing the‘#’ as shown below.

S-12: Download “qt-everywhere-opensource-src-4.8.2.tar.gz (228MB)” from here. After the download completes, run the below commands.

S-13: Now in home directory, create a directory called ‘qt_src’ as shown below.

S-14: Move ‘qt-everywhere-opensource-src-4.8.2’ in the ‘Downloads’ directory to the ‘qt_src’ directory,  and run the following commands as shown below.

S-15: Now open the ‘qmake.conf’ file using the nano editor as shown below.

S-16: Replace the entire content of the ‘qmake.conf’ file with the below contents, or edit the contents of the ‘qmake.conf’ file to match the below contents. I advise on just replacing the entire content with the below one to prevent missing out anything.

S-17: Now, run the below command to install supporting libraries.

S-18: Now run the configure command with the following parameters as shown below, before we proceed with make.

S-19: At the end of the completion of configuration, you should see an output like below.

S-20: Now run the ‘make’ command and this should take about 1 hour 30 minutes to complete.

S-21: In the meantime, you can take a break or check out my post on how to set up open sdk toolchain, for esp8266 here.

S-22: After the make completes, run the below command.

S-23: Then, check if the‘qt4.8.2-armhf’ directory exists as shown below.

In the next part of this series i.e. PART-IV, I will show you how to integrate Qt, touchscreen libraries and setting up the Qt Creator IDE to build and deploy your Qt applications.

Leave a Reply

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