-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDL under ghc 7.8.2 #2
Comments
Thanks! It might be a good thing to open a ticket on SDL itself, since the typeable thing is their responsibility. There's two pending tasks here: modify the readme to reflect these instructions, and change the cabal file. |
I've fired the maintainer of SDL an email, since that's all I saw on Hackage. Once a new SDL version is out, it'll be easy enough to bump version bounds to get haskanoid to compile, without needing any fancy instructions. |
I just followed @tbelaire's instructions and doing |
The instructions don't mention downloading SDL but the project doesn't seem to include it. Should I just download the latest version of sdl and copy it into the project directory? |
|
When I run |
Err, I think I mean
|
OK,
I looked in the README in the SDL dir and tried running Am I way off? |
the Haskell sdl bindings require SDL to have been installed, as they are just translations to the C calls to the library.
|
ok, getting real close. Got sdl installed and then ran into a bunch of missing dev libs so worked my way down the list installing them like this:
Is there a lib I'm still missing or a way to ignore the wii libs, I'm not trying to use a wii-mote anyway. |
You don't want to mix installing Haskell packages and cabal packages I I typically use apt-get build-dep on Haskell packages that require external When I get to a computer I'll post a command line log of installing
|
That sounds great, thanks. Should I remove all of the |
That's what I would do, then again I don't know if any of your other I think I only have that separation because I'm paranoid about cabal being
|
I'm getting the same issue as @Jks15063
Did anyone come up with a workaround for this? Running on |
I suspect the problem is that this game uses a new version of hcwiid that was released with accelerometer support, specifically for this game. That version is the lastest one available on hackage. It may already be available in some debian-like distributions like ubuntu, but I don't know if 14.04 has the latest version. If not, then installing haskanoid will try to fetch the latest from hackage, and will need the bluetooth and cwiid development libraries, which are not pulled by libghc-hcwiid-dev (only the binaries are installed, not the headers). If the above is correct, you need to install libcwiid-dev with apt-get/aptitude, and then hcwiid directly from hackage. The latter should happen automatically when you run "cabal install haskanoid". Does that work? |
Cheers. Up and running, without having to unpack and modify SDL also. |
On my system (archlinux), in addition to unpacking and fixing the Data.Typeable import in Event.hsc, I had missing libraries for both the SDL_ttf and SDL_mixer dependencies. The readme's of both packages mentioned the required library dependency and I installed with pacman. pacman -S sdl_ttf sdl_mixer Haskanoid compiled and ran fine after that. |
So, I just ran What else do you think should be modified in the |
This issue has been frozen for some time. I'm going to close it, since it compiles fine on travis. If you think the instructions are insufficient, then please re-open or, better, send a pull request for a modified I'd love to get contributions :) |
It requires a slight fix, if anyone else encounters a problem installing with a recent ghc, here's how I fixed that problem.
File structure is something like
From haskanoid-root, (where you ran
cabal sandbox init
, also docabal sdl unpack
, to get something like:And edit
Graphics/UI/SDL/Events.hsc
line 56 to just beimport Data.Typeable
instead of being very selective in it's imports. Now you cancabal install
from the SDL directory to get that dependency fixed.You'll also need to bump up the
base==4.6.*
requirement in haskanoid.cabal`.The text was updated successfully, but these errors were encountered: