| Posted by: | gt |
| Subject: | gpsmap.cc (line 2815) SOLUTION |
| Date: | 13:06:00 18/10/2004 |
I just compiled kismet 2004-04 R1 with the gpsmap stuff enabled and there was a compilation error. I had a wee look through the code and there is a mistake in gpsmap.cc.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
gpsmap.cc: In function `int DrawLegendComposite(std::vector<gps_network*,
std::allocator<gps_network*> >, Image**, DrawInfo**)':
gpsmap.cc:2815: error: invalid conversion from `int' to `MagickBooleanType'
make: *** [gpsmap.o] Error 1
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
simply open the file gpsmap.cc in your favourite text editor (nedit, vi etc) and Goto line 2815. It will look like this:
leg_di->text_antialias = 1;
it is using the wrong Type, so try this:
leg_di->text_antialias = MagickTrue;
in the Changlelog for ImageMagick 6.1.1 - it says they got rid of the unsigned int for MagickBooleanType and changed it to an enum - which is not a bad idea ;-).
gt
Reply to this message