Qt4.6.4 compile notes

Source: Internet
Author: User

1. Download source code qts4.6.4, respectively extract three, qt-x11, x86-qte, arm-QTE

2. CD arm-QTE/mkspec/qws/Linux-arm-G ++/

VI qmake. conf

Qmake_cc = arm-Linux-gcc-lts
Qmake_cxx = arm-Linux-G ++-lts
Qmake_link = arm-Linux-G ++-lts
Qmake_link_shlib = arm-Linux-G ++-lts
After lts is added, the application will not show ld: Warning: libts-0.0.so.0, needed by/home/zhxt/qt_for_arm/qt-everywhere-opensource-src-4.6.2/lib/libqtgui. So,

Not found (try using-rpath or-rpath-link)/home/zhxt/qt_for_arm/qt-everywhere-opensource-src-4.6.2/lib/libqtgui. So: Undefined reference to 'ts _ read_raw'

This problem

3. Go to arm464-qte/src/GUI/itemviews/q1_actitemview. cpp row 2311st and change 'key _ backspace' to 'key _ backspace'

Avoid itemviews/q1_actitemview. cpp: 2311: Error: 'key _ backspace 'is not a member of 'qt '.

4. Configuration
. /Configure-Prefix/usr/local/arm481-release-opensource-shared-fast-no-largefile-QT-SQL-SQLite-no-exceptions-STL-no-qt3support-no-WebKit -No-MMX-no-3dnow-no-SSE-no-sse2-no-SVG-QT-libpng-QT-libjpeg-make libs-nomake examples-nomake docs-nomake
Demo-no-Nis-no-cups-no-iconv-no-signature-no-OpenSSL-xplatform qws/Linux-arm-G ++-Embedded ARM-little-Endian- host-little-Endian-QT-FreeType-Depths 8, 16, 24-QT-GFX-linuxfb-no-GFX-VNC-no-GFX-qvfb-no-GFX-transformed-no-GFX-multiscreen-QT-mouse-tslib
-I/usr/local/tslib/include-L/usr/local/tslib/lib-no-glib

If you select-WebKit, the package gstreamer-app-0.10 not found error is returned.

5. gmake

Gmake install

 

 

6. Enter x86-qte

. /Configure ...... -QT-mouse-qvfb-QT-GFX-qvfb-QT-KBD-qvfb-embedded x86-xplatform qws/linux-x86-g ++... remove tslib

Gmake

Gmake install

7. Enter x11-qt

./Configure-no-WebKit-qvfb

Gmake

Gmake install

8. CD x11-qt/tools/qvfb

Make

Make install

If the error "X11/extensions/xtest. h: the file or directory does not exist

Redhat Enterprise 6 want to install the libXtst-1.0.99.2-3.el6.i686.rpm package

Run the following command on Ubuntu:Sudo apt-Get install Xorg-Dev

Done

 

 

 

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.