Qt5-Webkit fails to build
-
Hi and welcome to devnet,
You should post a more complete error log. Currently it's not possible to know what is being redefined in Font
-
here the complete build log from the Terminal, it is to much to write it here so
you can download it from my File Hoster"Qt5-Webkit Build Log":http://www.mediafire.com/download/u6sqqxm7pf5ao3x/Qt5-Webkit_build.txt
-
Looks like it's a custom patched version of webkit, can you try with a vanilla version ?
-
@Pisi-Linux : Is the issue resolved?
I too get same error.
I am trying to build Qt on raspbian jessie OS for building Qt application on raspberry board itself. I followed steps in Native Build of Qt 5.4.1 on a Raspberry Pi , but build on sd card itself without using external usb HDD as mentioned in post.
I got error E: Unable to locate package libxcb-sync0 when I tried to do the step Configure and compile Qt source code ->
Installing dependencies.I continue to build and while building Qt Webkit I got error
make[3]: Entering directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/ThirdParty/ANGLE'
make[3]: Nothing to be done for 'first'.
make[3]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/ThirdParty/ANGLE'
make[2]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/ThirdParty/ANGLE'
cd Source/ThirdParty/leveldb/ && ( test -e Makefile.leveldb || /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/ThirdParty/leveldb/leveldb.pro -o Makefile.leveldb ) && make -f Makefile.leveldb
make[2]: Entering directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/ThirdParty/leveldb'
( test -e Makefile.Target || /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/ThirdParty/leveldb/Target.pri -o Makefile.Target ) && make -f Makefile.Target
make[3]: Entering directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/ThirdParty/leveldb'
make[3]: Nothing to be done for 'first'.
make[3]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/ThirdParty/leveldb'
make[2]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/ThirdParty/leveldb'
cd Source/WebCore/ && ( test -e Makefile.WebCore || /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebCore/WebCore.pro -o Makefile.WebCore ) && make -f Makefile.WebCore
make[2]: Entering directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebCore'
( test -e Makefile.WebCore.DerivedSources || /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebCore/DerivedSources.pri -o Makefile.WebCore.DerivedSources ) && make -f Makefile.WebCore.DerivedSources
make[3]: Entering directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebCore'
make[3]: Nothing to be done for 'first'.
make[3]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebCore'
( test -e Makefile.WebCore.Target || /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebCore/Target.pri -o Makefile.WebCore.Target ) && make -f Makefile.WebCore.Target
make[3]: Entering directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebCore'
make[3]: Nothing to be done for 'first'.
make[3]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebCore'
make[2]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebCore'
cd Source/WebKit/ && ( test -e Makefile.WebKit1 || /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebKit/WebKit1.pro -o Makefile.WebKit1 ) && make -f Makefile.WebKit1
make[2]: Entering directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebKit'
make[2]: Nothing to be done for 'first'.
make[2]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebKit'
cd Source/WebKit2/ && ( test -e Makefile.WebKit2 || /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebKit2/WebKit2.pro -o Makefile.WebKit2 ) && make -f Makefile.WebKit2
make[2]: Entering directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebKit2'
( test -e Makefile.WebKit2.DerivedSources || /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebKit2/DerivedSources.pri -o Makefile.WebKit2.DerivedSources ) && make -f Makefile.WebKit2.DerivedSources
make[3]: Entering directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebKit2'
perl /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebKit2/Scripts/generate-forwarding-headers.pl /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebKit2 /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/include qt
make[3]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebKit2'
( test -e Makefile.WebKit2.Target || /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebKit2/Target.pri -o Makefile.WebKit2.Target ) && make -f Makefile.WebKit2.Target
make[3]: Entering directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebKit2'
make[3]: Nothing to be done for 'first'.
make[3]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebKit2'
make[2]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebKit2'
cd Source/ && ( test -e Makefile.QtWebKit || /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/QtWebKit.pro -o Makefile.QtWebKit ) && make -f Makefile.QtWebKit
make[2]: Entering directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source'
( test -e Makefile.api || /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/api.pri -o Makefile.api ) && make -f Makefile.api
make[3]: Entering directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source'
rm -f libQt5WebKit.so.5.4.1 libQt5WebKit.so libQt5WebKit.so.5 libQt5WebKit.so.5.4
/usr/bin/g++ -Wl,-rpath-link,/opt/vc/lib -Wl,-rpath-link,/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/lib/arm-linux-gnueabihf -Wl,--gc-sections -Wl,--no-undefined -Wl,--no-undefined -fdebug-types-section -Wl,-O1 -fuse-ld=gold -Wl,-rpath,/usr/local/qt5/lib -shared -Wl,-soname,libQt5WebKit.so.5 -o libQt5WebKit.so.5.4.1 -L/opt/vc/lib -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/lib -lQt5Gui -L/opt/vc/lib -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Network -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Core -lpthread -lpthread -Wl,-whole-archive -lWebKit1 -Wl,-no-whole-archive -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebKit/ -Wl,-whole-archive -lWebKit2 -Wl,-no-whole-archive -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebKit2/ -lrt -Wl,-whole-archive -lWebCore -Wl,-no-whole-archive -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WebCore/ -lz -lXrender -ljpeg -lpng -Wl,-whole-archive -lANGLE -Wl,-no-whole-archive -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/ThirdParty/ANGLE/ -Wl,-whole-archive -lleveldb -Wl,-no-whole-archive -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/ThirdParty/leveldb/ -Wl,-whole-archive -lJavaScriptCore -Wl,-no-whole-archive -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/JavaScriptCore/ -Wl,-whole-archive -lWTF -Wl,-no-whole-archive -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/WTF/ -lEGL -lGLESv2 -lXext -lX11 -lm -lX11 -lxslt -lxml2 -lxml2 -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 -lxml2 -lgstapp-0.10 -lgstbase-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 -lxml2 -lgstbase-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 -lxml2 -lgstinterfaces-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 -lxml2 -lgstpbutils-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 -lxml2 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 -lxml2 -lgstvideo-0.10 -lgstbase-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 -lxml2 -lsqlite3 -licui18n -licuuc -licudata -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtsensors/lib -lQt5Sensors -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/lib -lQt5Core -lpthread -lpthread -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtlocation/lib -lQt5Positioning -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/lib -lQt5Core -lpthread -lpthread -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtdeclarative/lib -lQt5Quick -L/opt/vc/lib -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/lib -lQt5Gui -L/opt/vc/lib -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/lib -lQt5Core -lpthread -lpthread -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtdeclarative/lib -lQt5Qml -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/lib -lQt5Network -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Core -lpthread -lpthread -lQt5Network -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Core -lpthread -lpthread -lQt5Qml -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/lib -lQt5Network -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Core -lpthread -lpthread -lQt5Network -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Gui -L/opt/vc/lib -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/lib -lQt5Core -lpthread -lpthread -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebchannel/lib -lQt5WebChannel -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtdeclarative/lib -lQt5Qml -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/lib -lQt5Network -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Core -lpthread -lpthread -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/lib -lQt5Network -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Core -lpthread -lpthread -lQt5Sql -L/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Core -lpthread -lGLESv2
/usr/bin/ld.gold: internal error in make_view, at ../../gold/fileread.cc:472
collect2: error: ld returned 1 exit status
Makefile.api:115: recipe for target '../lib/libQt5WebKit.so.5.4.1' failed
make[3]: *** [../lib/libQt5WebKit.so.5.4.1] Error 1
make[3]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source'
Makefile.QtWebKit:45: recipe for target 'sub-api-pri-make_first-ordered' failed
make[2]: *** [sub-api-pri-make_first-ordered] Error 2
make[2]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source'
Makefile:351: recipe for target 'sub-Source-QtWebKit-pro-make_first-ordered' failed
make[1]: *** [sub-Source-QtWebKit-pro-make_first-ordered] Error 2
make[1]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit'
Makefile:485: recipe for target 'module-qtwebkit-make_first' failed
make: *** [module-qtwebkit-make_first] Error 2Is there any way to resolve this?
@SGaist : could you have a look into this?
Thanks in advance
-
Hi,
Never got hit by that one, does it happen again if you restart the build ?
-
What Linux flavor are you running ? Version of gcc ?
-
Did you check that you have all dependencies dev-packages installed ?
-
Hello,
I have been stuck for few days now trying to bitbake meta-toolchain-qt5 (Jethro --> Qt5.5) using Yocto. I did not have any issues in the previous versions. I would greatly appreciate any pointers on how to approach this issue. The error log is not very helpful. Is it possible to remove webkit from the toolchain build? I'm not planing on using it in my application.
Here is the portion of the log:
| DOMAllInOne.cpp:(.text._ZN7WebCore15HTMLTagNodeListC2EN3WTF10PassRefPtrINS_4NodeEEERKNS1_12AtomicStringE+0xa8): undefined reference to.LANCHOR158' | /home/martin/Yocto/wandboard-bsp-jethro/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtwebkit/5.5.1+gitAUTOINC+0d592678ba-r0/build/Source/WebCore//.obj/dom/DOMAllInOne.o: In function
WebCore::NameNodeList::NameNodeList(WTF::PassRefPtrWebCore::Node, WTF::AtomicString const&)':
| DOMAllInOne.cpp:(.text._ZN7WebCore12NameNodeListC2EN3WTF10PassRefPtrINS_4NodeEEERKNS1_12AtomicStringE+0x124): undefined reference to.LANCHOR61' | DOMAllInOne.cpp:(.text._ZN7WebCore12NameNodeListC2EN3WTF10PassRefPtrINS_4NodeEEERKNS1_12AtomicStringE+0x128): undefined reference to
.LANCHOR159'
| collect2: error: ld returned 1 exit status
| make[2]: *** [../lib/libQt5WebKit.so.5.5.1] Error 1
| make[2]: Leaving directory/home/martin/Yocto/wandboard-bsp-jethro/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtwebkit/5.5.1+gitAUTOINC+0d592678ba-r0/build/Source' | make[1]: *** [sub-api-pri-make_first-ordered] Error 2 | make[1]: Leaving directory
/home/martin/Yocto/wandboard-bsp-jethro/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtwebkit/5.5.1+gitAUTOINC+0d592678ba-r0/build/Source'
| make: *** [sub-Source-QtWebKit-pro-make_first-ordered] Error 2
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /home/martin/Yocto/wandboard-bsp-jethro/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtwebkit/5.5.1+gitAUTOINC+0d592678ba-r0/temp/log.do_compile.9933) -
I have a raspberry Pi Zero, I've been following the information on this Wiki page:
https://wiki.qt.io/Native_Build_of_Qt5_on_a_Raspberry_Pi
I've encountered a few errors during installing the packages, the first was with: libjpeg62-dev, I got over this by installing libjeg62.
The next problem was with libxcb-sync0:
Unable to locate package libxcb-sync0.
The operating system version is:
Linux raspberrypi 4.4.11+ #888 Mon May 29 20:02:58 BST 2016 armv6l GNU/Linux
I ignored this error and left it building overnight, when I came back to it it failed, obviously this library is required.
What can I do to satisfy this requirement?
-
What distribution are you using exactly ?
I've built Qt on a Pi using raspbian without any trouble however I didn't had the need for QtWebKit so I didn't bother with that module since what I needed already required a very long build time.