You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution
Open CMakeLists.txt in the main folder, change
TARGET_LINK_LIBRARIES(main proto ${PROTOBUF_LIBRARY})
into
TARGET_LINK_LIBRARIES(main proto ${PROTOBUF_LIBRARIES})
Thank you for creating example how to build protobuf via cmake, I have a problem when running the compiled file.
libprotobuf FATAL google/protobuf/generated_message_util.cc:783
Solution
Open CMakeLists.txt in the main folder, change
TARGET_LINK_LIBRARIES(main proto ${PROTOBUF_LIBRARY})
into
TARGET_LINK_LIBRARIES(main proto ${PROTOBUF_LIBRARIES})
Based CMake documentation
https://cmake.org/cmake/help/v3.0/module/FindProtobuf.html
The text was updated successfully, but these errors were encountered: