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

Missing "-lX11" in Makefile for test? #9

Open
ingmar-k opened this issue May 4, 2014 · 10 comments
Open

Missing "-lX11" in Makefile for test? #9

ingmar-k opened this issue May 4, 2014 · 10 comments

Comments

@ingmar-k
Copy link

ingmar-k commented May 4, 2014

Hello,

I just came across this little annoyance when trying to build the "test" utility on Debian Jessie.
I needed to add the linker option "-lX11" to the Makefile, or otherwise the test would not build. When added, it built without a problem.

Regards

Ingmar

@white-gecko
Copy link

Thank you for this hint it helped me after I got undefined reference to symbol 'XNextEvent'

@cemelmaci
Copy link

Thanks

@wayfarerbasta
Copy link

Thank you for that hint. Unfortunatly I have no idea how to add the "-lX11" linker Option to the Makefile. Can you please post the modified Makefile?

@ingmar-k
Copy link
Author

ingmar-k commented Feb 7, 2016

You just open the "Makefile" in the "test" subfolder and add the "-lX11" string to the end of the following line:
$(CC) $(CFLAGS) -o $@ test.c -lEGL -lGLESv2

That is it.

@wayfarerbasta
Copy link

Okay, I tried to modify the Makefile in the Main directory. Thank you for that hint. It worked.

@ingmar-k
Copy link
Author

ingmar-k commented Feb 8, 2016

You are absolutely welcome. Great to hear that it worked.

@akaltar
Copy link

akaltar commented Dec 7, 2017

In 2017 this problem is still not addressed.

@EthanHaid
Copy link

This fixed undefined reference to symbol 'XNextEvent for me as well, 2019

@ValentiWorkLearning
Copy link

Issue is available still. 2020. Fix is valid to, just simply add -lX11.

@MLXProjects
Copy link

what is worse, this still being open after solving or that people like me still uses such old hardware 🤣

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

8 participants