Essential Factors for running QT after each restart
Source: Internet
Author: User
The essential factor for running QT after each restart-Linux general technology-Linux programming and kernel information. The following is a detailed description. After the development board is restarted, it must be configured as follows:
1. First, you must redefine the following environment variables:
Export QTDIR =/usr/
Export QTEDIR =/usr/
Export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:/usr/lib
Export QWS_SIZE = 640x480
Export QWS_MOUSE_PROTO = "TPanel:/dev/input/event0 USB"
Export LANG = zh_CN
After this definition, you can use QT and USB mouse.
2. Pay attention to the following methods when mounting:
Mount-t nfs-o intr, nolock, rsize = 1024, wsize = 1024 192.168.1.3:/root/somedir/host
3. Start the QTE program using./filename-qws
To re-enable the Linux terminal (that is, your computer) and compile the program, you must re-configure it:
1. First, you must redefine the following environment variables:
Export TMAKEDIR =/root/2410sQt/tmake-1.13
Export QT2DIR =/root/2410sQt/qt-2.3.2
Export QTEDIR =/root/2410sQt/qt-2.3.10
Export QTDIR = $ QTEDIR
Export TMAKEPATH = $ TMAKEDIR/lib/qws/linux-arm-g ++
2. Check whether the compiling environment settings are correct:
Echo $ TMAKEPATH
Check whether it points to: tmake installation path/lib/qws/linux-arm-g ++
Echo $ QTDIR
See if it points to: qt-2.3.10 installation path
3. confirm that the tmake installation path/lib/qws/linux-arm-g ++/tmake. conf has been changed as follows:
"TMAKE_LINK = arm-linux-gcc"
"TMAKE_LINK_SHILB = arm-linux-gcc"
Changed to: "TMAKE_LINK = arm-linux-g ++"
"TMAKE_LINK_SHILB = arm-linux-g ++"
4. A new program must be written under the examples subdirectory under the qt-2.3.10 directory for successful compilation.
Then, you can compile it normally. Wish you success.
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