[webkit-qt] Arora compilation error: "libQtWebKit.so: could not read symbols: File in wrong format"
colin121
colin121 at 163.com
Tue Jun 1 23:05:40 PDT 2010
Hi all:
I got an unexpected error message in the last step of arora-0.10.2 compilation. would someone kindly give me a hint about this ?
It seemed that binutils I used to compile qt and arora were not the same ? did someone encounter the same problem as me?
/home/chenmin/qt_SMP86xx_src_4.5.0-1.2/install/lib/libQtWebKit.so: could not read symbols: File in wrong format
I use mips-4.3-51-mips-linux-gnu-i686-pc-linux-gnu as my cross-compile toolchain. with it, I built the rootfs and kernel successfully.
also without any problem, i compiled directfb. following is the steps i took to compile qt and arora.
#qt
tar jxvf qt_SMP86xx_src_4.5.0-1.2.tar.bz2
cd qt_SMP86xx_src_4.5.0-1.2
Index: src/mkspecs/qws/linux-mips-g++/qmake.conf ---> I added gnu libc directories to QMAKE command
+QMAKE_INCDIR = $(SMP86XX_TOOLCHAIN_PATH)/mips-linux-gnu/libc/usr/include $(SMP86XX_ROOTFS_PATH)/cross_rootfs/include $(DIRECTFB_INSTALL_DIR)/include/directfb $(DIRECTFB_INSTALL_DIR)/include/directfb-internal
+QMAKE_LIBDIR = $(SMP86XX_TOOLCHAIN_PATH)/mips-linux-gnu/libc/el/usr/lib $(SMP86XX_ROOTFS_PATH)/cross_rootfs/lib $(DIRECTFB_INSTALL_DIR)/lib
make
Creating qmake. Please wait...
gmake[1]: Entering directory `/home/chenmin/qt_SMP86xx_src_4.5.0-1.2/build-release/qmake'
*******following is a piece of compilation messages of built-in qmake
g++ -c -o project.o -pipe -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/home/chenmin/qt_SMP86xx_src_4.5.0-1.2/build-release/include -I/home/chenmin/qt_SMP86xx_src_4.5.0-1.2/build-release/include/QtCore -I/home/chenmin/qt_SMP86xx_src_4.5.0-1.2/build-release/src/corelib/global -I/home/chenmin/qt_SMP86xx_src_4.5.0-1.2/src/src/script -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/home/chenmin/qt_SMP86xx_src_4.5.0-1.2/src/mkspecs/qws/linux-x86-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT project.cpp
*******following is a piece of compilation messages of Qt libraries
mips-linux-gnu-g++ -c -include .pch/release-shared-emb-mips/QtGui -pipe -EL -Wa,-mips32r2 -march=24kf -mtune=24kf -fno-exceptions -O2 -g -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DRMPLATFORM=RMPLATFORMID_TANGO3 -DWITH_THREADS=1 -DALLOW_OS_CODE -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_RASTER_IMAGEENGINE -DQT_RASTER_PAINTENGINE -DQT_NO_FONTCONFIG -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_GTK -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/chenmin/qt_SMP86xx_src_4.5.0-1.2/src/mkspecs/qws/linux-mips-g++ -I/home/chenmin/qt_SMP86xx_src_4.5.0-1.2/src/src/gui -I../../include/QtCore -I../../include/QtNetwork -I../../include -I../../include/QtGui -I.rcc/release-shared-emb-mips -I/home/chenmin/qt_SMP86xx_src_4.5.0-1.2/src/src/3rdparty/harfbuzz/src -I/home/chenmin/qt_SMP86xx_src_4.5.0-1.2/src/src/gui/dialogs -I.moc/release-shared-emb-mips -I.uic/release-shared-emb-mips -I/home/chenmin/cs_rootfs_1.2.7/cross_rootfs/include -I/home/chenmin/dcchd_SMP8654_3_7_1_black.mips/directfb/include/directfb -I/home/chenmin/dcchd_SMP8654_3_7_1_black.mips/directfb/include/directfb-internal -I. -o .obj/release-shared-emb-mips/qcolor.o /home/chenmin/qt_SMP86xx_src_4.5.0-1.2/src/src/gui/painting/qcolor.cpp
export QT_INSTALL_DIR=/home/chenmin/qt_SMP86xx_src_4.5.0-1.2/install
export PATH=$QT_INSTALL_DIR/bin:$PATH
#arora
tar zxvf arora-0.10.2.tar.gz
cd arora-0.10.2
qmake "CONFIG-=debug" -r
following is a piece of arora-0.10.2/src/Makefile:
CC = mips-linux-gnu-gcc
CXX = mips-linux-gnu-g++
DEFINES = -DRMPLATFORM=RMPLATFORMID_TANGO3 -DWITH_THREADS=1 -DALLOW_OS_CODE -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT
_STRICT_ITERATORS -DQT_NO_UITOOLS -DGITVERSION="\"0\"" -DGITCHANGENUMBER="\"0\"" -DDATADIR=\"/usr/local/share\" -DPKGDATADIR=\"/usr/
local/share/arora\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
CFLAGS = -pipe $(EXTRA_OPTS) $(OPT_CFLAGS) -O2 -g -Wall -W -D_REENTRANT $(DEFINES)
CXXFLAGS = -pipe $(EXTRA_OPTS) $(OPT_CFLAGS) -O2 -g -Wall -W -D_REENTRANT $(DEFINES)
INCPATH = -I../../qt_SMP86xx_src_4.5.0-1.2/install/mkspecs/qws/linux-mips-g++ -I. -I../../qt_SMP86xx_src_4.5.0-1.2/install/inc
lude/QtCore -I../../qt_SMP86xx_src_4.5.0-1.2/install/include/QtNetwork -I../../qt_SMP86xx_src_4.5.0-1.2/install/include/QtGui -I../.
./qt_SMP86xx_src_4.5.0-1.2/install/include/QtScript -I../../qt_SMP86xx_src_4.5.0-1.2/install/include/QtWebKit -I../../qt_SMP86xx_src
_4.5.0-1.2/install/include -I. -Iadblock -Ibookmarks -Ibookmarks/xbel -Ihistory -Ilocationbar -Inetwork -Inetwork/cookiejar -Inetwor
k/cookiejar/networkcookiejar -Iopensearch -Iqwebplugins -Iqwebplugins/clicktoflash -Iutils -Ilocale -I.moc -I.ui -I$(SMP86XX_ROOTFS_
PATH)/cross_rootfs/include -I$(DIRECTFB_INSTALL_DIR)/include/directfb -I$(DIRECTFB_INSTALL_DIR)/include/directfb-internal
LINK = mips-linux-gnu-g++
LFLAGS = $(EXTRA_OPTS) -Wl,-O1 -Wl,-rpath-link -Wl,/home/chenmin/arora-0.10.2/src/:$(SMP86XX_ROOTFS_PATH)/cross_rootfs/lib:$(
RUA_DIR)/lib:$(DCCHD_DIR)/curacao/lib:$(DIRECTFB_INSTALL_DIR)/lib:$(DCCHD_DIR)/dcchd:$(DCCHD_DIR)/core:$(DCCHD_DIR)/core:$(DCCHD_DIR
)/mono:$(DCCHD_DIR)/dvdvr:$(DCCHD_DIR)/brd:$(DCCHD_DIR)/curacao:$(DCCHD_DIR)/dtv:$(DCCHD_DIR)/dtv/capture -Wl,-rpath-link -Wl,/home/
chenmin/qt_SMP86xx_src_4.5.0-1.2/install/lib
LIBS = $(SUBLIBS) -L$(SMP86XX_ROOTFS_PATH)/cross_rootfs/lib -L$(DIRECTFB_INSTALL_DIR)/lib -L/home/chenmin/qt_SMP86xx_src_4.5.0-1.2/install/lib -lQtWebKit -L/home/chenmin/qt_SMP86xx_src_4.5.0-1.2/install/lib -L$(SMP86XX_ROOTFS_PATH)/cross_rootfs/lib -L$(D
IRECTFB_INSTALL_DIR)/lib -lQtScript -lQtGui -lpng -lfreetype -lQtNetwork -lssl -lcrypto -lQtCore -ldirectfb -lfusion -ldirect -lz -lm -lrt -ldl -lpthread
QMAKE = /home/chenmin/qt_SMP86xx_src_4.5.0-1.2/install/bin/qmake
make
......more messages are hidden
mips-linux-gnu-g++ -Wl,-O1 -Wl,-rpath-link -Wl,/home/chenmin/arora-0.10.2/src/:/home/chenmin/cs_rootfs_1.2.7/cross_rootfs/lib:/home/chenmin/mrua_SMP8654F_3_8_2_dev.mips/MRUA_src/lib:/home/chenmin/dcchd_SMP8654_3_7_1_black.mips/dcchd/curacao/lib:/home/chenmin/dcchd_SMP8654_3_7_1_black.mips/directfb/lib:/home/chenmin/dcchd_SMP8654_3_7_1_black.mips/dcchd/dcchd:/home/chenmin/dcchd_SMP8654_3_7_1_black.mips/dcchd/core:/home/chenmin/dcchd_SMP8654_3_7_1_black.mips/dcchd/core:/home/chenmin/dcchd_SMP8654_3_7_1_black.mips/dcchd/mono:/home/chenmin/dcchd_SMP8654_3_7_1_black.mips/dcchd/dvdvr:/home/chenmin/dcchd_SMP8654_3_7_1_black.mips/dcchd/brd:/home/chenmin/dcchd_SMP8654_3_7_1_black.mips/dcchd/curacao:/home/chenmin/dcchd_SMP8654_3_7_1_black.mips/dcchd/dtv:/home/chenmin/dcchd_SMP8654_3_7_1_black.mips/dcchd/dtv/capture -Wl,-rpath-link -Wl,/home/chenmin/qt_SMP86xx_src_4.5.0-1.2/install/lib -o ../arora .obj/aboutdialog.o .obj/acceptlanguagedialog.o .obj/autosaver.o .obj/autofilldialog.o .obj/autofillmanager.o .obj/browserapplication.o .obj/browsermainwindow.o .obj/clearprivatedata.o .obj/clearbutton.o .obj/downloadmanager.o .obj/modelmenu.o .obj/modeltoolbar.o .obj/plaintexteditsearch.o .obj/searchbar.o .obj/searchbutton.o .obj/searchlineedit.o .obj/settings.o .obj/sourcehighlighter.o .obj/sourceviewer.o .obj/tabbar.o .obj/tabwidget.o .obj/toolbarsearch.o .obj/webactionmapper.o .obj/webpage.o .obj/webview.o .obj/webviewsearch.o .obj/adblockblockednetworkreply.o .obj/adblockdialog.o .obj/adblockmanager.o .obj/adblockmodel.o .obj/adblocknetwork.o .obj/adblockpage.o .obj/adblockrule.o .obj/adblockschemeaccesshandler.o .obj/adblocksubscription.o .obj/addbookmarkdialog.o .obj/bookmarksdialog.o .obj/bookmarksmanager.o .obj/bookmarksmenu.o .obj/bookmarksmodel.o .obj/bookmarkstoolbar.o .obj/bookmarknode.o .obj/xbelreader.o .obj/xbelwriter.o .obj/history.o .obj/historycompleter.o .obj/historymanager.o .obj/locationbar.o .obj/locationbarsiteicon.o .obj/privacyindicator.o .obj/fileaccesshandler.o .obj/networkaccessmanager.o .obj/networkdiskcache.o .obj/networkproxyfactory.o .obj/schemeaccesshandler.o .obj/cookiedialog.o .obj/cookieexceptionsmodel.o .obj/cookiemodel.o .obj/cookieexceptionsdialog.o .obj/cookiejar.o .obj/networkcookiejar.o .obj/opensearchdialog.o .obj/opensearchengine.o .obj/opensearchenginedelegate.o .obj/opensearchengineaction.o .obj/opensearchenginemodel.o .obj/opensearchmanager.o .obj/opensearchreader.o .obj/opensearchwriter.o .obj/arorawebplugin.o .obj/webpluginfactory.o .obj/clicktoflash.o .obj/clicktoflashplugin.o .obj/editlistview.o .obj/edittableview.o .obj/edittreeview.o .obj/languagemanager.o .obj/lineedit.o .obj/networkaccessmanagerproxy.o .obj/singleapplication.o .obj/squeezelabel.o .obj/treesortfilterproxymodel.o .obj/webpageproxy.o .obj/main.o .obj/moc_aboutdialog.o .obj/moc_acceptlanguagedialog.o .obj/moc_autosaver.o .obj/moc_autofilldialog.o .obj/moc_autofillmanager.o .obj/moc_browserapplication.o .obj/moc_browsermainwindow.o .obj/moc_clearprivatedata.o .obj/moc_clearbutton.o .obj/moc_downloadmanager.o .obj/moc_modelmenu.o .obj/moc_modeltoolbar.o .obj/moc_plaintexteditsearch.o .obj/moc_searchbar.o .obj/moc_searchbutton.o .obj/moc_searchlineedit.o .obj/moc_settings.o .obj/moc_sourcehighlighter.o .obj/moc_sourceviewer.o .obj/moc_tabbar.o .obj/moc_tabwidget.o .obj/moc_toolbarsearch.o .obj/moc_webactionmapper.o .obj/moc_webpage.o .obj/moc_webview.o .obj/moc_webviewsearch.o .obj/moc_adblockblockednetworkreply.o .obj/moc_adblockdialog.o .obj/moc_adblockmanager.o .obj/moc_adblockmodel.o .obj/moc_adblocknetwork.o .obj/moc_adblockpage.o .obj/moc_adblocksubscription.o .obj/moc_addbookmarkdialog.o .obj/moc_bookmarksdialog.o .obj/moc_bookmarksmanager.o .obj/moc_bookmarksmenu.o .obj/moc_bookmarksmodel.o .obj/moc_bookmarkstoolbar.o .obj/moc_history.o .obj/moc_historycompleter.o .obj/moc_historymanager.o .obj/moc_locationbar.o .obj/moc_locationbarsiteicon.o .obj/moc_privacyindicator.o .obj/moc_fileaccesshandler.o .obj/moc_networkaccessmanager.o .obj/moc_networkdiskcache.o .obj/moc_cookiedialog.o .obj/moc_cookieexceptionsdialog.o .obj/moc_cookieexceptionsmodel.o .obj/moc_cookiejar.o .obj/moc_cookiemodel.o .obj/moc_networkcookiejar.o .obj/moc_opensearchdialog.o .obj/moc_opensearchengine.o .obj/moc_opensearchengineaction.o .obj/moc_opensearchenginemodel.o .obj/moc_opensearchmanager.o .obj/moc_webpluginfactory.o .obj/moc_clicktoflash.o .obj/moc_editlistview.o .obj/moc_edittableview.o .obj/moc_edittreeview.o .obj/moc_languagemanager.o .obj/moc_lineedit.o .obj/moc_lineedit_p.o .obj/moc_networkaccessmanagerproxy.o .obj/moc_networkaccessmanagerproxy_p.o .obj/moc_singleapplication.o .obj/moc_squeezelabel.o .obj/moc_treesortfilterproxymodel.o .obj/moc_webpageproxy.o .obj/qrc_clicktoflash.o .obj/qrc_data.o .obj/qrc_graphics.o .obj/qrc_searchengines.o .obj/qrc_htmls.o -L/home/chenmin/cs_rootfs_1.2.7/cross_rootfs/lib -L/home/chenmin/dcchd_SMP8654_3_7_1_black.mips/directfb/lib -L/home/chenmin/qt_SMP86xx_src_4.5.0-1.2/install/lib -lQtWebKit -L/home/chenmin/qt_SMP86xx_src_4.5.0-1.2/install/lib -L/home/chenmin/cs_rootfs_1.2.7/cross_rootfs/lib -L/home/chenmin/dcchd_SMP8654_3_7_1_black.mips/directfb/lib -lQtScript -lQtGui -lpng -lfreetype -lQtNetwork -lssl -lcrypto -lQtCore -ldirectfb -lfusion -ldirect -lz -lm -lrt -ldl -lpthread
/home/chenmin/qt_SMP86xx_src_4.5.0-1.2/install/lib/libQtWebKit.so: could not read symbols: File in wrong format
2010-06-02
colin121
More information about the webkit-qt
mailing list