[Qtwebengine] Link error crossbuilding WebEngine

Luca Carlon carlon.luca at gmail.com
Sun Nov 19 16:42:53 CET 2017


Hello! I'm trying to build QtWebEngine in Qt 5.9.2 for an embedded arm
linux based board. I was able to build it properly until around Qt 5.8 but
I'm now getting this error:

[1/9887] LINK host/character_data_generator
FAILED: host/character_data_generator
/usr/bin/g++ -Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,now
-Wl,-z,relro -Wl,-z,defs -Wl,--no-as-needed -lpthread -Wl,--as-needed
-pthread -m64 -Wl,-O1 -Wl,--gc-sections -Wl,-rpath-link=host
-Wl,--disable-new-dtags -L/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf -o
"host/character_data_generator" -Wl,--start-group
@"host/character_data_generator.rsp"  -Wl,--end-group  -ldl -lrt -licui18n
-licuuc -licudata
/usr/bin/ld: skipping incompatible
/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/libpthread.so when searching
for -lpthread
/usr/bin/ld: skipping incompatible
/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/libpthread.a when searching
for -lpthread
/usr/bin/ld: skipping incompatible
/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/libdl.so when searching for
-ldl
/usr/bin/ld: skipping incompatible
/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/libdl.a when searching for -ldl
/usr/bin/ld: skipping incompatible
/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/librt.so when searching for
-lrt
/usr/bin/ld: skipping incompatible
/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/librt.a when searching for -lrt
/usr/bin/ld: skipping incompatible
/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/libicui18n.so when searching
for -licui18n
/usr/bin/ld: skipping incompatible
/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/libicui18n.a when searching
for -licui18n
/usr/bin/ld: skipping incompatible
/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/libicuuc.so when searching for
-licuuc
/usr/bin/ld: skipping incompatible
/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/libicuuc.a when searching for
-licuuc
/usr/bin/ld: skipping incompatible
/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/libicudata.so when searching
for -licudata
/usr/bin/ld: skipping incompatible
/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/libicudata.a when searching
for -licudata
/usr/bin/ld: skipping incompatible
/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible
/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible
/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/libpthread.so when searching
for -lpthread
/usr/bin/ld: skipping incompatible
/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/libpthread.a when searching
for -lpthread
/usr/bin/ld: skipping incompatible
/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible
/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/libc.a when searching for -lc
collect2: error: ld returned 1 exit status
[5/9887] CXX
host/obj/third_party/protobuf/protobuf_full/generated_message_reflection.o
ninja: build stopped: subcommand failed.
Makefile.gn_run:457: recipe for target 'run_ninja' failed
make[3]: *** [run_ninja] Error 1
make[3]: Leaving directory '/home/luca/qt/build_webengine/src/core'
Makefile:80: recipe for target 'sub-gn_run-pro-make_first' failed
make[2]: *** [sub-gn_run-pro-make_first] Error 2
make[2]: Leaving directory '/home/luca/qt/build_webengine/src/core'
Makefile:77: recipe for target 'sub-core-make_first' failed
make[1]: *** [sub-core-make_first] Error 2
make[1]: Leaving directory '/home/luca/qt/build_webengine/src'
Makefile:46: recipe for target 'sub-src-make_first' failed
make: *** [sub-src-make_first] Error 2

/opt/rpi/sysroot is where the sysroot of target filesystem is located. This
seems like it is trying to build something for the host but seems to be
providing a search path in the sysroot. Any idea what I'm doing wrong that
can be causing this incoherent behavior?
I configured the build with this command:

qmake <qtwebengine_root> -r -- -feature-embedded

Thank you for any advice you could provide.
Regards.

Luca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qtwebengine/attachments/20171119/344437d4/attachment.html>


More information about the QtWebEngine mailing list