Source build errors
-
wrote on 11 Dec 2023, 09:04 last edited by
when i am build 5.12.5 source on ubuntu 16.04 geting error
ninja: build stopped: subcommand failed.
Makefile.gn_run:1195: recipe for target 'run_ninja' failed
make[4]: *** [run_ninja] Error 1
make[4]: Leaving directory '/home/sumanthch/Qt5.12.5/5.12.5/Src/qtwebengine/src/core'
Makefile:82: recipe for target 'sub-gn_run-pro-make_first' failed
make[3]: *** [sub-gn_run-pro-make_first] Error 2
make[3]: Leaving directory '/home/sumanthch/Qt5.12.5/5.12.5/Src/qtwebengine/src/core'
Makefile:80: recipe for target 'sub-core-make_first' failed
make[2]: *** [sub-core-make_first] Error 2
make[2]: Leaving directory '/home/sumanthch/Qt5.12.5/5.12.5/Src/qtwebengine/src'
Makefile:48: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory '/home/sumanthch/Qt5.12.5/5.12.5/Src/qtwebengine'
Makefile:1031: recipe for target 'module-qtwebengine-make_first' failed
make: *** [module-qtwebengine-make_first] Error 2
How to resolve this error -
when i am build 5.12.5 source on ubuntu 16.04 geting error
ninja: build stopped: subcommand failed.
Makefile.gn_run:1195: recipe for target 'run_ninja' failed
make[4]: *** [run_ninja] Error 1
make[4]: Leaving directory '/home/sumanthch/Qt5.12.5/5.12.5/Src/qtwebengine/src/core'
Makefile:82: recipe for target 'sub-gn_run-pro-make_first' failed
make[3]: *** [sub-gn_run-pro-make_first] Error 2
make[3]: Leaving directory '/home/sumanthch/Qt5.12.5/5.12.5/Src/qtwebengine/src/core'
Makefile:80: recipe for target 'sub-core-make_first' failed
make[2]: *** [sub-core-make_first] Error 2
make[2]: Leaving directory '/home/sumanthch/Qt5.12.5/5.12.5/Src/qtwebengine/src'
Makefile:48: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory '/home/sumanthch/Qt5.12.5/5.12.5/Src/qtwebengine'
Makefile:1031: recipe for target 'module-qtwebengine-make_first' failed
make: *** [module-qtwebengine-make_first] Error 2
How to resolve this error@S_E_E_N_U this output does not contain any error information. Look before these lines to see what really is failing.
In general I'd say this: try to compile with
qmake
instead. Back in those days (Qt 5.12),cmake
support was not as good in building Qt as it is today. -
@S_E_E_N_U this output does not contain any error information. Look before these lines to see what really is failing.
In general I'd say this: try to compile with
qmake
instead. Back in those days (Qt 5.12),cmake
support was not as good in building Qt as it is today.As @sierdzio said, this doesn't show the actual error: Grep for something that contains 'error:'
In general I'd say this: try to compile with qmake instead. Back in those days (Qt 5.12), cmake support was not as good in building Qt as it is today.
I'm pretty sure that the OP was using configure ... make, so qmake (there was never the option to build Qt 5 itself with CMake). The error is from qtwebengine though, which uses gn/ninja for the Chromium parts. Not something you can change easily...
-
As @sierdzio said, this doesn't show the actual error: Grep for something that contains 'error:'
In general I'd say this: try to compile with qmake instead. Back in those days (Qt 5.12), cmake support was not as good in building Qt as it is today.
I'm pretty sure that the OP was using configure ... make, so qmake (there was never the option to build Qt 5 itself with CMake). The error is from qtwebengine though, which uses gn/ninja for the Chromium parts. Not something you can change easily...
@kkoehne ah right, makes sense. I was surprised to see
ninja
in Qt 5.12 but thought maybe I just don't remember that it was possible to usecmake
. But now that's clear, this ninja call comes from one of the web modules which I don't use.
1/4