| Summary: | SDL native window test fails to compile | ||
|---|---|---|---|
| Product: | SDL | Reporter: | willis.wendler |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | minor | ||
| Priority: | P2 | CC: | gabomdq |
| Version: | 2.0.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: | The full output of trying to configure and make the tests. | ||
This should be fix on Mercurial, can you confirm? (In reply to Gabriel Jacobo from comment #1) > This should be fix on Mercurial, can you confirm? The mercurial version adds the -lX11 option, and does indeed compile correctly. I should have thought to search for closed bugs too, as bug 1973 seems to be the same thing! Marking as fixed then! Thanks for the report. |
Created attachment 1326 [details] The full output of trying to configure and make the tests. The native window test fails to compile. The full output of running "./configure; make" in the test directory is attached, and the bit that seemed relevant is pasted below. Compiling with the -lX11 option added fixes this issue, and the resulting executable appears to work. All other tests compiled and ran without issue. I'm running linux mint "olivia". gcc -o testnative testnative.c testnativex11.c -g -O2 -D_REENTRANT -I/usr/local/include/SDL2 -DHAVE_OPENGL -lSDL2_test -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lSDL2 -lpthread /tmp/cc1qoj2R.o: In function `DestroyWindowX11': /home/wwendler/b/SDL2-2.0.0/test/testnativex11.c:48: undefined reference to `XDestroyWindow' /tmp/cc1qoj2R.o: In function `CreateWindowX11': /home/wwendler/b/SDL2-2.0.0/test/testnativex11.c:33: undefined reference to `XOpenDisplay' /home/wwendler/b/SDL2-2.0.0/test/testnativex11.c:35: undefined reference to `XCreateSimpleWindow' /home/wwendler/b/SDL2-2.0.0/test/testnativex11.c:38: undefined reference to `XMapRaised' /home/wwendler/b/SDL2-2.0.0/test/testnativex11.c:39: undefined reference to `XSync' /tmp/cc1qoj2R.o: In function `DestroyWindowX11': /home/wwendler/b/SDL2-2.0.0/test/testnativex11.c:49: undefined reference to `XCloseDisplay' collect2: error: ld returned 1 exit status make: *** [testnative] Error 1