Transplantation of qt-extended-4.4.3 on...

Source: Internet
Author: User

Currently, the Development Board of Feiling uses the arm-Linux-GCC 3.4.5 version to cross compile the tslib-1.4 library and qt-extended-4.4.3 library, because the qt-extended-4.4.3 is in development, temporarily not put in the file system of Feiling Development Board, however, you can use the NFS Network File System to debug and run qtopia4.

For details about how to use the NFS Network File System, refer to the NFS section of "ok6410 Development Board linux2.6 User Manual" of Feiling.

Development Platform: ubantu9.10, Cross Compiler: arm-linux-gcc3.4.5, flying Development Board: 6410 Series

1. Compile tslib

Compile and run the qt-extended-4.4.3 (qtopia4), need tslib library, this library is the library file needed by the touch screen, such as the touch screen data filtering, dejitter, etc, the QT library calls the library file of tslib.
Note: You can also do not need to compile the tslib-1.4, directly use our compiled tslib library, use tslib also need to configure environment variables, how to configure please jump to the "Configure environment variables" section

Compilation Method:

After decompressing tslib-1.4.rar, remember to install three items first.

# Sudo apt-Get install Autoconf
# Sudo apt-Get install automake
# Sudo apt-Get install libtool

# Cd tslib/

// Set the environment variable to point to the cross compiler path
Export Path =/usr/local/ARM/arm-linux-gcc-3.4.5/bin: $ path
Export toolchain =/usr/local/ARM/arm-linux-gcc-3.4.5
Export tb_cc_prefix = arm-Linux-
Export pkg_config_prefix = $ toolchain/ARM-Linux

Run scripts

#./Autogen. Sh
# Echo "ac_cv_func_malloc_0_nonnull = yes"> arm-linux.cache

Configure installation parameters
#. /Configure -- Host = arm-Linux -- cache-file = arm-linux.cache -- enable-inputapi = No plugin_dir =/usr/local/ARM/tslib/plugins-Prefix =/usr/local/ ARM/tslib/build-host = arm-Linux -- cache-file = arm-linux.cache 2> & 1 | tee conf_log

Compile
 
# Make 2> & 1 | tee make_log
# Make install

After compilation, the bulid folder will appear
 
# Cd build/etc
# Gedit ts. conf

Remove the # And space before module_raw input. Note: there must be no space before module_raw input. Otherwise, segmentation fault will be prompted when you run the test software.

Check whether tslib is available in the/usr/local/ARM/directory of the host. If so, modify ts. conf. If no
Copy the build folder to/usr/local/ARM, change the build name to tslib, need to compile the qt-extended-4.4.3, and put this tslib in the directory of the Network File System/usr/local, my options are/forlinx/root/usr/local/

Go to tslib/bin on the Development Board to run. /ts_calibrate: Check whether there is a calibration program on the screen. If yes, the tslib compilation is successful. when running on the Development Board, you need to set environment variables. When running compiled qtopia4, you also need environment variables, to automatically set environment variables on the Development Board at each startup, you can put the following content in the/forlinx/root/etc/profile file.


Configure the environment variable: This environment variable is the environment variable that must be added when running the tslib test program and qtopia. Add it to the Development Board.

Export tslib_root =/usr/local/tslib
Export tslib_tsdevice =/dev/input/event1
Export tslib_tseventtype = h3600
Export tslib_conffile =/usr/local/tslib/etc/ts. conf
Export tslib_plugindir =/usr/local/tslib/lib/TS
Export tslib_calibfile =/etc/pointercal
Export tslib_plugindir = $ tslib_root/lib/TS
Export tslib_consoledevice = none
Export tslib_fbdevice =/dev/fb0

Export qws_mouse_proto = tslib:/dev/input/event1
# Export qws_mouse_proto = tpanel:/dev/input/event1
# Export qws_mouse_proto = "tslib:/dev/input/event1 mouseman:/dev/input/mice"
# Export qws_mouse_proto = mouseman:/dev/input/Mice

