[Embedded learning] Port Konqueror-embed

Source: Internet
Author: User

Author: gnuhpc
Source: http://www.cnblogs.com/gnuhpc/

Http://developer.kde.org /~ Hausmann/snapshots/attic/
The latest version under is konqueror-embedded-snapshot-20030705.tar.gz
Compile:
Tar-xvf konqueror-embedded-snapshot-20030705.tar.gz
CD konqueror-embedded-snapshot-20030705
Export qpedir =/work/PAN/MIPS-qtopia/qtopia-free-2.2.0/qtopia
Export qtdir =/work/PAN/MIPS-qtopia/qtopia-free-2.2.0/qt2
Export tmakedir =/work/PAN/MIPS-qtopia/qtopia-free-2.2.0/tmake
Export Path = $ qtdir/bin: $ qpedir/bin: $ tmakedir/bin: $ path
Export AR = mipsel-Linux-ar
Export strip = mipsel-Linux-strip
Export ranlib = mipsel-Linux-ranlib
Export cxx = 'mipsel-Linux-G ++-mips2'
Export CCC = 'mipsel-Linux-gcc-e-mips2'
Export cc = 'mipsel-Linux-gcc-mips2'
Export cross_compile = 1
. /Configure -- Host = i686-linux-target = mipsel-Linux -- enable-embedded -- enable-QT-embedded -- enable-qpe -- With-Gui = qpe -- disable-Debug -- enable-FTP -- enable-static -- disable-shared -- disable-MT -- With-extra-libs =/Cross/target/local/mipsel-Linux/lib: $ qpedir/lib -- With-extra-distributed des =/Cross/target/local/mipsel-Linux/include: $ qpedir/include -- without-SSL -- With-QT-Dir = $ qtdir -- With-QT-Primary des = $ qtdir/include -- With-QT-libraries = $ qtdir/lib -- with-qtopia-Dir = $ qpedir
Make
Installation:
Qtopia is an embedded desktop environment and application Assembly developed based on QT/Embedded. It allows you to easily add user applications or configure desktops in the qtopia desktop environment. To add a user application, you need to create a desktop file under the qtopia/apps/application directory. This file specifies the desktop file icon and the entry point of the application. It should be noted that in order for new applications to run in the qtopia desktop environment, the applications must be compiled using the graphics library provided by QT.
The following uses the embedded web browser Konqueror as an example to describe the process of adding a new application.
(1) download the Konqueror source code and perform cross-compilation. To support Chinese display and flash, you also need to modify the source code and add the corresponding plug-in.
(2)copy the konqueror.png icon file to/opt/qtopia/PIC.
(3) store the Konqueror executable file in/opt/Konqueror/, and create Konqueror in the qtopia/apps/application directory. for more information about the desktop file, see qtopia. desktop file. Note that the exec item of Konqueror. desktop should specify the specific location of the executable file. Example: exec =/opt/Konqueror/bin/Konqueror
(4) export the runtime environment variable of Konqueror and click its icon on the desktop to browse the webpage.
Chinese support:
Because QT/e supports Unicode encoding, Konqueror/e also supports Chinese characters. However, Unicode is not supported in the default configuration for compiling QT/E, so we need to manually modify the qconfig-qpe.h file Configuration:
Comment out 38 lines, # define qt_no_codecs.
After the modification, re-compile QT/e, qtopia and konuqueror/E, and Konqueror/E to accept Unicode-Encoded chinese characters. However, the Konqueror page must contain a corresponding font. Therefore, modify the/konq-embed/dropin/kglobalsettings. cpp file in the Konqueror/e source code:
Change "Helvetica" to "unifont" and re-compile Konqueror/E to display the Chinese font page in Konqueror/e.

Author: gnuhpc
Source: http://www.cnblogs.com/gnuhpc/

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.