Closed Kumataro closed 10 months ago
I tried to make patch. However it cannot pass existing tests.
https://github.com/opencv/opencv/compare/4.x...Kumataro:opencv:fix24369
executing CMake, building and linking are OK.
cmake -S opencv -B build4-main_cxx17 \
-DCMAKE_CXX_STANDARD=17 \
-GNinja \
-DBUILD_PROTOBUF=OFF \
-DPROTOBUF_UPDATE_FILES=ON
However testing with external prorobuf v22 and C++17 is failed for caffe layers.
The testing with internal protobuf v19 and C++11 is OK for caffe layers. I'll investitage it a little.
There is a custom patch over protobuf to support custom layers (AFAIK caffe importer only).
Thank you for your reply !! I can find it.
Describe the feature and motivation
Hello, The original issue is https://github.com/opencv/opencv/issues/23466#issuecomment-1748936827.
Related https://github.com/opencv/opencv/issues/23791 (I'm sorry if this is duplicated.)
What is problem
When using external(not built-in) protobuf v22 and later, building dnn module is failed.
Reason
Because protobuf v22 has a few breaking changes. ( https://protobuf.dev/support/migration/#cpp-22 )
How to fix it ?
I believe.
Additional context
No response