Export qtdir =/opt/qtopia
Export qpedir =/opt/qtopia
Export Path = $ qtdir/bin: $ path
Export qt_plugin_path = $ qtdir/plugins: $ qtdir/qt_plugins/
Export qt_qws_fontdir = $ qpedir/lib/fonts/
Export LD_LIBRARY_PATH = $ qtdir/plugins/qtopialmigrate/: $ qtdir/qt_plugins/imageformats/: $ qtdir/lib:/usr/local/tslib/lib: $ LD_LIBRARY_PATH

 

 

2 compile and run qt-extended-4.4.3

Note: You can run the compiled qtopia program on the Development Board, or use the compiled qtopia program. It takes a long time to compile the program, my PC took over three hours.
If you directly use the compiled qtopia, check the section "Run qtopia4.

Compile qtopia4:

To compile qtopia4, you must specify the path of the Cross-compiler. If the environment variable has been set during tslib compilation, you do not need to set it again. Run the Export command before compiling, check whether the following environment variables are available.

Export Path =/usr/local/ARM/arm-linux-gcc-3.4.5/bin: $ path
Export toolchain =/usr/local/ARM/arm-linux-gcc-3.4.5
Export tb_cc_prefix = arm-Linux-
Export pkg_config_prefix = $ toolchain/ARM-Linux

When compiling a qt-extended-4.4.3, note that you first create an empty folder that is in the same level as the qt-extended-4.4.3, such as the qt-extended-4.4.3 directory is/mnt/Qt-test/qt-extended-4.4.3, create the/mnt/Qt-test/builddir folder and

Note: 1. When compiling qtopia, make sure that the GNU g ++ compiler is installed in your ubantu9.10 environment. This compiler is used to compile some tools to run qtopia on the PC.
2. Note that you need to install the X11 SDK library in ubantu. During qtopia compilation, you need to use some header files in x11sdk. Run the following command to install the required files:
Apt-Get install libx11-dev libxext-dev libxtst-Dev
3. The qt-extended-4.4.3 folder in the virtual machine cannot be placed in the directory shared with windows at compile time; otherwise, an error occurs during compilation.

Enter the following content in CD/mnt/Qt-test/builddir to configure qtopia4. The specific configuration meaning can be .. /qt-extended-4.4.3/configure-help view, you can fill in your own configuration according to your needs, in addition to the network has a lot of explanations about the configuration, here will not talk about more

.. /Qt-extended-4.4.3/configure-release-image/opt/qtopia-Prefix/opt/qtopia-xplatform Linux-arm-G ++-arch arm-Build-QT-no-plugin-UI -type home-launch-method quicklaunch-Remove-module qvfb-Remove-module modem-Remove-module Bluetooth-add-displaysize 480X272-Remove-module DRM-Remove-module infrared -Remove-module allow-extra-QT-config "-QT-mouse-linuxtp"-extra-QT-embedded-config "-xplatform qws/Linux-arm-G ++- embedded ARM-qconfig qpe-shared-little-Endian-WebKit-QT-KBD-USB-QT-libpng-QT-libjpeg-QT-GIF-Depths 4, 8, 16, 32-QT-mouse-tslib-I/usr/local/tslib/include-L/usr/local/tslib/lib "2> .. /qtopiaconfigureerr.txt

After the configuration is complete, follow the prompts to complete the compilation and installation. Currently, the installation is under/opt/qtopia,

Run qtopia4:

Put qtopia under the/OPT directory of the Development Board, that is,/opt/qtopia/. My NFS file system is/forlinx/root/opt/qtopia, make sure that environment variables have been set on the Development Board. For environment variables, see "Configure environment variables" in tslib.

After environment variables are configured, you can run qtopia, and the software that comes with qtopia can also be run independently. The software in qtopia/bin is shown in. /photogallery-qws can run the Image Browsing software without starting the qpe desktop environment. the following command can run qtopia

CD/opt/qtopia/bin
./Qpe

You can see the qtopia4 interface on the screen, which contains some applications. Currently, these applications need to be modified completely, and some cannot be used for the moment. We will gradually modify and optimize the program, it will give you a pleasant experience.

 

 

 

 

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.