[Haskell-cafe] Haskell, SDL, OpenGL
lemmih at gmail.com
Mon Jul 18 11:29:02 EDT 2005
On 7/18/05, yin <yin at atom.sk> wrote:
> Lemmih wrote:
> >On 7/18/05, yin <yin at atom.sk> wrote:
> >>I'm trying to write a 3D renderer in Haskell using SDL bindings (Lemmih)
> >>and OpenGL bindings. When I try to compile my work, ghc runs collect2:
> >>I just rerun collect2 by hand without pre /usr/lib parameter, and it
> >>works. What have I to do or where have to look in to find and resolve
> >>the problem? I use Gentoo 2005.0 and SDL binding from SDLStable brach
> >>installed by hand (I didn't use Portage).
> >How did you invoke GHC?
> Yes, I did (I sad it).
I mean, what command line gave that error message?
> >How did you install the SDL binding?
> $ cd ~/SDLStable/src/Core
> $ runhaskell Setup.lhs configure --prefix=~/SDLstable_img/
> $ runhaskell Setup.lhs build
> $ su
> # runhaskell Setup.lhs install
> >What does 'ghc-pkg describe SDL' say?
> See atachment.
> Thanks, you're fast!
> Matej 'Yin' Gagyi
> name: SDL
> version: 0.2.0
> license: BSD3
> copyright: 2004-2005, Lemmih
> maintainer: Lemmih (lemmih at gmail.com)
> category: Foreign binding
> author: Lemmih (lemmih at gmail.com)
> exposed: True
> exposed-modules: Graphics.UI.SDL Graphics.UI.SDL.CPUInfo
> Graphics.UI.SDL.General Graphics.UI.SDL.Video
> Graphics.UI.SDL.WindowManagement Graphics.UI.SDL.Audio
> Graphics.UI.SDL.AudioSpec Graphics.UI.SDL.Events
> Graphics.UI.SDL.Time Graphics.UI.SDL.Keysym Graphics.UI.SDL.Color
> Graphics.UI.SDL.RWOps Graphics.UI.SDL.Types Graphics.UI.SDL.Rect
> Graphics.UI.SDL.Utilities Graphics.UI.SDL.Version
> import-dirs: /home/yin/devel/third/sdlh/SDLstable/img/lib/SDL-0.2.0
> library-dirs: /home/yin/devel/third/sdlh/SDLstable/img/lib/SDL-0.2.0
> hs-libraries: HSSDL-0.2.0
> includes: SDL.h
> depends: base-1.0
> cc-options: -I/usr/include/SDL -D_REENTRANT
> ld-options: -L/usr/lib -Wl -rpath /usr/lib -lSDL
Hmm, looks like GHC is having issues with -rpath. I'm not sure how to
solve this correctly but one solution would be to remove it from your
More information about the Haskell-Cafe