mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-10-29 14:28:07 +00:00
There are two issues which are stopping the SDL tests from building on my machine: - libunwind is not being linked - Even if it is, it is missing several symbols. The first is fixed by having the test programs link against libunwind if available. Technically, SDL2_test should be linking against it, as it's used in SDL_test_memory.c, but as SDL2_test is a static library, it can't itself import libunwind. We just assume that if it's present on the system, we should link it directly to the test programs. This should strictly be an improvement, as the only case where this'd fail is if SDL2 was compiled when libunwind was present, but the tests are being compiled without it, and that'd fail anyway. The second is fixed by #define-ing UNW_LOCAL_ONLY before including libunwind.h: this is required to make libunwind link to predicatable symbols, in what can only be described as a bit of a farce. There are a few more details in the libunwind man page, but the gist of it is that it disables support for "remote unwinding": unwinding stack frames in a different process (and possibly from a different architecture?): http://www.nongnu.org/libunwind/man/libunwind(3).html Note that I haven't tried this with CMake: I suspect that it'll work, though, as the CMakeLists.txt seems to have SDL2 link against libunwind if it's present. This adds an ugly extra dependency to SDL2, but does mean that issue 1 isn't present. The UNW_LOCAL_ONLY change shouldn't be build-system-specific. |
||
|---|---|---|
| .. | ||
| emscripten | ||
| nacl | ||
| shapes | ||
| acinclude.m4 | ||
| autogen.sh | ||
| axis.bmp | ||
| button.bmp | ||
| checkkeys.c | ||
| checkkeysthreads.c | ||
| CMakeLists.txt | ||
| configure | ||
| configure.ac | ||
| controllermap.bmp | ||
| controllermap.c | ||
| controllermap_back.bmp | ||
| COPYING | ||
| gcc-fat.sh | ||
| icon.bmp | ||
| loopwave.c | ||
| loopwavequeue.c | ||
| Makefile.in | ||
| Makefile.os2 | ||
| moose.dat | ||
| picture.xbm | ||
| README | ||
| relative_mode.markdown | ||
| sample.bmp | ||
| sample.wav | ||
| testatomic.c | ||
| testaudiocapture.c | ||
| testaudiohotplug.c | ||
| testaudioinfo.c | ||
| testautomation.c | ||
| testautomation_audio.c | ||
| testautomation_clipboard.c | ||
| testautomation_events.c | ||
| testautomation_hints.c | ||
| testautomation_keyboard.c | ||
| testautomation_main.c | ||
| testautomation_mouse.c | ||
| testautomation_pixels.c | ||
| testautomation_platform.c | ||
| testautomation_rect.c | ||
| testautomation_render.c | ||
| testautomation_rwops.c | ||
| testautomation_sdltest.c | ||
| testautomation_stdlib.c | ||
| testautomation_suites.h | ||
| testautomation_surface.c | ||
| testautomation_syswm.c | ||
| testautomation_timer.c | ||
| testautomation_video.c | ||
| testbounds.c | ||
| testcustomcursor.c | ||
| testdisplayinfo.c | ||
| testdraw2.c | ||
| testdrawchessboard.c | ||
| testdropfile.c | ||
| testerror.c | ||
| testevdev.c | ||
| testfile.c | ||
| testfilesystem.c | ||
| testgamecontroller.c | ||
| testgeometry.c | ||
| testgesture.c | ||
| testgl2.c | ||
| testgles.c | ||
| testgles2.c | ||
| testgles2_sdf.c | ||
| testgles2_sdf_img_normal.bmp | ||
| testgles2_sdf_img_sdf.bmp | ||
| testhaptic.c | ||
| testhittesting.c | ||
| testhotplug.c | ||
| testiconv.c | ||
| testime.c | ||
| testintersections.c | ||
| testjoystick.c | ||
| testkeys.c | ||
| testloadso.c | ||
| testlocale.c | ||
| testlock.c | ||
| testmessage.c | ||
| testmouse.c | ||
| testmultiaudio.c | ||
| testnative.c | ||
| testnative.h | ||
| testnativecocoa.m | ||
| testnativeos2.c | ||
| testnativew32.c | ||
| testnativex11.c | ||
| testoffscreen.c | ||
| testoverlay2.c | ||
| testplatform.c | ||
| testpower.c | ||
| testqsort.c | ||
| testrelative.c | ||
| testrendercopyex.c | ||
| testrendertarget.c | ||
| testresample.c | ||
| testrumble.c | ||
| testscale.c | ||
| testsem.c | ||
| testsensor.c | ||
| testshader.c | ||
| testshape.c | ||
| testsprite2.c | ||
| testspriteminimal.c | ||
| teststreaming.c | ||
| testthread.c | ||
| testtimer.c | ||
| testurl.c | ||
| testver.c | ||
| testviewport.c | ||
| testvulkan.c | ||
| testwm2.c | ||
| testyuv.bmp | ||
| testyuv.c | ||
| testyuv_cvt.c | ||
| testyuv_cvt.h | ||
| torturethread.c | ||
| unifont-13.0.06-license.txt | ||
| unifont-13.0.06.hex | ||
| utf8.txt | ||
These are test programs for the SDL library:
checkkeys Watch the key events to check the keyboard
loopwave Audio test -- loop playing a WAV file
loopwavequeue Audio test -- loop playing a WAV file with SDL_QueueAudio
testaudioinfo Lists audio device capabilities
testerror Tests multi-threaded error handling
testfile Tests RWops layer
testgl2 A very simple example of using OpenGL with SDL
testiconv Tests international string conversion
testjoystick List joysticks and watch joystick events
testkeys List the available keyboard keys
testloadso Tests the loadable library layer
testlocale Test Locale API
testlock Hacked up test of multi-threading and locking
testmouse Tests mouse coordinates
testmultiaudio Tests using several audio devices
testoverlay2 Tests the overlay flickering/scaling during playback.
testplatform Tests types, endianness and cpu capabilities
testsem Tests SDL's semaphore implementation
testshape Tests shaped windows
testsprite2 Example of fast sprite movement on the screen
testthread Hacked up test of multi-threading
testtimer Test the timer facilities
testver Check the version and dynamic loading and endianness
testwm2 Test window manager -- title, icon, events
torturethread Simple test for thread creation/destruction
controllermap Useful to generate Game Controller API compatible maps
This directory contains sample.wav, which is a sample from Will Provost's
song, The Living Proof:
From the album The Living Proof
Publisher: 5 Guys Named Will
Copyright 1996 Will Provost
You can get a copy of the full song (and album!) from iTunes...
https://itunes.apple.com/us/album/the-living-proof/id4153978
or Amazon...
http://www.amazon.com/The-Living-Proof-Will-Provost/dp/B00004R8RH
Thanks to Will for permitting us to distribute this sample with SDL!