{"action":"created","issue":{"url":"https://api.github.com/repos/haskell-game/sdl2/issues/69","labels_url":"https://api.github.com/repos/haskell-game/sdl2/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/haskell-game/sdl2/issues/69/comments","events_url":"https://api.github.com/repos/haskell-game/sdl2/issues/69/events","html_url":"https://github.com/haskell-game/sdl2/issues/69","id":92611015,"number":69,"title":"Installing sdl2-1.3.1 on windows fails","user":{"login":"kaervin","id":9991984,"avatar_url":"https://avatars.githubusercontent.com/u/9991984?v=3","gravatar_id":"","url":"https://api.github.com/users/kaervin","html_url":"https://github.com/kaervin","followers_url":"https://api.github.com/users/kaervin/followers","following_url":"https://api.github.com/users/kaervin/following{/other_user}","gists_url":"https://api.github.com/users/kaervin/gists{/gist_id}","starred_url":"https://api.github.com/users/kaervin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaervin/subscriptions","organizations_url":"https://api.github.com/users/kaervin/orgs","repos_url":"https://api.github.com/users/kaervin/repos","events_url":"https://api.github.com/users/kaervin/events{/privacy}","received_events_url":"https://api.github.com/users/kaervin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-02T11:06:16Z","updated_at":"2015-07-25T20:15:52Z","closed_at":null,"body":"I am trying to build sdl2 on windows , and am getting the following error message. \r\n```\r\nC:\\Users\\kaervin>cabal install sdl2 --extra-include-dirs=C:\\SDL2-2.0.3\\include --extra-lib-dirs=C:\\SDL2-2.0.3\\i686-w64-mingw32\\lib\r\nResolving dependencies...\r\nConfiguring sdl2-1.3.1...\r\nBuilding sdl2-1.3.1...\r\nFailed to install sdl2-1.3.1\r\nLast 10 lines of the build log ( C:\\Users\\kaervin\\AppData\\Roaming\\cabal\\logs\\sdl2-1.3.1.log ):\r\nC:\\Users\\kaervin\\AppData\\Local\\Temp\\sdl2-1.3.1-8956\\sdl2-1.3.1\\dist\\doc\\html\\sdl2\r\ndoesn't exist or isn't a directory\r\nsdl2-1.3.1: library-dirs: /usr/local/cross-tools/i686-w64-mingw32/lib is a\r\nrelative path which makes no sense (as there is nothing for it to be relative\r\nto). You can make paths relative to the package database itself by using\r\n${pkgroot}. (use --force to override)\r\nsdl2-1.3.1: include-dirs: /usr/local/cross-tools/i686-w64-mingw32/include/SDL2\r\nis a relative path which makes no sense (as there is nothing for it to be\r\nrelative to). You can make paths relative to the package database itself by\r\nusing ${pkgroot}. (use --force to override)\r\ncabal: Error: some packages failed to install:\r\nsdl2-1.3.1 failed during the building phase. The exception was:\r\nExitFailure 1\r\n```\r\n\r\nI already have pkg-config installed and it seems to be working.\r\nI am following the steps provided here:\r\nhttp://stackoverflow.com/questions/25635043/installing-sdl-on-windows-for-haskell-ghc\r\n"},"comment":{"url":"https://api.github.com/repos/haskell-game/sdl2/issues/comments/124883342","html_url":"https://github.com/haskell-game/sdl2/issues/69#issuecomment-124883342","issue_url":"https://api.github.com/repos/haskell-game/sdl2/issues/69","id":124883342,"user":{"login":"tejon","id":3770453,"avatar_url":"https://avatars.githubusercontent.com/u/3770453?v=3","gravatar_id":"","url":"https://api.github.com/users/tejon","html_url":"https://github.com/tejon","followers_url":"https://api.github.com/users/tejon/followers","following_url":"https://api.github.com/users/tejon/following{/other_user}","gists_url":"https://api.github.com/users/tejon/gists{/gist_id}","starred_url":"https://api.github.com/users/tejon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tejon/subscriptions","organizations_url":"https://api.github.com/users/tejon/orgs","repos_url":"https://api.github.com/users/tejon/repos","events_url":"https://api.github.com/users/tejon/events{/privacy}","received_events_url":"https://api.github.com/users/tejon/received_events","type":"User","site_admin":false},"created_at":"2015-07-25T20:15:52Z","updated_at":"2015-07-25T20:15:52Z","body":"You're compiling from a Windows shell but it's trying to use a Unix-style path. Do you have MSYS2 installed? If not, it looks like one of the tools you were using was compiled with it, and with the assumption that it would be run from within its shell. If so, run this command from within the MinGW64 shell... or (and IMO this is probably the better option) update GHC to 64-bit so it doesn't have to cross-compile SDL down to 32."}}