Yocto Build qtwebengine fails for C++ standard
-
I've gone through creator with the Toradex imx6ull kit and built and deployed a small QtQuick code successfully.
I intend to build more customized OS images so I'm attempting to perform a yocto build using the instructions here with an Ubuntu 20.04 Linux host. When doing so, I get a failure building qtwebengine. According to the log, the compiler is failing due to a C++ standard issue:
g++: error: unrecognized command line option ‘-std=gnu++20’; did you mean ‘-std=gnu++2a’?What would be the most sensible fix for this?
-
I got past this by running on an Ubuntu 22.04 machine instead of the 20.04 machine. This picks up a newer compiler. It doesn't fix the problem, it makes it go away. I guess the message is that the compiler on 20.04 is not supported out of the box.