In linux, configure the Qt (4.3.2) Environment-general Linux technology-Linux programming and kernel information. For more information, see the following. 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 Script: Enter the qt-x11-opensource-src-4.3.2 folder, enter./configure to run the shell script program, some necessary configuration information for the software installation test 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:
Ln-s/usr/kerberos/include/com_err.h/usr/include/com_err.h
Ln-s/usr/kerberos/include/profile. h/usr/include/profile. h
Ln-s/usr/kerberos/include/krb5.h/usr/include/krb5.h
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service