Install and establish a QT desktop running environment

Source: Internet
Author: User
Install and establish the QT desktop running environment-general Linux technology-Linux programming and kernel information. The following is a detailed description. After a whole day, I finally set up the QT desktop running environment. Now I want to sort out the problems I encountered in this process as follows:

Question 1:
In the process of compiling Qt/Embedded, the first step is to establish QT2.3.2, that is, Bulid Qt2.3.2. After make, an error occurs.

Error: cannot convert 'qvaluelistiterator 'To 'const char *' for argument'

Solution: cd/root/2410sQt/host/qt-2.3.2/include
Gedit qvaluestack. h

In row 57 of the file: remove (this-> fromLast (); change to this-> remove (this-> fromLast ());

Problem 2: During Qt/Embedded compilation, after make is performed in Bulid Qvfb in step 2, an error is prompted.

Tmake error: template file tamke. config not founded.

Cause Description: The environment variable settings are incorrect. As a result, you cannot connect to tamke. config under $ TMAKEPATH/lib/linux-g ++.

Solution: 1) open a new terminal, gedit. bashrc
2) In. bashrc, re-enter the environment variable
Export PATH =/arm2410s/linux/gui/Qt/tools/usr/local/arm/3.4.1/bin: $ PATH
Export TMAKEPATH =/root/2410sQt/host/tmake-1.13/lib/linux-g ++
Export QTDIR =/root/2410sQt/host/qt-2.3.2
Export QTEDIR =/root/2410sQt/host/qt-2.3.10
Export LD_LIBRARY_PATH = $ QTDIR/lib: LD_LIBRARY_PATH
3) source. bashrc

Question 3: After you input make to compile the file, a prompt is displayed.
Make: Nothing to be done for "all"
Solution: first enter make clean
Enter make

Problem 4: In the process of compiling Qt/Embedded, in step 3 Bulid Qt/Embedded, the following problems occur after make compilation.

Error: 'qwsinputmethod' has not been decleared.

Solution:
Cd $ QTDIR/src/kernal
Gedit qwindowsystem_qws.h
Add the following files at the beginning:
Class QWSInputMethod;
Class QWSGestureMethod;

Question 5: when compiling Qt/Embedded, check the running result in Step 4: After Entering qvfb-width 640-height-480 &, qvfb: error while loading shared libraries: libqt. so.2: cannot open shared object file: No such file or directory

Error cause: the path libqt. so.2 is not found, and libqt. so.2 is in the QT2DIR directory. This indicates that the path is set incorrectly.

Solution: LD_LIBRARY_PATH is incorrect. Input echo $ QT2DIR.
Echo $ QTEDIR echo $ LD_LIBRARY_PATH to ensure that each returned path exists and is valid.

Question 6: run your own program in the created environment and enter
$ TMAKEDIR/bin/progen-t app. t-o hello. pro, the problem cannot be found by progen, indicating that the path setting of TMAKEDIR is incorrect. The method is the same as above.
Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.