CN102214102A - System for transplanting C++ graphical user interface library (QT) to advanced RISC machine (ARM) - Google Patents

System for transplanting C++ graphical user interface library (QT) to advanced RISC machine (ARM) Download PDF

Info

Publication number
CN102214102A
CN102214102A CN2011101885507A CN201110188550A CN102214102A CN 102214102 A CN102214102 A CN 102214102A CN 2011101885507 A CN2011101885507 A CN 2011101885507A CN 201110188550 A CN201110188550 A CN 201110188550A CN 102214102 A CN102214102 A CN 102214102A
Authority
CN
China
Prior art keywords
arm
program
module
transplanting
tslib
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN2011101885507A
Other languages
Chinese (zh)
Inventor
任继梅
杨胜齐
陈宫
张立为
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANGHAI ULTRAWISE INFORMATION TECHNOLOGY CO LTD
Original Assignee
SHANGHAI ULTRAWISE INFORMATION TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANGHAI ULTRAWISE INFORMATION TECHNOLOGY CO LTD filed Critical SHANGHAI ULTRAWISE INFORMATION TECHNOLOGY CO LTD
Priority to CN2011101885507A priority Critical patent/CN102214102A/en
Publication of CN102214102A publication Critical patent/CN102214102A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a system for transplanting a C++ graphical user interface library (QT) to an advanced RISC machine (ARM), and belongs to the technical field of program transplant. The system comprises a cross compiling module, a TSLIB library module and a QT module, wherein the cross compiling module is arranged in an execution host and used for carrying out cross compiling for a QT program so that the cross compiled QT program can run on the ARM; the TSLIB library module is arranged in the execution host and used for implementing touch input on the ARM; and the QT module is arranged in the execution host and used for providing a support for the QT program. By cross compiling for the QT program, the cross compiled QT program can run on the ARM, so that the QT is transplanted to the ARM.

Description

