Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libprotobuf fatal error when running output file #2

Open
indrango opened this issue Sep 4, 2018 · 0 comments
Open

libprotobuf fatal error when running output file #2

indrango opened this issue Sep 4, 2018 · 0 comments

Comments

@indrango
Copy link

indrango commented Sep 4, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant