Custom Query (152 matches)
Results (13 - 15 of 152)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #1104 | duplicate | CULong -> CUInt needed in Gstreamer chs modules to build on 32-bit system. | somebody | guest |
| description |
Only CULong is declared in the files, but c2hs seems to generate references to CUInt. I'm having the problem on 32-bit Ubuntu. I don't recall hitting any glitches when I compiled it on my 64-bit Ubuntu machine. My fix: I just added CUInt to the imports. Diff attached. |
|||
| #1280 | duplicate | Cairo computes bounds wrong in imageSurfaceGetPixels | paolo | guest |
| description |
r in imageSurfaceGetPixels is the stride of the surface, which is defined as being the number of bytes of one row. Therefore, bytes can just be computed by r * height. Also, if I understand correctly, the + 7 should have been outside the row computation to force rounding upwards. Further more, the bounds in mkSurfaceData seem to be off by one. Please see attached patch. |
|||
| #1270 | fixed | Cairo register wrong library in extra-ghci-libraries on Windows | paolo | guest |
| description |
Cairo's setup script (Gtk2HsSetup.hs) attempts to guess Cairo dll name and does it incorrectly. Original guess function looks like that: fixLibs :: [FilePath?] -> [String] -> [String] fixLibs dlls = concatMap $ \ lib ->
this may cause (and actually cause on my system) Cairo to select libcairo-script-interpreter-2.dll or libcairo-gobject-2.dll instead of libcairo-2.dll. As the result Cairo can't be used from ghci and several depended libraries can't be installed ("unknown symbol" error). The simpliest way to fix this fuction is to sort libraries by name length, like this: fixLibs :: [FilePath?] -> [String] -> [String] fixLibs dlls = concatMap $ \ lib ->
I also suggest to log list of libraries added as extralibs during setup. This will help to debug in case of futher problems. (Cairo version is 0.12.3.1) |
|||