I've not really had any experience with building haskell apps under
windows - I don't have a windows machine.
However, looking at my linux setup, I can see that the HSCairo 0.12
library references the _cairo_image_surface_get_data symbol, which is
present in the system cairo2 library (V1.8.10)....
Is ghc finding the cairo + gtk libraries correctly?
Does the problem just occur with the Chart library? Can you build the
gtk2hs demo programs successfully?
Tim
04.04.2011, в 6:34, Tim Docker <t...@dockerz.net> написал(а):
> --
> You received this message because you are subscribed to the Google Groups "Haskell Charts" group.
> To post to this group, send email to haskell...@googlegroups.com.
> To unsubscribe from this group, send email to haskell-chart...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/haskell-charts?hl=en.
>
it seems I have no other gtk installation on my path.
1) $ nm /h/Gtk+/bin/libcairo-2.dll | grep -i cairo_image_surface_get_data
68de04d8 T _cairo_image_surface_get_data
2) testwise: renamed the libcairo-2.dll file to libcairo-RENAMED2.dll,
latter resulting in the expected "dll not found" error, so it tries to
access exactly that libcairo-2.dll, doesn't it?
3) Used the isolated repository approach with hackages cab and
cabal-dev packages installed:
3a) Provided myself patched (Gtk2HsSetup.hs) 0.12 versions of the
"gtk2hs" dependencies 'Chart' has, in my /h/.homedir folder and
changed to that folder on the command line.
3b) Did this to fill this private repository: cabal-dev add-source
/h/.homedir/gtk2hs-buildtools-0.12.0/ /h/.homedir/glib-0.12.0/
/h/.homedir/cairo-0.12.0/ /h/.homedir/gio-0.12.0/
/h/.homedir/pango-0.12.0/ /h/.homedir/gtk-0.12.0/
/h/.homedir/glade-0.12.0/cabal-dev add-source
/h/.homedir/gtk2hs-buildtools-0.12.0/ /h/.homedir/glib-0.12.0/
/h/.homedir/cairo-0.12.0/ /h/.homedir/gio-0.12.0/
/h/.homedir/pango-0.12.0/ /h/.homedir/gtk-0.12.0/
/h/.homedir/glade-0.12.0/
3c) Tried to build 'Chart' with: cab install Chart
--sandbox=/h/.homedir/cabal-dev/
The latter ends up: [ 1 of 27] Compiling
Graphics.Rendering.Chart.Types ( Graphics\Rendering\Chart\Types.hs,
dist\build\Graphics\Rendering\Chart\Types.o )
Loading package ghc-prim ... linking ... done.
.....
Loading package mtl-2.0.1.0 ... linking ... done.
Loading package cairo-0.12.0 ... linking ... ghc.exe: unable to load
package `cairo-0.12.0'
ghc.exe: h:/.homedir/cabal-dev//cairo-0.12.0\ghc-7.0.3\HScairo-0.12.0.o:
unknown symbol `_cairo_image_surface_get_data'
cabal.exe: Error: some packages failed to install:
Chart-0.14 failed during the building phase. The exception was:
ExitFailure 1
Anyway it is good to have isolated and clean build conditions for
debugging purpose and the cabal-dev cab combination seems very useful
on that aim.
Do we have alternatives to depend on cairo somehow, at least on MS
Windows, I asked on different mailing lists (gtk2hs-users,
haskell-cafe even glasgow-haskell) for a solution or hint already, but
it seems there's some dead end with that issue??
Anway Chart is good and important work and if I could help to
improve/fix something, please let me know, I would appreciate to see
Chart... cairo working as many packages depend on the combination of
both.
Cheers
Daniel
2011/4/3 Eugene Kirpichov <ekirp...@gmail.com>: