linux-sunxi / sunxi-mali

Sunxi Mali-400 support libraries.
56 stars 71 forks source link

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

Open ingmar-k opened 10 years ago

ingmar-k commented 10 years ago

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 commented 9 years ago

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

cemelmaci commented 9 years ago

Thanks

wayfarerbasta commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

ingmar-k commented 8 years ago

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

akaltar commented 6 years ago

In 2017 this problem is still not addressed.

EthanHaid commented 4 years ago

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

ValentiWorkLearning commented 4 years ago

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

MLXProjects commented 1 year ago

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