Hi,
I have a problem that I have been struggling with for weeks. I previously asked about it in qtEmbedded: "How to build Qt for Raspberry Pi3" but did not get a solution. Now I seem to have a very specific problem that hopefully someone will be kind enough to help with.
I finally broke down and followed the instructions in https://github.com/Kukkimonsuta/rpi-buildqt EXACTLY, i.e I started a new Ubuntu16.04LTS VM and a new Jessie Lite. I can build qtbase and other modules BUT when I try to build webengine, it always fails. It is consistently failing at run_ninja failed. I did add an additional dependency in the VM of gperf as my previous question indicated it was required for web engine.
Traceback (most recent call last):
File "../../3rdparty/chromium/third_party/WebKit/Source/build/scripts/rule_bison.py", line 83, in <module>
returnCode = subprocess.call([bisonExe, '-d', '-p', prefix, inputFile, '-o', outputCpp])
File "/usr/lib/python2.7/subprocess.py", line 523, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
[1030/15771] ACTION //third_party/WebKit/Source/core:m...home/steve/raspi/src/qtwebengine/src/toolchain:target)
ninja: build stopped: subcommand failed.
Makefile.gn_run:335: recipe for target 'run_ninja' failed
make[3]: *** [run_ninja] Error 1
make[3]: Leaving directory '/home/steve/raspi/src/qtwebengine/src/core'
Makefile:78: 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/steve/raspi/src/qtwebengine/src/core'
Makefile:75: recipe for target 'sub-core-make_first' failed
make[1]: *** [sub-core-make_first] Error 2
make[1]: Leaving directory '/home/steve/raspi/src/qtwebengine/src'
Makefile:44: recipe for target 'sub-src-make_first' failed
make: *** [sub-src-make_first] Error 2
This is the script calling the build and I installed sub-process chromium and built webchannel when prompted that it was required.
#!/bin/bash
set -e
SCRIPTDIR=$(dirname "$0")
source $SCRIPTDIR/env.sh
SOURCE_DIR=${RPIDEV_SRC}/qtwebengine
cd $SOURCE_DIR
# echo
# echo "== Cleaning previous build =="
# echo
# rm -rf QT_INSTALL_DIR
# rm -rf QT_INSTALL_DIR_HOST
echo
echo "== Configuring qtmultimedia =="
echo
${QT_INSTALL_DIR_HOST}/bin/qmake
echo
echo "== Building qtwebengine =="
echo
make -j${RPIDEV_JOBS}
echo
echo "== Installing qtwebengine =="
echo
make install
Any help would be GREATLY appreciated.