Closed hongmindavidkim closed 9 months ago
I believe this is already being addressed by the Google folks but in the meanwhile you can fix the problem with the changes in #215. Let me know if for whatever reason those changes don't fix the issues on your side.
@hartikainen Hey, I was finally able to successfully build it on my Ubuntu 22.04! Below are the changes I made.
First I made the changes referring to #215 and added the --experimental_allow_proto3_optional
flag, which configured the project correctly but the build failed.
I found that there was an issue using the operator[]
on a google::protobuf::Map
which expects a key of type std::string
but it was passing a std::string_view
type instead, which was introduced in C++17.
So changing the lines of (*task_parameters)[name].set_selection(...)
and (*task_parameters)[name].set_numeric(...)
to (*task_parameters)[std::string(name)].set_selection(...)
and (*task_parameters)[std::string(name)].set_numeric(...)
fixed the problem and I was able to build successfully!
This is great! Do you want to send a PR with your changes?
@erez-tom Sure! I'm also trying to fix this on 20.04. I'll create a PR after I figure this one out.
@hongmindavidkim is this issue resolved?
Hi, with the cmake tools and clang-14, I am getting this below error message when trying to build. I've tried installing
protobuf-compiler
andlibprotobuf-dev
which did not resolve the issue.I was able to build this, couple months ago with the same setup, but when I tried building again today, it gave me this error.
Any help to resolve this would be greatly appreciated!!