I plan to do embedded image processing. I plan to use embedded Linux + OpenCV + QT. I started to use OpenCV yesterday and checked QT today. QT will first get the content under Linux and try to get the basic information before going home, then it can run on the board.
Qt details: click here
Qt: click here
Recommended reading:
Install and configure Gtk and QT compiling environments in Ubuntu
Build a QT environment in Linux
Solution for failure to run the QT console program in Ubuntu and how to configure XTerm
How to port QT4.7.4 in Ubuntu 10.04
Create a desktop startup icon for the installed Qt Creator in Linux
Install QT Creator 2.5.0 on Ubuntu 11.04
Qt creator for PlayBook Installation Process
Software Environment
Linux: Ubuntu 12.04X86
QT: 4.8.4
QT Installation
The early versions of QT are somewhat different from the current versions, and the files provided are also different. The latest version is 5.0. Here I use 4.8.4, A complete QT should include the QT library and IDE, that is, the QT creator. During installation in Linux, there are three main methods:
1. Install the binfile directly. The file name is qt-sdk -......, One. /bin directly includes all related tools, which is the most simple and convenient to install. However, the binfile of the general sdk cannot be found in 4.8.4 on several websites. The old version is still available.
2. Install using atp-get In Ubuntu as follows (not verified)
Sudo apt-get install qt4-dev-tools # Development Kit sudo apt-get install qtcreator # IDE sudo apt-get install qt4-doc # development help documentation sudo apt-get install qt4-qtconfig # Configuration tool sudo apt-get install qt4-demos # DEMO source code QT
3. This is the method used in this article. It is to download the source code package and compile and install it on your own, which is the most troublesome, but it is learning. Now, you can only download the source code package, then we should first learn this method.
Software Download
QT has several download site, Here summary, since Nokia gave up Meego, dismissed Qt Development Team, Qt commercial version of the website moved to qt.digia.com, and open source version is put to the qt-project.org:
1, first of all is Nokia's official website http://qt.digia.com/This is not very convenient, want to quickly download and then see the following.
This website requires the user name and email address. It will be sent to the email and I will post the address I received. The following is a summary of the addresses in the email. The linux source code is the commercial version.
Qt 4.8.4 for embedded Linux
Http://dist.qt.digia.com/developer/download/qt-everywhere-commercial-src-4.8.4.tar.gz
Installing Qt for embedded Linux
Http://qt-project.org/doc/qt-4.8/qt-embedded-install.html
Qt communications cial Charts 1.1.0
Http://dist.qt.digia.com/developer/download_charts/qt-commercial-charts-src-1.1.0.tar.gz
Qt 5.0.0 Sources
Http://dist.qt.digia.com/developer/download_50/qt-everywhere-commercial-src-5.0.0.tar.gz
Qt 4.8.4 for Windows (Src and VS2008 32bit Binary)
Http://dist.qt.digia.com/developer/download/qt-win-commercial-4.8.4-vs2008.exe
Qt Visual Studio Addin 1.1.11 for Qt4 (Binary)
Http://dist.qt.digia.com/developer/download/qt-vs-addin-1.1.11.exe
Qt 4.8.4 for Windows (Src and VS2010 32bit Binary)
Http://dist.qt.digia.com/developer/download/qt-win-commercial-4.8.4-vs2010.exe
Qt 4.8.4 for Windows (Src and MinGW 32bit Binary)
Http://dist.qt.digia.com/developer/download/qt-win-commercial-4.8.4-mingw.exe
Qt Creator 2.6.1 for Windows (32bit Binary)
Http://dist.qt.digia.com/developer/download_creator/qt-creator-win-commercial-2.6.1.exe
Qt 4.8.4 for Windows (Src and VS2010 64bit Binary)
Http://dist.qt.digia.com/developer/download/qt-win-commercial-4.8.4-vs2010-64bit.exe
Qt communications cial Charts 1.1.0
Http://dist.qt.digia.com/developer/download_charts/qt-commercial-charts-src-1.1.0.zip
Qt 5.0.0 Sources
Http://dist.qt.digia.com/developer/download_50/qt-everywhere-commercial-src-5.0.0.zip
Qt 5.0.0 Offline SDK for Windows (32-bit Binary)
Http://dist.qt.digia.com/developer/download_50/qt-windows-commercial-5.0.0-msvc2010_32-x86-offline.exe
Qt Visual Studio Addin 1.2.0 for Qt5 (Binary)
Http://dist.qt.digia.com/developer/download_50/qt-vs-addin-1.2.0.exe
2. QT-project download http://qt-project.org/downloads
This website is much clearer and clearly classified, as shown in.
It should be noted that the Qt libraries 4.8.4 for embedded Linux (236 MB) download link and Qt libraries 4.8.4 for Linux/X11 (225 MB) download is actually a thing, the link addresses I see are the same, which is what we need in Linux. In addition, download the ide qt Creator used for development from this page. This is a binfile and can be directly installed.
QT compilation and Installation
1. copy the file to the desired folder and decompress it:
tar zxvf qt-everywhere-opensource-src-4.8.4.tar.gz
2. Enter the decompressed file directory and execute the configuration.
root@emouse:~/study# cd qt-everywhere-opensource-src-4.8.4/
Root @ emouse :~ /Study/qt-everywhere-opensource-src-4.8.4 #./configure
You can also add the configuration prefix here..
/configure
-prefix
/opt/qt-4
.8.4-x11
In this case, the files in the later compilation process will be copied/opt/qt-4
. 8.4-x11 directory (the directory will be automatically created if it does not exist), the advantage is that the source code is easy to manage,
For this part of prefix configuration, I can find this part of code in the config file. For more information, see the corresponding configuration and the default installation directory without configuration, the code is located in row 3594, as shown below:
#-------------------------------------------------------------------------------
# Post process QT_INSTALL _ * variables
#-------------------------------------------------------------------------------
# Prefix
If [-z "$ QT_INSTALL_PREFIX"]; then
If ["$ pai_dev" = "yes"]; then
QT_INSTALL_PREFIX = "$ outpath" # In Development, we use sandboxed builds by default
Elif ["$ PLATFORM_QWS" = "yes"-o "$ PLATFORM_QPA" = "yes"]; then
If ["$ PLATFORM_QPA" = "yes"]; then
QT_INSTALL_PREFIX = "/usr/local/Trolltech/QtLighthouse-$ {QT_VERSION }"
Else
QT_INSTALL_PREFIX = "/usr/local/Trolltech/QtEmbedded-$ {QT_VERSION }"
Fi
If ["$ PLATFORM "! = "$ XPLATFORM"]; then
QT_INSTALL_PREFIX = "$ {QT_INSTALL_PREFIX}-$ {pai_arch }"
Fi
Elif [-d "$ EPOCROOT"] & ["$ XPLATFORM_SYMBIAN" = "yes"]; then
If ["$ XPLATFORM_SYMBIAN" = "yes"]; then
QT_INSTALL_PREFIX = "$ EPOCROOT/epoc32 /"
QT_INSTALL_LIBS = "$ EPOCROOT/epoc32/release/armv5/lib /"
Fi
Else
QT_INSTALL_PREFIX = "/usr/local/Trolltech/Qt-$ {QT_VERSION}" # the default install prefix is/usr/local/Trolltech/Qt-$ QT_VERSION