ryanbinns / ttwatch

Linux TomTom GPS Watch Utilities
MIT License
205 stars 66 forks source link

ttbincnv breaks with protobuf errors while linking libttbin.a #169

Closed daveedc closed 4 years ago

daveedc commented 4 years ago

Getting this error from the cmake build. I tried using the flag '-o pack' reference by protobuf forums suggestions. The build is under Ubuntu 20.04

/usr/bin/ld: libttbin.a(activity_tracking.pb-c.c.o): in function activity__pack': /home/daveedc/ttwatch/src/protobuf/activity_tracking.pb-c.c:612: undefined reference toprotobuf_c_message_pack' /usr/bin/ld: libttbin.a(activity_tracking.pb-c.c.o): in function activity__pack_to_buffer': /home/daveedc/ttwatch/src/protobuf/activity_tracking.pb-c.c:619: undefined reference toprotobuf_c_message_pack_to_buffer' /us

daveedc commented 4 years ago

resolved the issue by editing the CMakeFiles/ttbincnv.dir/link.txt and adding -lprotobuf-c to it