How to configure the Qt (4.3.2) Environment in Linux
Source: Internet
Author: User
Article Title: how to configure the Qt (4.3.2) Environment in Linux. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems and open source and other basic categories download open source package: qt-x11-opensource-src-4.3.2.tar.gz
Unzip: gunzip qt-x11-opensource-src-4.3.2.tar.gz
Tar xvf qt-x11-opensource-src-4.3.2.tar
Run the Script: Enter the qt-x11-opensource-src-4.3.2 folder, enter. /Configure run the shell script program to install and test the necessary configuration information of the current system.
Compile: gmake
Install: gmake install
Environment variable: Add vi/etc/profile at the end of the file:
PATH =/usr/local/Trolltech/Qt-4.3.2/bin: $ PATH
QTDIR =/usr/local/Trolltech/Qt-4.3.2
MANPATH = $ QTDIR/man: $ MANPATH
LD_LIBRARY_PATH = $ QTDIR/lib: $ LD_LIBRARY_PATH
Export path qtdir manpath LD_LIBRARY_PATH
After the restart, complete the configuration, write a simple HelloQt program to verify whether the configuration is successful, then qmake-project generates the project file, qmake the generated project file (. Pro) generate Makefile, and finally make to generate the execution file.
Note:
1. An error may be reported during the gmake process, prompting that krb5.h cannot be found. The solution is:
2. if linux is installed on a virtual machine, it seems that the hard disk under windows cannot be found in mount. For copying linux Files and windows file systems, first: Virtual Machine-> install VMware tools; then run cd/mnt/cdrom. /Vmware-install.pl file; finally Virtual Machine-> Settings-> Option-> shared folder to complete the linux and windows Shared Folders (corresponding to the linux/mnt/hgfs) to copy files to each other.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.