Custom Query (152 matches)

Filters
 
Columns

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
#1104 duplicate CULong -> CUInt needed in Gstreamer chs modules to build on 32-bit system. somebody guest

Reported by guest, 7 years ago.

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

Reported by guest, 23 months ago.

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

Reported by guest, 2 years ago.

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 ->

case filter (("lib" ++ lib) isPrefixOf) dlls of

dll:_ -> [dropExtension dll] _ -> if lib == "z" then [] else [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 ->

case sortBy (compare on length) $ filter (("lib" ++ lib) isPrefixOf) dlls of

dll:_ -> [dropExtension dll] _ -> if lib == "z" then [] else [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)

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