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

Errors in linux build #270

Closed
rolivav opened this issue Oct 27, 2020 · 4 comments
Closed

Errors in linux build #270

rolivav opened this issue Oct 27, 2020 · 4 comments

Comments

@rolivav
Copy link

rolivav commented Oct 27, 2020

Getting these new errors in the linux build

ads_globals.cpp : 73 : error : undefined reference to 'xcb_intern_atom'
ads_globals.cpp : 74 : error : undefined reference to 'xcb_intern_atom_reply'
ads_globals.cpp : 113 : error : undefined reference to 'xcb_send_event'
ads_globals.cpp : 114 : error : undefined reference to 'xcb_flush'
ads_globals.cpp : 131 : error : undefined reference to 'xcb_get_property_unchecked'
ads_globals.cpp : 132 : error : undefined reference to 'xcb_get_property_reply'
ads_globals.cpp : 169 : error : undefined reference to 'xcb_get_property_value'
ads_globals.cpp : 170 : error : undefined reference to 'xcb_get_property_value_length'
ads_globals.cpp : 180 : error : undefined reference to 'xcb_get_property_value'
ads_globals.cpp : 181 : error : undefined reference to 'xcb_get_property_value_length'
ads_globals.cpp : 197 : error : undefined reference to 'xcb_get_atom_name'
ads_globals.cpp : 198 : error : undefined reference to 'xcb_get_atom_name_reply'
ads_globals.cpp : 199 : error : undefined reference to 'xcb_get_atom_name_name'
ads_globals.cpp : 231 : error : undefined reference to 'xcb_change_property'
ads_globals.cpp : 232 : error : undefined reference to 'xcb_flush'
ads_globals.cpp : 246 : error : undefined reference to 'xcb_get_setup'
ads_globals.cpp : 150 : error : undefined reference to 'xcb_get_property_value'
ads_globals.cpp : 246 : error : undefined reference to 'xcb_setup_roots_iterator'

What is the lib you are linking it against to make it work? I'm not very familiar with the linux environment.
I already added the QX11Extras dependency btw.

@githubuser0xFFFF
Copy link
Owner

Dp you use static builds?

@rolivav
Copy link
Author

rolivav commented Oct 27, 2020

yes @githubuser0xFFFF. I was able to fix it adding the xcb dependency to the CMakeLists.txt. Interesting that you didn't need to add it.

if(UNIX AND NOT APPLE)
	target_link_libraries("${MODULE}" xcb)
endif()

@rolivav rolivav closed this as completed Oct 27, 2020
@delins
Copy link

delins commented Sep 15, 2021

When I enabled a static build on ads and got errors about xcb I ended up here. Adding xcb to the target link libraries fixed it (and probably installing the dev packages through apt, which I did before it).

@rolivav I'm trying to make sense out of issue #350. @githubuser0xFFFF can't reproduce the problem. But since your system seems to differ from his, perhaps yours is like mine and you also get the bug. Could you try and see if you can reproduce it?

@rolivav
Copy link
Author

rolivav commented Sep 17, 2021

funny thing @delins ! this was just reported by a user. I will try to reproduce it.

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

3 participants