A kind of system of transplanting QT to ARM
Technical field
The present invention relates to the system of a kind of QT of transplanting, belong to the program portable technical field to ARM.
Background technology
Since the robot calculator ENIAC of first Modern Significance on the human history in 1945 is born, earth-shaking variation has taken place in computer technology, continuous acceleration along with technical progress, we have reason to believe that computing machine also will continue fast-developing and further our life of change, allow and calculate become " omnipotent ", " ubiquitous ".Wherein " omnipotent " will be the combination of artificial intelligence technology and supercomputer, and " omnipresent " then is the wide world that embedded technology is used.Ordinary consumer can have been bought digital camera, mobile phone, MP3 or the like from market now, these all are the tip of the iceberg of Embedded Application in fact, the foreseeable future, embedded device will be embedded in the various articles for daily use such as desk, chair, tableware, curtain, enter into human life comprehensively, but also can be in the mankind's industry, military affairs, each side widespread use such as exploration naturally.
ARM (Advanced RISC Machines, Reduced Instruction Set Computer) processor is leading the development of embedded industry as the representative of built-in field.Arm processor is constantly being weeded out the old and bring forth the new, ARM9 use suitable extensively, resource that can be for reference also be suitable extensively.But along with the development of embedded industry, being extensive use of of ARM11 will be inexorable trend.QT (C++ graphic user interface storehouse) is as the synonym of graphical interfaces, also is very general in the application of built-in field, comprise Win7, Linux, Mac OS X etc., but the application of QT on ARM11 not have to enrich and complete case.
Summary of the invention
The purpose of this invention is to provide a kind of system that QT can be transplanted on the ARM.
The objective of the invention is to be achieved through the following technical solutions:
A kind of system of transplanting QT to ARM comprises:
The cross compile module is arranged on and carries out in the main frame, is used for the QT program is carried out cross compile, so that can move on ARM through the QT program of cross compile;
The TSLIB library module is arranged on and carries out in the main frame, is used for realizing touching on ARM input;
The QT module is arranged on and carries out in the main frame, is used to provide the support to the QT program.
Safety monitoring equipment provided by the invention by the cross compile to the QT program, makes through the QT program of cross compile and can move on ARM, thereby realizes QT is transplanted on the ARM.
Description of drawings
Fig. 1 is the structural representation of the transplanting QT that provides of the specific embodiment of the invention to the system of ARM;
The transplanting QT of Fig. 2 is the increase that provides of specific embodiment of the invention test cell is to the structural representation of the system of ARM.
Embodiment
The specific embodiment of the invention provides a kind of QT of transplanting system to ARM, and as shown in Figure 1, this system specifically comprises:
Cross compile module 1 is arranged on and carries out in the main frame, is used for the QT program is carried out cross compile, so that can move on ARM through the QT program of cross compile;
TSLIB library module 2 is arranged on and carries out in the main frame, is used for realizing touching on ARM input;
QT module 3 is arranged on and carries out in the main frame, is used to provide the support to the QT program.
Concrete, carry out main frame as workstation, be used for the compiling and the link of the program of finishing, generate the executable program that can on destination host, move at last; Cross compile module 1 is arranged on to be carried out in the main frame, because traditional PC processor is the processor of two kinds of different frameworks with the AMR processor, can not directly move on ARM in the QT program that can move on the PC, therefore need a cross compilation environment, the QT program of passing through in compiling on the PC can be moved on ARM, and this process is called cross compile; TSLIB library module 2 is arranged on to be carried out in the main frame, because TSLIB is a touch-screen storehouse of increasing income, can accomplish the support to touch-screen, owing to be equipped with touch-screen on the development board of ARM11, therefore needs to transplant this storehouse of increasing income, and comes touch-screen is supported; QT module 3 is arranged on to be carried out in the main frame, it is a QT graphical interfaces software package, be that of being provided by Trolltech (unusual charm) company increases income, at the software package of embedded product exploitation, the final purpose of transplanting is exactly will move this to overlap the graphical interfaces environment on the ARM11 development board; Destination host is the ARM11 development board.
Further, as shown in Figure 2, this embodiment can also comprise a test subelement 4, and whether the QT program that is used to test transplanting can be moved on ARM.Test cell 4 promptly is the application program that the QT software package carries, and whether detect transplanting by test cell successful.
The concrete step of transplanting comprises:
1. transplanting environment
Host computer system: Ubuntu 9.04
Main frame compiler: gcc edition 4 .3.3
Cross-compiler: arm-linux-gcc-4.1.2
Software resource: qt-embedded-linux-opensource-src-4.5.3.tar.gz tslib-1.4.tar.gz
2. transplanting step
2.1 installation cross-compiler
1: arm920t-eabi-4.1.2.tar.gz is copied/home under
·2:cd/home
·3:tar?zxvf?arm920t-eabi-4.1.2.tar.gz-C/
·4:gedit/etc/bash.bashrc
Add export PATH=$PATH:/opt/toolchains/arm920teabi/bin at the end of this document
·5:source/etc/bash.bashrc
2.2Tslib transplant
1: tslib-1.4.tar.gz is copied/home under
·2:#cd/home
·3:#tar?zxvf?tslib-1.4.tar.gz
·4:#cd?tslib
5:#./autogen.sh (annotate: this step needs some instruments, needs to install automake, autoconf, libtool under the ubuntu, can carry out following statement and install
·#sudo?apt-get?install?automake?autoconf?libtool)
·6:#./configure--prefix=/home/tslib/--host=arm-linuxac_cv_func_malloc_0_nonnull=yes
·7:#make
·8:#make?install
·9:#gedit/home/tslib/etc/ts.conf
Illustrate: all the elements in this document are all deleted, add following content
module_raw?input
module?pthres?pmin=1
module?variance?delta=30
module?dejitter?delta=100
module?linear
2.3QT transplant
1: qt-embedded-linux-opensource-src-4.5.3.tar.gz is copied/home under
2:#cd/home
3:#tar?zxvf?qt-embedded-linux-opensource-src-4.5.3.tar.gz
4:#cd?qt-embedded-linux-opensource-src-4.5.3
5:#./configure-prefix/home/qt-arm/build\
-confirm-license\
-release-shared\
-fast\
-pch\
-no-qt3support\
-qt-sql-sqlite\
-no-libtiff-no-libmng\
-qt-libjpeg\
-qt-zlib\
-qt-libpng\
-qt-freetype\
-no-openssl\
-nomake?examples-nomake?demos-nomake?tools\
-optimized-qmake\
-no-phonon\
-no-nis\
-no-opengl\
-no-cups\
-no-xcursor-no-xfixes-no-xrandr-no-xrender-no-xkb-no-sm\
-no-xinerama-no-xshape\
-no-separate-debug-info\
-xplatform?qws/linux-arm-g++\
-embedded?arm\
-depths?16\
-no-qvfb\
-qt-gfx-linuxfb\
-no-gfx-qvfb-no-kbd-qvfb-no-mouse-qvfb\
-qt-kbd-usb\
-no-armfpa\
-qt-mouse-tslib\
-L/home/tslib/lib\
-I/home/tslib/include
(if prompting can not find g++, operation apt-get inatall g++ order, and then the order above the operation)
6:#make
7:#make?install
3. test
3.1 carry NFS file system
1: dress nfs server #apt-get install nfs-kernel-server
2: revise NFS preparation #gedit/etc/exports
Add at this document end
/home/nfs?192.168.102.125(rw,sync,no_root_squash)
(illustrating that 192.168.102.125 is the IP address of development board)
3:#mkdir/home/nfs
4: restart the NFS service
#/etc/init.d/portmap?restart
#/etc/init.d/nfs-kernel-server?restart
3.2 revised file system
1: urbetter-rootfs-qt-2.2.0.tgz is copied/home/nfs
2:#cd/home/nfs
3:#tar?zxvf?urbetter-rootfs-qt-2.2.0.tgz
4: all the elements under the/home/nfs/opt/Qtopia are all deleted
5: all the elements the under/home/nfs/usr/local are all deleted
6: lib file under the/home/qt-arm/build catalogue is copied/home/nfs/opt/Qtopia under
7: open/the home/nfs/etc/init.d/rcS file, delete following content:
/bin/qtopia?&
echo″″>/dev/tty1
echo″Starting?Qtopia,please?waiting...″>/dev/tty1
echo″″
echo″Starting?Qtopia,please?waiting...″
8:#mv/home/tslib/home/nfs/usr/local/
3.3 set
1:#gedit/home/nfs/etc/profile
2: add following content at this document end:
export?QTDIR=/opt/Qtopia
export?PATH=$QTDIR/bin:$PATH
export?QT_QWS_FONTDIR=/opt/Qtopia/lib/fonts
export?TSLIB_ROOT=/usr/local/tslib
export?TSLIB_TSDEVICE=/dev/input/event1
export?TSLIB_CALIBFILE=/etc/pointercal
export?TSLIB_CONSOLEDEVICE=none
export?TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.conf
export?TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts
export
LD_LIBRARY_PATH=$TSLIB_ROOT/lib:$QTDIR/lib:$LD_LIBRARY_PATH
export?TSLIB_FBDEVICE=/dev/fb0
TS_INFO_FILE=/sys/devices/platform/uevent
3.4 operation QT program
1:#gedit/etc/bash.bashrc
2: add export PATH=$PATH:/home/qt-arm/build/bin in end of file
3:#source/etc/bash.bashrc
4: the embedded catalogue the under/home/qt-embedded-linux-opensource-src-4.5.3/demos is copied/home/nfs under
5:#cd/home/qt-arm/build/bin
6:#cp?qmake?qmake-arm
7:#cd?/home/nfs/embedded
8:#qmake-arm
9:#make
3.5 test
1: connect the netting twine serial ports
3: the terminal that enters the serial ports connection of development board
2:#cd/embedded/fluidlauncher
3:#./fluidlauncher-qws
The technical scheme that adopts present embodiment to provide, by cross compile to the QT program, make through the QT program of cross compile and can on ARM, move, thereby realize QT is transplanted on the ARM, more ready on embedded product, using based on the application program of QT, also remedied the deficient relatively situation of ARM11 education resource simultaneously.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.

