{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"VisualC-WinRT","path":"VisualC-WinRT","contentType":"directory"},{"name":"VisualC","path":"VisualC","contentType":"directory"},{"name":"Xcode-iOS","path":"Xcode-iOS","contentType":"directory"},{"name":"Xcode","path":"Xcode","contentType":"directory"},{"name":"acinclude","path":"acinclude","contentType":"directory"},{"name":"android-project","path":"android-project","contentType":"directory"},{"name":"build-scripts","path":"build-scripts","contentType":"directory"},{"name":"cmake","path":"cmake","contentType":"directory"},{"name":"debian","path":"debian","contentType":"directory"},{"name":"include","path":"include","contentType":"directory"},{"name":"premake","path":"premake","contentType":"directory"},{"name":"src","path":"src","contentType":"directory"},{"name":"test","path":"test","contentType":"directory"},{"name":"visualtest","path":"visualtest","contentType":"directory"},{"name":".hgignore","path":".hgignore","contentType":"file"},{"name":"Android.mk","path":"Android.mk","contentType":"file"},{"name":"BUGS.txt","path":"BUGS.txt","contentType":"file"},{"name":"CMakeLists.txt","path":"CMakeLists.txt","contentType":"file"},{"name":"COPYING.txt","path":"COPYING.txt","contentType":"file"},{"name":"CREDITS.txt","path":"CREDITS.txt","contentType":"file"},{"name":"INSTALL.txt","path":"INSTALL.txt","contentType":"file"},{"name":"Makefile.in","path":"Makefile.in","contentType":"file"},{"name":"Makefile.minimal","path":"Makefile.minimal","contentType":"file"},{"name":"Makefile.pandora","path":"Makefile.pandora","contentType":"file"},{"name":"Makefile.psp","path":"Makefile.psp","contentType":"file"},{"name":"Makefile.wiz","path":"Makefile.wiz","contentType":"file"},{"name":"README-SDL.txt","path":"README-SDL.txt","contentType":"file"},{"name":"README-android.txt","path":"README-android.txt","contentType":"file"},{"name":"README-cmake.txt","path":"README-cmake.txt","contentType":"file"},{"name":"README-directfb.txt","path":"README-directfb.txt","contentType":"file"},{"name":"README-dynapi.txt","path":"README-dynapi.txt","contentType":"file"},{"name":"README-gesture.txt","path":"README-gesture.txt","contentType":"file"},{"name":"README-hg.txt","path":"README-hg.txt","contentType":"file"},{"name":"README-ios.txt","path":"README-ios.txt","contentType":"file"},{"name":"README-linux.txt","path":"README-linux.txt","contentType":"file"},{"name":"README-macosx.txt","path":"README-macosx.txt","contentType":"file"},{"name":"README-nacl.txt","path":"README-nacl.txt","contentType":"file"},{"name":"README-pandora.txt","path":"README-pandora.txt","contentType":"file"},{"name":"README-platforms.txt","path":"README-platforms.txt","contentType":"file"},{"name":"README-porting.txt","path":"README-porting.txt","contentType":"file"},{"name":"README-psp.txt","path":"README-psp.txt","contentType":"file"},{"name":"README-raspberrypi.txt","path":"README-raspberrypi.txt","contentType":"file"},{"name":"README-touch.txt","path":"README-touch.txt","contentType":"file"},{"name":"README-wince.txt","path":"README-wince.txt","contentType":"file"},{"name":"README-windows.txt","path":"README-windows.txt","contentType":"file"},{"name":"README-winrt.txt","path":"README-winrt.txt","contentType":"file"},{"name":"README.txt","path":"README.txt","contentType":"file"},{"name":"SDL2.spec.in","path":"SDL2.spec.in","contentType":"file"},{"name":"TODO.txt","path":"TODO.txt","contentType":"file"},{"name":"VisualC.html","path":"VisualC.html","contentType":"file"},{"name":"WhatsNew.txt","path":"WhatsNew.txt","contentType":"file"},{"name":"autogen.sh","path":"autogen.sh","contentType":"file"},{"name":"cmake_uninstall.cmake.in","path":"cmake_uninstall.cmake.in","contentType":"file"},{"name":"configure","path":"configure","contentType":"file"},{"name":"configure.in","path":"configure.in","contentType":"file"},{"name":"sdl2-config.in","path":"sdl2-config.in","contentType":"file"},{"name":"sdl2.m4","path":"sdl2.m4","contentType":"file"},{"name":"sdl2.pc.in","path":"sdl2.pc.in","contentType":"file"}],"totalCount":58}},"fileTreeProcessingTime":3.589709,"foldersToFetch":[],"repo":{"id":330008801,"defaultBranch":"main","name":"SDL","ownerLogin":"libsdl-org","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2021-01-15T19:55:54.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/77683370?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"a838a56d45b237888810ca4c76d9345fe98f27f6","listCacheKey":"v0:1709678518.0","canEdit":false,"refType":"tree","currentOid":"a838a56d45b237888810ca4c76d9345fe98f27f6"},"path":"README-linux.txt","currentUser":null,"blob":{"rawLines":["================================================================================","Simple DirectMedia Layer for Linux","================================================================================","","By default SDL will only link against glibc, the rest of the features will be","enabled dynamically at runtime depending on the available features on the target","system. So, for example if you built SDL with Xinerama support and the target","system does not have the Xinerama libraries installed, it will be disabled","at runtime, and you won't get a missing library error, at least with the ","default configuration parameters.","","","================================================================================","Build Dependencies","================================================================================"," ","Ubuntu 13.04, all available features enabled:","","sudo apt-get install build-essential mercurial make cmake autoconf automake \\","libtool libasound2-dev libpulse-dev libaudio-dev libx11-dev libxext-dev \\","libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxxf86vm-dev \\","libxss-dev libgl1-mesa-dev libesd0-dev libdbus-1-dev libudev-dev \\","libgles1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev","","Ubuntu 14.04 can also add \"libwayland-dev libmirclient-dev libxkbcommon-dev\"","to that command line for Wayland and Mir support.","","NOTES:","- This includes all the audio targets except arts, because Ubuntu pulled the "," artsc0-dev package, but in theory SDL still supports it.","- DirectFB isn't included because the configure script (currently) fails to find"," it at all. You can do \"sudo apt-get install libdirectfb-dev\" and fix the "," configure script to include DirectFB support. Send patches. :)","","","================================================================================","Joystick does not work","================================================================================","","If you compiled or are using a version of SDL with udev support (and you should!)","there's a few issues that may cause SDL to fail to detect your joystick. To","debug this, start by installing the evtest utility. On Ubuntu/Debian:",""," sudo apt-get install evtest"," ","Then run:"," "," sudo evtest"," ","You'll hopefully see your joystick listed along with a name like \"/dev/input/eventXX\"","Now run:"," "," cat /dev/input/event/XX","","If you get a permission error, you need to set a udev rule to change the mode of","your device (see below) "," ","Also, try:"," "," sudo udevadm info --query=all --name=input/eventXX"," ","If you see a line stating ID_INPUT_JOYSTICK=1, great, if you don't see it,","you need to set up an udev rule to force this variable.","","A combined rule for the Saitek Pro Flight Rudder Pedals to fix both issues looks ","like:"," "," SUBSYSTEM==\"input\", ATTRS{idProduct}==\"0763\", ATTRS{idVendor}==\"06a3\", MODE=\"0666\", ENV{ID_INPUT_JOYSTICK}=\"1\""," SUBSYSTEM==\"input\", ATTRS{idProduct}==\"0764\", ATTRS{idVendor}==\"06a3\", MODE=\"0666\", ENV{ID_INPUT_JOYSTICK}=\"1\""," ","You can set up similar rules for your device by changing the values listed in","idProduct and idVendor. To obtain these values, try:"," "," sudo udevadm info -a --name=input/eventXX | grep idVendor"," sudo udevadm info -a --name=input/eventXX | grep idProduct"," ","If multiple values come up for each of these, the one you want is the first one of each. ","","On other systems which ship with an older udev (such as CentOS), you may need","to set up a rule such as:"," "," SUBSYSTEM==\"input\", ENV{ID_CLASS}==\"joystick\", ENV{ID_INPUT_JOYSTICK}=\"1\""],"stylingDirectives":[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]],"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/libsdl-org/SDL/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"README-linux.txt","displayUrl":"https://github.com/libsdl-org/SDL/blame/a838a56d45b237888810ca4c76d9345fe98f27f6/README-linux.txt?raw=true","headerInfo":{"blobSize":"3.42 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":null,"isGitLfs":false,"onBranch":false,"shortPath":"f3f2fb8","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Flibsdl-org%2FSDL%2Fblame%2Fa838a56d45b237888810ca4c76d9345fe98f27f6%2FREADME-linux.txt","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"83","truncatedSloc":"56"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Text","languageID":372,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/libsdl-org/SDL/blame/a838a56d45b237888810ca4c76d9345fe98f27f6/README-linux.txt","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/libsdl-org/SDL/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/libsdl-org/SDL/raw/a838a56d45b237888810ca4c76d9345fe98f27f6/README-linux.txt","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":true,"symbols":[]}},"copilotInfo":null,"copilotAccessAllowed":false,"blame":{"ranges":{"1":{"start":1,"oldStart":1,"end":24,"oldEnd":24,"commitOid":"3dcb451f85773e07bef3c5d1668c58ea6755c7f1","reblamePath":null},"25":{"start":25,"oldStart":25,"end":26,"oldEnd":26,"commitOid":"3dedcf29ff64a16b46ccdeda3fe7329eb37f7f86","reblamePath":"README-linux.txt"},"27":{"start":27,"oldStart":27,"end":27,"oldEnd":27,"commitOid":"4db368e6258788056f23c470c98f36ea58d8edf0","reblamePath":"README-linux.txt"},"28":{"start":28,"oldStart":25,"end":83,"oldEnd":80,"commitOid":"3dcb451f85773e07bef3c5d1668c58ea6755c7f1","reblamePath":null}},"commits":{"3dcb451f85773e07bef3c5d1668c58ea6755c7f1":{"oid":"3dcb451f85773e07bef3c5d1668c58ea6755c7f1","message":"Added a README file regarding WinRT support\n\nTo note, this file is currently formatted with CRLF line endings, rather than\nLF, to allow the file to be viewed with Notepad.","shortMessageHtmlLink":"Added a README file regarding WinRT support","authorAvatarUrl":"https://avatars.githubusercontent.com/u/475856?s=80&v=4","committerName":"David Ludwig","committerEmail":"dludwig@pobox.com","committedDate":"2014-04-09T21:29:19.000-04:00","firstParentOid":null},"3dedcf29ff64a16b46ccdeda3fe7329eb37f7f86":{"oid":"3dedcf29ff64a16b46ccdeda3fe7329eb37f7f86","message":"Corrected package list for Wayland/Mir support (was missing libxkbcommon-dev).","shortMessageHtmlLink":"Corrected package list for Wayland/Mir support (was missing libxkbcom…","authorAvatarUrl":"https://avatars.githubusercontent.com/u/673562?s=80&v=4","committerName":"Ryan C. Gordon","committerEmail":"icculus@icculus.org","committedDate":"2014-06-05T01:55:52.000-04:00","firstParentOid":"1188c174d7ce53b940036b4bae510a80aa06d07a"},"4db368e6258788056f23c470c98f36ea58d8edf0":{"oid":"4db368e6258788056f23c470c98f36ea58d8edf0","message":"Added note about Wayland and Mir packages for Ubuntu 14.04.","shortMessageHtmlLink":"Added note about Wayland and Mir packages for Ubuntu 14.04.","authorAvatarUrl":"https://avatars.githubusercontent.com/u/673562?s=80&v=4","committerName":"Ryan C. Gordon","committerEmail":"icculus@icculus.org","committedDate":"2014-05-24T19:49:03.000-04:00","firstParentOid":"846a3e07769dfac8535a300caf1d053359ccf697"}},"ignoreRevs":{"path":".git-blame-ignore-revs","present":false,"timedOut":null}},"csrf_tokens":{"/libsdl-org/SDL/branches":{"post":"3fnj63mfO_NGZUacwZLGDpCjzvN2ANdaazpxMO87jZNrSw88cz3CyJi7uo0tlcVN51XdcB7Zg9BEeVc2stMqwA"},"/repos/preferences":{"post":"9dAgoT1-_6-THPjUcDYSsc17PROOsf2_YcEigK61XV0yU0x_cl4TXZOOqYyArC2vDuPHkBjYWDmyjRAgVRmrkQ"}}},"title":"Blaming SDL/README-linux.txt at a838a56d45b237888810ca4c76d9345fe98f27f6 · libsdl-org/SDL"}