From: Jens P. <pet...@re...> - 2003-01-29 07:59:46
|
Hi, Since I have been involved with gtk+hs and gtk2hs, I thought I would take a look at htoolkit. port built without much trouble with ghc-5.04.2 on my Linux box. Next I tried HToolkit and gio. Here's how far I got. 1) for HToolkit I did: % ./configure --enable-gui % make depend /usr/bin/ghc -M Graphics/UI/HGUI/OS/Window.hs Graphics/Rendering/HGL/Font.hs Graphics/UI/HGUI.hs Graphics/UI/HGUI/BasicClasses.hs Graphics/UI/HGUI/BasicTypes.hs Graphics/UI/HGUI/Button.hs Graphics/UI/HGUI/CheckBox.hs Graphics/UI/HGUI/Edit.hs Graphics/UI/HGUI/Event.hs Graphics/UI/HGUI/EventTypes.hs Graphics/UI/HGUI/FileSelectors.hs Graphics/UI/HGUI/Form.hs Graphics/UI/HGUI/GraphViz.hs Graphics/UI/HGUI/ListBox.hs Graphics/UI/HGUI/Menu.hs Graphics/UI/HGUI/PopUp.hs Graphics/UI/HGUI/RadioBox.hs Graphics/UI/HGUI/Text.hs Graphics/UI/HGUI/OS/Types.hs Graphics/UI/HGUI/OS/Util.hs Graphics/Rendering/HGL.hs Graphics/Rendering/HGL/BasicClasses.hs Graphics/Rendering/HGL/BasicTypes.hs Graphics/Rendering/HGL/Bitmap.hs Graphics/Rendering/HGL/DrawMonad.hs Graphics/Rendering/HGL/Drawing.hs Graphics/Data/Geometry.hs Graphics/Rendering/HGL/BasicTypes.hs: can't locate import `Graphics.Rendering.HGL.Bitmap' (SOURCE import) make: *** [depend] Error 1 For fun I commented out "import Graphics.Rendering.HGL.Bitmap" in BasicTypes.hs, and then "make depend" succeeded. But then % make all /usr/bin/ghc Graphics/Rendering/HGL/BasicTypes.hs -cpp -O -c -fglasgow-exts -Iincludes -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -package-name HToolkit Graphics/Rendering/HGL/BasicTypes.hs:15: failed to load interface for `Graphics.Rendering.HGL.Bitmap': Could not find interface file for `Graphics.Rendering.HGL.Bitmap' make: *** [Graphics/Rendering/HGL/BasicTypes.o] Error 1 2) With gio, I didn't get any further I'm afraid % ./configure -haddock-html /usr/share/doc/ghc-5.04.2/html ghc found ghc-pkg found haddock found haddock html library found warning could not find base.haddock, in /usr/libs the haddock documentation will be incomplete please specify the haddock library directory on the command line. for example: ./configure -haddock-libs /bin/haddock/libs /home/petersen/haskell/htoolkit/port found creating output directories: - doc - config - imports/Graphics/UI/GIO creating makefile configuration - config/config.mk creating package description - config/gio.pkg done -- type 'make' to build the 'gio' package. What should hdoclibs points to? And then all this: % make all ghc -o imports/Graphics/UI/GIO/Types.o -ohi imports/Graphics/UI/GIO/Types.hi -odir imports/Graphics/UI/GIO -c src/Graphics/UI/GIO/Types.hs -package port -iimports src/Graphics/UI/GIO/Types.hs:13: Variable not in scope: `getColorRGB' src/Graphics/UI/GIO/Types.hs:13: Ambiguous occurrence `Vector' It could refer to either `Graphics.UI.GIO.Types.Vector', defined at src/Graphics/UI/GIO/Types.hs:155 or `Graphics.UI.Port.Types.Vector', imported from Graphics.UI.Port.Types at src/Graphics/UI/GIO/Types.hs:103 src/Graphics/UI/GIO/Types.hs:158: Ambiguous occurrence `Vector' It could refer to either `Graphics.UI.GIO.Types.Vector', defined at src/Graphics/UI/GIO/Types.hs:155 or `Graphics.UI.Port.Types.Vector', imported from Graphics.UI.Port.Types at src/Graphics/UI/GIO/Types.hs:103 src/Graphics/UI/GIO/Types.hs:159: Ambiguous occurrence `Vector' It could refer to either `Graphics.UI.GIO.Types.Vector', defined at src/Graphics/UI/GIO/Types.hs:155 or `Graphics.UI.Port.Types.Vector', imported from Graphics.UI.Port.Types at src/Graphics/UI/GIO/Types.hs:103 src/Graphics/UI/GIO/Types.hs:162: Ambiguous occurrence `Vector' It could refer to either `Graphics.UI.GIO.Types.Vector', defined at src/Graphics/UI/GIO/Types.hs:155 or `Graphics.UI.Port.Types.Vector', imported from Graphics.UI.Port.Types at src/Graphics/UI/GIO/Types.hs:103 src/Graphics/UI/GIO/Types.hs:163: Ambiguous occurrence `Vector' It could refer to either `Graphics.UI.GIO.Types.Vector', defined at src/Graphics/UI/GIO/Types.hs:155 or `Graphics.UI.Port.Types.Vector', imported from Graphics.UI.Port.Types at src/Graphics/UI/GIO/Types.hs:103 src/Graphics/UI/GIO/Types.hs:166: Ambiguous occurrence `Vector' It could refer to either `Graphics.UI.GIO.Types.Vector', defined at src/Graphics/UI/GIO/Types.hs:155 or `Graphics.UI.Port.Types.Vector', imported from Graphics.UI.Port.Types at src/Graphics/UI/GIO/Types.hs:103 src/Graphics/UI/GIO/Types.hs:167: Ambiguous occurrence `Vector' It could refer to either `Graphics.UI.GIO.Types.Vector', defined at src/Graphics/UI/GIO/Types.hs:155 or `Graphics.UI.Port.Types.Vector', imported from Graphics.UI.Port.Types at src/Graphics/UI/GIO/Types.hs:103 make: *** [imports/Graphics/UI/GIO/Types.o] Error 1 Should it build ghc-5.04.2? Thanks for any light. Jens |