Claims (2)

1. a system of transplanting QT to ARM is characterized in that, comprising:
The cross compile module is arranged on and carries out in the main frame, is used for the QT program is carried out cross compile, so that can move on ARM through the QT program of cross compile;
The TSLIB library module is arranged on and carries out in the main frame, is used for realizing touching on ARM input;
The QT module is arranged on and carries out in the main frame, is used to provide the support to the QT program.
2. transplanting QT according to claim 1 is characterized in that to the system of ARM, comprises in the QT module:
The test subelement, whether the QT program that is used to test transplanting can be moved on ARM.
CN2011101885507A 2011-07-06 2011-07-06 System for transplanting C++ graphical user interface library (QT) to advanced RISC machine (ARM) Withdrawn CN102214102A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101885507A CN102214102A (en) 2011-07-06 2011-07-06 System for transplanting C++ graphical user interface library (QT) to advanced RISC machine (ARM)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101885507A CN102214102A (en) 2011-07-06 2011-07-06 System for transplanting C++ graphical user interface library (QT) to advanced RISC machine (ARM)

Publications (1)

Publication Number Publication Date
CN102214102A true CN102214102A (en) 2011-10-12

Family

ID=44745423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101885507A Withdrawn CN102214102A (en) 2011-07-06 2011-07-06 System for transplanting C++ graphical user interface library (QT) to advanced RISC machine (ARM)

