Closed winkee01 closed 2 years ago
solved by rebuilding libkeynote_lib.a
in my environment.
Hi, could you help me please? I have a problem "Build input file cannot be found". How can I solve this problem?
@winkee01 Also how can I rebuild libkeynote_lib.a in my environment? And should I do this after all? I'm not a developer, so I'm totally green in this.
@kostua-xd you can follow this step:
brew install boost
brew install protobuf
git clone --recurse-submodules https://github.com/eth-siplab/SVG2Keynote-lib
cd SVG2Keynote-lib
cmake -H. -Bbuild -DBoost_NO_BOOST_CMAKE=ON
make -C build
After success, you replace libkeynote_lib.a
with your newly built one.
Thank you for helping me. I have got "fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated." doing "make -C build". Do you maybe know why?
what errors? post the details
kanstantsinsuvorau@macbook-pro SVG2Keynote-lib % make -C build Consolidate compiler generated dependencies of target keynote_lib [ 1%] Building CXX object keynote_lib/CMakeFiles/keynote_lib.dir/proto_helper.cpp.o In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8: /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:17:2: error: This file was generated by an older version of protoc which is
^ /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:18:2: error: incompatible with your Protocol Buffer headers. Please
^ /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:19:2: error: regenerate this file with a newer version of protoc.
^ In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35: /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:17:2: error: This file was generated by an older version of protoc which is
^ /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:18:2: error: incompatible with your Protocol Buffer headers. Please
^ /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:19:2: error: regenerate this file with a newer version of protoc.
^ /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:409:33: error: non-virtual member function marked 'final' hides virtual member function inline Reference New() const final { ^ /opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0) Message New(Arena arena) const override = 0; ^ In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35: /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:590:37: error: non-virtual member function marked 'final' hides virtual member function inline DataReference New() const final { ^ /opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0) Message New(Arena arena) const override = 0; ^ In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35: /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:741:50: error: non-virtual member function marked 'final' hides virtual member function inline SparseReferenceArray_Entry New() const final { ^ /opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0) Message New(Arena arena) const override = 0; ^ In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35: /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:801:3: error: use of undeclared identifier 'PROTOBUF_MUST_USE_RESULT' PROTOBUF_MUST_USE_RESULT ::TSP::Reference release_reference(); ^ /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:915:44: error: non-virtual member function marked 'final' hides virtual member function inline SparseReferenceArray New() const final { ^ /opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0) Message New(Arena arena) const override = 0; ^ In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35: /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:1088:29: error: non-virtual member function marked 'final' hides virtual member function inline Point New() const final { ^ /opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0) Message New(Arena arena) const override = 0; ^ In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35: /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:1257:28: error: non-virtual member function marked 'final' hides virtual member function inline Size New() const final { ^ /opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0) Message New(Arena arena) const override = 0; ^ In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35: /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:1426:29: error: non-virtual member function marked 'final' hides virtual member function inline Range New() const final { ^ /opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0) Message New(Arena arena) const override = 0; ^ In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35: /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:1595:28: error: non-virtual member function marked 'final' hides virtual member function inline Date New() const final { ^ /opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0) Message New(Arena arena) const override = 0; ^ In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35: /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:1746:32: error: non-virtual member function marked 'final' hides virtual member function inline IndexSet New() const final { ^ /opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0) Message New(Arena arena) const override = 0; ^ In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35: /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:1901:29: error: non-virtual member function marked 'final' hides virtual member function inline Color New() const final { ^ /opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0) Message New(Arena arena) const override = 0; ^ In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35: /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:2264:36: error: non-virtual member function marked 'final' hides virtual member function inline Path_Element New() const final { ^ /opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0) Message New(Arena arena) const override = 0; ^ In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8: In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35: /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:2435:28: error: non-virtual member function marked 'final' hides virtual member function inline Path New() const final { ^ /opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0) Message New(Arena* arena) const override = 0; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[2]: [keynote_lib/CMakeFiles/keynote_lib.dir/proto_helper.cpp.o] Error 1 make[1]: [keynote_lib/CMakeFiles/keynote_lib.dir/all] Error 2 make: *** [all] Error 2
These errors 😅
you also have to rebuild proto-dump
, it's a binary executable application.
Follow the below instructions:
1) clone proto-dump repo
git clone --recurse-submodules https://github.com/obriensp/proto-dump
2) compile proto-dump source to get the binary app
use xcode to open .proto-dump.xcodeproj
project file, and compile.
After success, you replace the old one with it.
3) execute get-protos.sh
get-protos.sh
is a bash script, executing it will generate the necessary files for you, which is shown in your error messages.
4) make -C build
Build was failed duo to a higer version of macOS