MhLiao / TextBoxes

TextBoxes: A Fast Text Detector with a Single Deep Neural Network
https://github.com/MhLiao/TextBoxes
Other
633 stars 154 forks source link

Compiling error #97

Open DavidSeas opened 6 years ago

DavidSeas commented 6 years ago

I'm trying to compile from the repository but I obtain the subsequent error when it try to build caffe

I'm on a MacOS platform, there is a way to avoid caffe building and use the brew version? I also tried to update my build as described in this link:https://github.com/google/protobuf/issues/4838 but the result doesn't change

In file included from /usr/local/include/google/protobuf/wire_format_lite_inl.h:43:
/usr/local/include/google/protobuf/message_lite.h:117:3: error: unknown type name 'constexpr'
  constexpr const T& get() const { return reinterpret_cast<const T&>(union_); }
  ^
/usr/local/include/google/protobuf/message_lite.h:117:13: error: expected member name or ';' after declaration specifiers
  constexpr const T& get() const { return reinterpret_cast<const T&>(union_); }
  ~~~~~~~~~ ^