Dm3730 QT and tslib porting records

Source: Internet
Author: User

2. $:./autogen. Sh
If this error occurs:./autogen. sh: 4: autoreconf: not found
Solution: sudo apt-Get install Autoconf automake libtool
If this error occurs: Can't EXEC "libtoolize": no such file or directory at/usr/bin/autoreconf

Solution: sudo aptitude install libtool

3. $: Echo "ac_cv_func_malloc_0_nonnull = yes"> arm-none-linux-gnueabi.cache

. /Configure -- Host = arm-None-Linux-gnueabi -- cache-file = arm-none-linux-gnueabi.cache -- enable-inputapi = No plugin_dir =/opt/tslib/build/plugins-Prefix =/opt/ tslib/build-host = arm-None-Linux-gnueabi -- cache-file = arm-none-linux-gnueabi.cache 2> & 1 | tee conf_log

Or other compilers dm3730 the latest dvsdk

. /Configure -- Host = arm-Arago-Linux-gnueabi -- cache-file = arm-arago-linux-gnueabi.cache -- enable-inputapi = No plugin_dir =/opt/tslib/build/plugins-Prefix =/opt/ tslib/build-host = arm-Arago-Linux-gnueabi -- cache-file = arm-arago-linux-gnueabi.cache 2> & 1 | tee conf_log

5. $: Make 2> & 1 | tee make_log

6. $: make install

7. Copy all files except the pkgconfig directory under/tslib/build/lib to the Development Board/lib directory.
Copy ts_calibrate under/tslib/build/bin to the/opt/qtopia/bin directory of the Development Board (you can create your own opt/qtopia directory)

8. Edit module_raw under Ts. conf in l/tslib/build/etc.InputRemove the # sign and then remove the space.

9. Copy the Ts. conf file to/etc of the Development Board.

10. On the Development Board, set the environment variables, add the following command to the/etc/profile file of the Development Board file system, or directly enter the following command on the Super Terminal:
Export tslib_tsdevice =/dev/input/touchscreen0
Export tslib_conffile =/etc/ts. conf
Export tslib_plugindir =/lib/TS
Export tslib_calibfile =/etc/pointercal
Export tslib_consoledevice = none
Export tslib_fbdevice =/dev/fb0

11. Test tslib

CD/opt/qtopia/bin

./Ts_calibrate

Five vertices appear in sequence. Click test.

Qt4.7 Transplantation

3. $: gedit/mkspecs/qws/Linux-arm-G ++/qmake. conf

Modify the file and replace all arm-Linux with arm-None-Linux-gnueabi.

Add the following statement

Qmake_incdir =/usr/local/tslib/build/include

Qmake_libdir =/usr/local/tslib/build/lib

Replace all arm-Linux with arm-None-Linux-gnueabi.

. /Configure-Embedded ARM-xplatform qws/Linux-arm-G ++-Depths 4,8, 16,32-no-qt3support-Prefix/opt/qt4.7-fast-QT-SQL-SQLite-no-LibTIFF-no-libmng-QT-libjpeg-QT-zlib-QT-libpng-QT- freeType-optimized-qmake
-No-Nis-no-separate-debug-Info-no-qvfb-QT-GFX-linuxfb-no-GFX-qvfb-no-KBD-qvfb-no-mouse-qvfb -No-mouse-linuxtp-QT-mouse-PC-QT-mouse-tslib-I/opt/tslib/build/include-L/opt/tslib/build/lib

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.