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

undefined reference to `g_thread_init' #4

Open
bbrito opened this issue Dec 7, 2018 · 2 comments
Open

undefined reference to `g_thread_init' #4

bbrito opened this issue Dec 7, 2018 · 2 comments

Comments

@bbrito
Copy link

bbrito commented Dec 7, 2018

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.

@doctorsrn
Copy link

doctorsrn commented Dec 9, 2018

@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)

@bbrito
Copy link
Author

bbrito commented Jan 19, 2019

It worked! Thanks!

scchow added a commit to scchow/MPNet that referenced this issue Jun 13, 2023
- This commit fixes issues ahq1993#3 ahq1993#4 from the original MPNet repository
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

2 participants