
Lemmih wrote:
On 7/18/05, yin
wrote: Hello,
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).
How did you install the SDL binding?
$ cd ~/SDLStable/src/Core $ runhaskell Setup.lhs configure --prefix=~/SDLstable_img/ $ runhaskell Setup.lhs build $ su Password: # 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@gmail.com) stability: homepage: package-url: description: category: Foreign binding author: Lemmih (lemmih@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 Graphics.UI.SDL.Joystick hidden-modules: 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 extra-libraries: include-dirs: includes: SDL.h depends: base-1.0 hugs-options: cc-options: -I/usr/include/SDL -D_REENTRANT ld-options: -L/usr/lib -Wl -rpath /usr/lib -lSDL framework-dirs: frameworks: haddock-interfaces: haddock-html: