lcm-proj / lcm

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

Attempting to make LCM fails #316

Closed carlos-menezes closed 4 years ago

carlos-menezes commented 4 years ago

Following the installation instructions from [here](), the build process of LCM fails on the 4th step (make), with the following error message(s):

[  1%] Built target lcm_use_file
[  9%] Built target lcm
[ 17%] Built target lcm-static
[ 18%] Linking C executable lcm-gen
CMakeFiles/lcm-gen.dir/emit_c.c.o: In function `emit_header_struct':
emit_c.c:(.text+0x80e): undefined reference to `g_utf8_strup'
CMakeFiles/lcm-gen.dir/emit_c.c.o: In function `emit_enum':
emit_c.c:(.text+0x7bb8): undefined reference to `g_ascii_strup'
emit_c.c:(.text+0x98c8): undefined reference to `g_ascii_strup'
CMakeFiles/lcm-gen.dir/emit_go.c.o: In function `go_typename':
emit_go.c:(.text+0x968): undefined reference to `g_string_printf'
emit_go.c:(.text+0x9ba): undefined reference to `g_string_append_printf'
CMakeFiles/lcm-gen.dir/emit_go.c.o: In function `emit_go_array_loops':
emit_go.c:(.text+0x2182): undefined reference to `g_string_append_printf'
CMakeFiles/lcm-gen.dir/emit_go.c.o: In function `emit_go_lcm_struct_definition':
emit_go.c:(.text+0x2eaf): undefined reference to `g_string_append_printf'
emit_go.c:(.text+0x317d): undefined reference to `g_string_append_printf'
emit_go.c:(.text+0x3213): undefined reference to `g_string_printf'
CMakeFiles/lcm-gen.dir/emit_go.c.o: In function `emit_go':
emit_go.c:(.text+0x8949): undefined reference to `g_path_get_dirname'
emit_go.c:(.text+0x895e): undefined reference to `g_mkdir_with_parents'
CMakeFiles/lcm-gen.dir/emit_lua.c.o: In function `_hash_table_get_vals':
emit_lua.c:(.text+0x1e5): undefined reference to `g_ptr_array_sized_new'
CMakeFiles/lcm-gen.dir/emit_lua.c.o: In function `_flush_read_struct_fmt':
emit_lua.c:(.text+0xddf): undefined reference to `g_queue_get_length'
emit_lua.c:(.text+0xdf1): undefined reference to `g_queue_get_length'
emit_lua.c:(.text+0xe4e): undefined reference to `g_queue_pop_head'
emit_lua.c:(.text+0xe7c): undefined reference to `g_queue_is_empty'
emit_lua.c:(.text+0xebc): undefined reference to `g_queue_is_empty'
emit_lua.c:(.text+0xee9): undefined reference to `g_queue_pop_head'
emit_lua.c:(.text+0xf03): undefined reference to `g_queue_is_empty'
CMakeFiles/lcm-gen.dir/emit_lua.c.o: In function `emit_lua_decode_one':
emit_lua.c:(.text+0x116c): undefined reference to `g_queue_new'
emit_lua.c:(.text+0x1175): undefined reference to `g_queue_new'
emit_lua.c:(.text+0x11e0): undefined reference to `g_queue_push_tail'
emit_lua.c:(.text+0x11f3): undefined reference to `g_queue_push_tail'
emit_lua.c:(.text+0x12a8): undefined reference to `g_string_append_printf'
emit_lua.c:(.text+0x13f6): undefined reference to `g_string_append_printf'
emit_lua.c:(.text+0x15e0): undefined reference to `g_string_append_printf'
emit_lua.c:(.text+0x1705): undefined reference to `g_queue_free'
emit_lua.c:(.text+0x1711): undefined reference to `g_queue_free'
CMakeFiles/lcm-gen.dir/emit_lua.c.o: In function `_flush_write_struct_fmt':
emit_lua.c:(.text+0x2133): undefined reference to `g_queue_get_length'
emit_lua.c:(.text+0x2141): undefined reference to `g_queue_get_length'
emit_lua.c:(.text+0x216a): undefined reference to `g_queue_is_empty'
emit_lua.c:(.text+0x21bc): undefined reference to `g_queue_pop_head'
emit_lua.c:(.text+0x21d6): undefined reference to `g_queue_is_empty'
emit_lua.c:(.text+0x2203): undefined reference to `g_queue_pop_head'
emit_lua.c:(.text+0x2231): undefined reference to `g_queue_is_empty'
emit_lua.c:(.text+0x225c): undefined reference to `g_queue_is_empty'
CMakeFiles/lcm-gen.dir/emit_lua.c.o: In function `emit_lua_encode_one':
emit_lua.c:(.text+0x248d): undefined reference to `g_queue_new'
emit_lua.c:(.text+0x2496): undefined reference to `g_queue_new'
emit_lua.c:(.text+0x2501): undefined reference to `g_queue_push_tail'
emit_lua.c:(.text+0x2514): undefined reference to `g_queue_push_tail'
emit_lua.c:(.text+0x25c7): undefined reference to `g_string_append_printf'
emit_lua.c:(.text+0x260b): undefined reference to `g_string_append_printf'
emit_lua.c:(.text+0x285b): undefined reference to `g_string_append_printf'
emit_lua.c:(.text+0x297f): undefined reference to `g_queue_free'
emit_lua.c:(.text+0x298b): undefined reference to `g_queue_free'
CMakeFiles/lcm-gen.dir/emit_lua.c.o: In function `emit_package':
emit_lua.c:(.text+0x4384): undefined reference to `g_file_test'
emit_lua.c:(.text+0x43b0): undefined reference to `g_file_test'
emit_lua.c:(.text+0x45c8): undefined reference to `g_hash_table_new_full'
emit_lua.c:(.text+0x45e5): undefined reference to `g_hash_table_new_full'
emit_lua.c:(.text+0x45fa): undefined reference to `g_file_test'
emit_lua.c:(.text+0x46a8): undefined reference to `g_regex_new'
emit_lua.c:(.text+0x46d4): undefined reference to `g_regex_match'
emit_lua.c:(.text+0x46eb): undefined reference to `g_match_info_get_match_count'
emit_lua.c:(.text+0x4704): undefined reference to `g_match_info_fetch'
emit_lua.c:(.text+0x4755): undefined reference to `g_match_info_get_match_count'
emit_lua.c:(.text+0x4772): undefined reference to `g_match_info_fetch'
emit_lua.c:(.text+0x478d): undefined reference to `g_match_info_fetch'
emit_lua.c:(.text+0x4814): undefined reference to `g_match_info_free'
emit_lua.c:(.text+0x4823): undefined reference to `g_regex_unref'
emit_lua.c:(.text+0x494d): undefined reference to `g_hash_table_get_values'
emit_lua.c:(.text+0x4a0d): undefined reference to `g_hash_table_get_values'
emit_lua.c:(.text+0x4a6a): undefined reference to `g_strv_length'
emit_lua.c:(.text+0x4d4b): undefined reference to `g_str_has_prefix'
emit_lua.c:(.text+0x4ddf): undefined reference to `g_regex_new'
emit_lua.c:(.text+0x4e3f): undefined reference to `g_regex_match'
emit_lua.c:(.text+0x4e56): undefined reference to `g_match_info_get_match_count'
emit_lua.c:(.text+0x4e73): undefined reference to `g_match_info_fetch'
emit_lua.c:(.text+0x4e8e): undefined reference to `g_match_info_fetch'
emit_lua.c:(.text+0x4f19): undefined reference to `g_match_info_free'
emit_lua.c:(.text+0x4f28): undefined reference to `g_regex_unref'
CMakeFiles/lcm-gen.dir/emit_lua.c.o: In function `emit_lua':
emit_lua.c:(.text+0x55be): undefined reference to `g_hash_table_new_full'
CMakeFiles/lcm-gen.dir/emit_python.c.o: In function `_hash_table_get_vals':
emit_python.c:(.text+0x1e5): undefined reference to `g_ptr_array_sized_new'
CMakeFiles/lcm-gen.dir/emit_python.c.o: In function `_flush_read_struct_fmt':
emit_python.c:(.text+0xe6e): undefined reference to `g_queue_get_length'
emit_python.c:(.text+0xe80): undefined reference to `g_queue_get_length'
emit_python.c:(.text+0xed8): undefined reference to `g_queue_pop_head'
emit_python.c:(.text+0xf06): undefined reference to `g_queue_is_empty'
emit_python.c:(.text+0xf46): undefined reference to `g_queue_is_empty'
emit_python.c:(.text+0xf73): undefined reference to `g_queue_pop_head'
emit_python.c:(.text+0xf8d): undefined reference to `g_queue_is_empty'
CMakeFiles/lcm-gen.dir/emit_python.c.o: In function `emit_python_decode_one':
emit_python.c:(.text+0x108b): undefined reference to `g_queue_new'
emit_python.c:(.text+0x1094): undefined reference to `g_queue_new'
emit_python.c:(.text+0x111a): undefined reference to `g_queue_push_tail'
emit_python.c:(.text+0x112d): undefined reference to `g_queue_push_tail'
emit_python.c:(.text+0x11ea): undefined reference to `g_string_append_printf'
emit_python.c:(.text+0x13b3): undefined reference to `g_string_append_printf'
emit_python.c:(.text+0x145d): undefined reference to `g_string_append_printf'
emit_python.c:(.text+0x1475): undefined reference to `g_string_append_printf'
emit_python.c:(.text+0x1593): undefined reference to `g_string_append_printf'
CMakeFiles/lcm-gen.dir/emit_python.c.o:emit_python.c:(.text+0x1665): more undefined references to `g_string_append_printf' follow
CMakeFiles/lcm-gen.dir/emit_python.c.o: In function `emit_python_decode_one':
emit_python.c:(.text+0x1734): undefined reference to `g_queue_free'
emit_python.c:(.text+0x1740): undefined reference to `g_queue_free'
CMakeFiles/lcm-gen.dir/emit_python.c.o: In function `_flush_write_struct_fmt':
emit_python.c:(.text+0x22d0): undefined reference to `g_queue_get_length'
emit_python.c:(.text+0x22de): undefined reference to `g_queue_get_length'
emit_python.c:(.text+0x2307): undefined reference to `g_queue_is_empty'
emit_python.c:(.text+0x2359): undefined reference to `g_queue_pop_head'
emit_python.c:(.text+0x2373): undefined reference to `g_queue_is_empty'
emit_python.c:(.text+0x23a0): undefined reference to `g_queue_pop_head'
emit_python.c:(.text+0x23ce): undefined reference to `g_queue_is_empty'
emit_python.c:(.text+0x23f9): undefined reference to `g_queue_is_empty'
CMakeFiles/lcm-gen.dir/emit_python.c.o: In function `emit_python_encode_one':
emit_python.c:(.text+0x24f0): undefined reference to `g_queue_new'
emit_python.c:(.text+0x24f9): undefined reference to `g_queue_new'
emit_python.c:(.text+0x2564): undefined reference to `g_queue_push_tail'
emit_python.c:(.text+0x2577): undefined reference to `g_queue_push_tail'
emit_python.c:(.text+0x262a): undefined reference to `g_string_append_printf'
emit_python.c:(.text+0x266b): undefined reference to `g_string_append_printf'
emit_python.c:(.text+0x28cb): undefined reference to `g_string_append_printf'
emit_python.c:(.text+0x2945): undefined reference to `g_queue_free'
emit_python.c:(.text+0x2951): undefined reference to `g_queue_free'
CMakeFiles/lcm-gen.dir/emit_python.c.o: In function `emit_package':
emit_python.c:(.text+0x37c6): undefined reference to `g_file_test'
emit_python.c:(.text+0x37f2): undefined reference to `g_file_test'
emit_python.c:(.text+0x3841): undefined reference to `g_hash_table_new_full'
emit_python.c:(.text+0x3974): undefined reference to `g_file_test'
emit_python.c:(.text+0x3bb6): undefined reference to `g_hash_table_replace'
CMakeFiles/lcm-gen.dir/emit_python.c.o: In function `emit_python':
emit_python.c:(.text+0x4efc): undefined reference to `g_hash_table_new_full'
collect2: error: ld returned 1 exit status
make[2]: *** [lcmgen/lcm-gen] Error 1
make[1]: *** [lcmgen/CMakeFiles/lcm-gen.dir/all] Error 2
make: *** [all] Error 2

Python, Lua and Go are installed:

$ python -V && lua -v && go version
Python 2.7.5
Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
go version go1.11.1 linux/amd64
carlos-menezes commented 4 years ago

Uh-oh. I had to re-run cmake because when I previously ran it, I didn't have all dependencies installed. Sorry!