On Thu, Oct 5, 2023 at 3:01 PM Martin Jansa via lists.openembedded.org <[email protected]> wrote:
> This breaks opencv builds with dnn PACKAGECONFIG is enabled. > > opencv is using -std=c++11 and now > recipe-sysroot/usr/include/google/protobuf/stubs/common.h > includes absl/strings/string_view.h which fails with > opencv/4.8.0/recipe-sysroot/usr/include/absl/base/policy_checks.h:79:2: > error: #error "C++ versions less than C++14 are not supported." > 79 | #error "C++ versions less than C++14 are not supported." > | ^~~~~ > > as shown in http://errors.yoctoproject.org/Errors/Details/739306/ > > Passing > -DOPENCV_SKIP_CMAKE_CXX_STANDARD=OFF -DCMAKE_CXX_STANDARD=14 > in dnn PACKAGECONFIG: > PACKAGECONFIG[dnn] = "-DBUILD_opencv_dnn=ON -DPROTOBUF_UPDATE_FILES=ON > -DBUILD_PROTOBUF=OFF -DOPENCV_SKIP_CMAKE_CXX_STANDARD=OFF > -DCMAKE_CXX_STANDARD=14,-DBUILD_opencv_dnn=OFF,protobuf protobuf-native," > > helps with this first part, but then it fails to link with absl: > http://errors.yoctoproject.org/Errors/Details/739308/ > > At least protobuf isn't upgraded in nanbield branch yet, so it still > builds there. > FYI: Similar issue was reported in: https://github.com/opencv/opencv/issues/23466 and should be fixed in: https://github.com/opencv/opencv/pull/23600 which is included in 4.8.0 version used in meta-oe, but now string_view is pulled by protobuf itself, not flatbuffers. On Wed, Sep 27, 2023 at 10:42 AM Clément Péron <[email protected]> wrote: > >> From: Xiangyu Chen <[email protected]> >> >> Signed-off-by: Xiangyu Chen <[email protected]> >> Signed-off-by: Clément Péron <[email protected]> >> --- >> ...efile-respect-CXX-LDFLAGS-variables-fix-.patch | 15 +++++++++------ >> .../{protobuf_3.21.12.bb => protobuf_4.22.2.bb} | 11 ++++++++--- >> 2 files changed, 17 insertions(+), 9 deletions(-) >> rename meta-oe/recipes-devtools/protobuf/{protobuf_3.21.12.bb => >> protobuf_4.22.2.bb} (86%) >> >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#105356): https://lists.openembedded.org/g/openembedded-devel/message/105356 Mute This Topic: https://lists.openembedded.org/mt/101613793/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
