MPNet icon indicating copy to clipboard operation
MPNet copied to clipboard

undefined reference to `g_thread_init'

Open bbrito opened this issue 7 years ago • 2 comments

When compiling the dataset I got the following error:

CMakeFiles/viewer.dir/main_viewer.cpp.o: In function main': main_viewer.cpp:(.text.startup+0x2c): undefined reference to g_thread_init'

I think this is due to some updated version of the lcm where g_thread_init was removed. If the reference to it in main_viewer.cpp is removed it fixes this issue.

bbrito avatar Dec 07 '18 10:12 bbrito

@bbrito Hi, I meet this error before. It may be due to lack of dependency gthread-2.0 to g_thread_init. Here is my solution: add dependency gthread-2.0 to ./MPNet/data_generation/viewer/src/CMakeLists.txt in line18: before change:

pods_use_pkg_config_packages(viewer viewer 
	bot2-core 
	bot2-vis 
	bot2-lcmgl-client
	renderers)

after change:

pods_use_pkg_config_packages(viewer viewer 
	bot2-core 
	bot2-vis 
	bot2-lcmgl-client
	renderers
        gthread-2.0)

doctorsrn avatar Dec 09 '18 13:12 doctorsrn

It worked! Thanks!

bbrito avatar Jan 19 '19 14:01 bbrito