lcm-proj / lcm

Lightweight Communications and Marshalling
GNU Lesser General Public License v2.1
981 stars 388 forks source link

undefined reference to symbol 'lcm_subscription_set_queue_capacity' #229

Open lesun90 opened 6 years ago

lesun90 commented 6 years ago

I got undefined reference to symbol 'lcm_subscription_set_queue_capacity' error.

/usr/bin/ld: /home/duongle/Downloads/rrtstart-master/build/lib/liblcmtypes_lcmtypes.a(lcmtypes_environment_t.c.o): undefined reference to symbol 'lcm_subscription_set_queue_capacity' /usr/local/lib/liblcm.so: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status

Can you help me fix this. Thanks

mwoehlke-kitware commented 6 years ago

Are you trying to build LCM? Or some project that uses LCM? It looks like you are trying to build something which uses LCM, and is not specifying its link libraries properly. If this is the case, you should report the bug to that project instead.

lesun90 commented 6 years ago

I tried to build this project https://svn.csail.mit.edu/rrtstar/ which is a long time ago

mwoehlke-kitware commented 6 years ago

Oh... pods... :scream:

Yeah, I'm pretty sure that lcmtypes_build is all kinds of broken, especially if you are using LCM master (are you?). If you're using LCM master, please read the updated tutorial for how to use LCM.

lesun90 commented 6 years ago

do you know which LCM compatible with that project? Thank alottttt.

mwoehlke-kitware commented 6 years ago

Try v1.3-lts or v1.3.1

thachdo commented 3 years ago

Hi @lesun90, did you fix the bug?

lesun90 commented 3 years ago

Hi @lesun90, did you fix the bug?

No, I endup implemented my own code.