Country Status (1)

Country Link
CN (1) CN102214102A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929429A (en) * 2012-10-12 2013-02-13 深圳锐取信息技术股份有限公司 Method for realizing multi-point touch based on advanced reduced instruction set computer (RISC) machines (ARM) by using QT graphics development platform
CN104318708A (en) * 2014-09-29 2015-01-28 北京工业大学 Embedded intelligent security protection system of ARM-based Linux operating system
CN104461890A (en) * 2014-12-12 2015-03-25 四川川大智胜软件股份有限公司 Qt program memory using static test method for air traffic control training system
CN108632521A (en) * 2017-03-20 2018-10-09 电子科技大学中山学院 Processing method for embedded QM L image acquisition preview screen
CN109032604A (en) * 2018-07-03 2018-12-18 福州瑞芯微电子股份有限公司 A kind of generation method in the library Qt that may operate in android system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929429A (en) * 2012-10-12 2013-02-13 深圳锐取信息技术股份有限公司 Method for realizing multi-point touch based on advanced reduced instruction set computer (RISC) machines (ARM) by using QT graphics development platform
CN104318708A (en) * 2014-09-29 2015-01-28 北京工业大学 Embedded intelligent security protection system of ARM-based Linux operating system
CN104461890A (en) * 2014-12-12 2015-03-25 四川川大智胜软件股份有限公司 Qt program memory using static test method for air traffic control training system
CN104461890B (en) * 2014-12-12 2017-05-17 四川川大智胜软件股份有限公司 Qt program memory using static test method for air traffic control training system
CN108632521A (en) * 2017-03-20 2018-10-09 电子科技大学中山学院 Processing method for embedded QM L image acquisition preview screen
CN109032604A (en) * 2018-07-03 2018-12-18 福州瑞芯微电子股份有限公司 A kind of generation method in the library Qt that may operate in android system
CN109032604B (en) * 2018-07-03 2022-02-22 瑞芯微电子股份有限公司 Method for generating Qt library capable of running on Android system

Similar Documents

Publication Publication Date Title
CN102214102A (en) System for transplanting C++ graphical user interface library (QT) to advanced RISC machine (ARM)
JP6122493B2 (en) Adaptively portable library
CN103729184B (en) Software component combining and constructing method
CN101799506B (en) Chip test method, device and system based on script control
US8997085B2 (en) Image delta-based upgrade of complex stack in software appliance
CN102693144B (en) A kind of method of capacitance plate firmware upgrade of Android mobile terminal
CN102830981A (en) Implementation method used for embedded system software development tool
CN101246449B (en) Tracking function invocation track method and device
CN103473059B (en) A kind of general-purpose operating system supporting multiple architectural framework
US9940224B2 (en) Automatic remote execution of an application
CN101859244A (en) Multi-toolchain engineering construction method and system
CN103197942A (en) Patch generation method, patching method and device
WO2020063252A1 (en) Method and device for isolating multiple version dependency
CN104052510B (en) For mitigating the method, apparatus and system of wide band radio-frequency interference
CN106303707A (en) A kind of version method for burn-recording, system and terminal
CN103744682A (en) System and method for separate compilation of heterogeneous mixed programs
US20120324484A1 (en) Dynamic Loading of Kernel Extensions
CN102436398A (en) Android transplanting system
CN104881396A (en) Graphical-program compile file forming method
CN102566481B (en) C language-based PLC (Programmable Logic Controller) control system and realization method thereof
CN102819445A (en) Quick transplanting method of comprehensive software of transformer substation on embedded system hardware platform
CN102999422B (en) A kind of high-efficiency embedded type system debug method
CN105843659B (en) Method and system for implementing embedded C compiler
CN101281470A (en) Method for reconstructing ELF file formats under multi-core architecture
Cohen et al. Android Application Development for the Intel Platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C04 Withdrawal of patent application after publication (patent law 2001)
WW01 Invention patent application withdrawn after publication

Application publication date: 20111012