From: Axel S. <A....@ke...> - 2005-11-17 17:03:59
|
On Thu, 2005-11-17 at 16:42 +0000, Chris Kuklewicz wrote: > Hi, > > I am trying to install and run gtk2hs on Mac OS X 10.4.3 (w/XCode 2.2 > aka gcc 4.0.1). I have been using GHC 6.4.1 quite successfully, but I > am having problems getting gtk2hs to run. > > I tried the 0.9.10 release, which failed in the same style as the report > below. Now I am using gtk2hs from today's darcs and darwin ports > ghc-6.4.1, gtk , and autoconf packages: > > Prelude> :load CairoDrawing.hs > Compiling Main ( CairoDrawing.hs, interpreted ) > Ok, modules loaded: Main. > *Main> :t run > run :: Render () -> IO () > *Main> run (return ()) > Loading package mtl-1.0 ... linking ... done. > Loading package haskell98-1.0 ... linking ... done. > Loading package glib-0.9.10.1 ... linking ... done. > Loading package cairo-0.9.10.1 ... linking ... done. > Loading package gtk-0.9.10.1 ... can't load .so/.DLL for: png12 > (dlopen(libpng12.dylib, 10): image not found) > > Does anyone know what causes this dynamic linking error? Well, this says that you don't have libpng12.dylib on your computer which should be installed, since gtk depends on it. Did you install Gtk+ into a non-standard location (e.g. /sw/, the fink default?). If so, you might not have your DYLD_LIBRARY_PATH set to the location where libpng12.dylib lives. (However, it is odd that Gtk is found, but libpng not). Can you find libpng12.dylib anywhere on your machine? Axel. |