In this post, we introduce install QT on pcDuino. We directly compile and install QT on pcDuino, and didn’t cross-compile it on PC. As the libraries of QT is pretty large, we suggest to use a large SD.
The following are the installation steps:
1. Download and install qtcreator.
- sudo apt–get install qtcreator
After the installation is done, we can see the IDE of QT. But we still cannot use this at this moment as there is no library of QT yet.
2. Download QT
We need to go to website: http://qt-project.org/downloads to download the embedded version of QT. After download, unzip and enter the directory where the unzipped files located.
3. Install dependency files
http://qt-project.org/downloads
4. Configure QT libraries
pcDuino supports mail400. We need to include OpenGL in the compilation.
- ./configure -no-pch -opengl –prefix=/usr/local/qt/
If you don’t have a directory named /usr/local, please create one.
5. Build and Install
- make
- sudo make install
It will take a very long time. In our case, it takes 36 hours.
6. Configure Environment Variables
Append the following two lines to file /etc/profile:
- PATH=“$PATH:/usr/local/qt/bin”
- export PATH
7. Configure QTcreator:
After this, the configuration is done, and we can begin the journey of QT.
8. Test Drive
The project is using a webcam and displays the video. The entire project can be downloaded here. CameraRead
Leave a Reply
You must be logged in to post a comment.