Porting Konqueror/embedded to MIPS platform (http://www.lyore.cn/blog/read-209.html)

Source: Internet
Author: User

Related Software Packages: qt-embedded-free-3.3.8.tar.bz2, konquorer3-embedded-0.2-20060121.tar.bz2
Command Execution sequence:

Export qtedir =/root/qt-embedded-free-3.3.8
Export cc = mipsel-Linux-GNU-gcc
Export CPP = 'mipsel-Linux-GNU-gcc-e'
Export cxx = mipsel-Linux-GNU-G ++
Export cxxcpp = 'mipsel-Linux-GNU-G ++-e'

. /Configure -- prefix =/usr/local/konquerore -- Host = i686-pc-linux-gnu -- target = MIPS-Linux -- disable-Debug -- enable-QT-embedded -- enable-CGI -- with-QT-Dir = $ qtedir -- With-QT-uplodes = $ qtedir/include -- With-QT-libraries = $ qtedir/lib -- disable-PCRE -- without-SSL

Export kdedirs =/usr/local/konquerore:/usr
KDM restart

Make
Make install
Note that the thread library support and -- no-cups options must be added when porting QTE. Otherwise, the header file cannot be found and compilation errors will occur. The complete configuration command is:. /Configure-no-SQL-IBASE-no-SQL-mysql-no-SQL-ODBC-no-SQL-Psql-no-SQL-SQLite-little-Endian-embedded MIPS- depths 8, 16,, 32-qvfb -- no-cups-no-ipv6-no-largefile-ThreadOther options can be added or deleted as appropriate.
Konqueror cannot be compiled into a static library by adding "-- enable-static -- disable-shared". Otherwise, a link error occurs. According to a developer in the email list, this is a bug, however, it is not planned to be solved in the near future. Related patch downloads are available on the Internet.
During configuration, the zlib library is not new enough, but it is strange that I downloaded the latest zlib and compiled and installed it. By tracking the configure script and config. log information shows that it builds a program in the memory, the program calls the relevant functions of zlib, and verifies whether zlib can be linked by checking whether there is an error. The problem was finally found that the cross compiler could not link to the zlib library. It is strange to add the-I-l parameter, set LD_LIBRARY_PATH, and edit LD through the GCC command. so. conf, copy the library to/lib, and/usr/lib won't work. Finally, you have to copy the so file to the Lib path of the compiler to complete configuration and compilation. This problem is hard to understand!
When you copy the compiled/usr/local/konquerore folder and the files under it to the target board, run the MIPs-Linux-Konqueror-qws command under bin. the following error occurs :. /MIPS-Linux-Konqueror: Error while loading shared libraries: libkonqe. so.0: cannot open shared objy. This error has been plagued by me for more than two days. Later, it was solved by huzj's reminder. The reason is that the Konqueror database is not added to the database search path. Run:Export LD_LIBRARY_PATH =/path/of/Konqueror/lib: $ LD_LIBRARY_PATHThen run the Konqueror binary file again.

Appendix: zlib cross-compilation process:
1. Download libz, URL: http://www.zlib.net/

2../Configure -- shared

Make ldshared = "mipsel-Linux-GNU-gcc-shared-wl,-soname, libz. so.1 "cc_for_build =" mipsel-Linux-GNU-GCC "cc =" mipsel-Linux-GNU-GCC "LD =" mipsel-Linux-GNU-LD "CPP =" arm- linux-G ++-e "Ar =" mipsel-Linux-GNU-ar RC "prefix ="/opt/nxlinux/GCC/gcc-3.3.4-glibc-2.3.2 "cflags ="-FPIC "libz. so.1.2.3 libz. A
If you put the compiled library under another path, you need to add the relevant header file (zconf. h zlib. h) to the related include file.

 

//************************************** **************************************** ************************

Export qtedir =/home/xuyaojun/destktop/QT/qt-embedded-free-3.3.6
Export Path =/usr/local/ARM/2.95.3/bin: $ path
Mkdir/usr/local/konquerore
Export cc = arm-Linux-gcc
Export CPP = 'arm-Linux-G ++-e'
Export cxx = arm-Linux-G ++
Export cxxcpp = 'arm-Linux-G ++-e'

. /Configure -- prefix =/usr/local/konquerore -- Host = i686-pc-linux-gnu -- target = arm-Linux -- disable-Debug -- enable-QT-embedded -- enable-CGI -- with-QT-Dir = $ qtedir -- With-QT-uplodes = $ qtedir/include -- With-QT-libraries = $ qtedir/lib -- disable-PCRE -- without-SSL
Export kdedirs =/usr/local/konquerore:/usr
KDM restart
Make
Make install

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.