Custom Query (152 matches)


Show under each result:

Results (13 - 15 of 152)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Ticket Resolution Summary Owner Reporter
#1103 fixed Not in scope: type constructor or class `CUInt' somebody guest

Reported by guest, 10 years ago.


I have made a package for getting and installing Gtk2HS from darcs (gtk2hs-darcs), on Arch Linux. Someone is reporting to me this:

usr/bin/ghc +RTS -RTS -split-objs -c gstreamer/Media/Streaming/GStreamer/Core/GObjectHierarchy.hs -o gstreamer/Media/Streaming/GStreamer/Core/GObjectHierarchy.o -O -fffi -igstreamer -package-conf package.conf.inplace -hide-all-packages -ignore-package gstreamer -package base -package haskell98 -package mtl- -package bytestring- -package glib- -package-name gstreamer- '-#include<gstreamer/hsgstreamer.h>' -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I.

Not in scope: type constructor or class `CUInt'
make[1]: *** [gstreamer/Media/Streaming/GStreamer/Core/GObjectHierarchy.o] Fehler 1
rm soegtk/Graphics/SOE/Gtk.hs svgcairo/Graphics/Rendering/Cairo/SVG.hs
make[1]: Leaving directory `/home/haawda/abs/gtk2hs-darcs/src/gtk2hs'
make: *** [all] Fehler 2
==> FEHLER: Build fehlgeschlagen.
Breche ab ...

And I responded him with:

I think I may know what is going on, but I just can't believe no developer of gtk2hs is having gstreamer, and a 32 bits system. ;-)

gtk2hs is using c2hs, to make a .hs file from .chs, by consulting C headers files.
choose to import only CULong, because on the author system (which must have 64 bits), this is what the C file header return. But because you have 32 bits (correct me if I am wrong), your C header file return a 32 bit value, so CUInt must be imported too.

So you would have to make a new clean install, but stop the system after darcs got src installed.

Then edit in gstreamer/Media/Streaming/GStreamer/Core/GObjectHierarchy.chs
to remove '(CULong)' on the following line:
import Foreign.C.Types (CULong)
that way, it will import all the types, CUInt included. Or just make it '(CULong,CUInt)'.

I am new to Arch, new to Haskell, and new to Gtk2HS, so I may be out of track however.

Not sure I am Ok, and a developer could verify if there is other files like this. The package can be found

#1105 fixed please complete the entry completion implementation axel guest

Reported by guest, 10 years ago.


I'm having a lot of trouble getting entry completion working, as my little program in shows. Could you please update the "entry completion" section of the tutorial found at ? It would help me a lot! thanks --Jacques

#1106 fixed Add windowForeignNew somebody guest

Reported by guest, 10 years ago.


GDK has a function window_foreign_new that creates a gdk window object for any existing X window. It is available in the C and python bindings; I would like to use this function in gtk2hs.

(I am trying to write a screensaver using Cairo and gtk2hs; It seems that you need to draw on the root window or any arbitrary window in order to work.)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Note: See TracQuery for help on using queries.