On Thu, Sep 15, 2011 at 04:41:55PM -0400, we recorded a bogon-computron collision of the <[email protected]> flavor, containing: > I'm having the same issue: #error "QuantumDepth != 16 or 8" > > I've found the lines in /usr/include/ImageMagick/magick/magick-config.h > > /* Number of bits in a pixel Quantum (8/16/32/64) */ > #ifndef MAGICKCORE_QUANTUM_DEPTH > #define MAGICKCORE_QUANTUM_DEPTH 16 > #endif > > I'm not sure what to do with it, I tried removing the # (comments?) > but got the same error when I tried to compile again. Maybe I'm > missing a step.
Editing the config file for magick is the Wrong Thing To Do. The config header describes the options that were used when Magick was built, and changing it will cause applications that use Magick to get the wrong values. You should put it back the way it was when it was installed, or any other software that uses ImageMagick will have build/run problems. Besides, the "# lines" are not comments, but compiler directives. What that block means is "if nobody has defined MAGICKCORE_QUANTUM_DEPTH yet, then define it as 16." The fact must be that someone has already defined it by the time that line is processed, and it's neither 16 nor 8. You can find the actual value being used by typing: Magick-config --version Mine shows : 6.7.1 Q16 which means I have version 6.7.1 with 16 bit quantums. My guess is yours will show either 32 or 64 bit quantums, and maybe even "HDRI". If you want to stick with Image Magick, what is required is that you *rebuild* Magick with a quantum depth of 16 or 8. If you're installing Magick from a system repository, you're out of luck with ImageMagick, which tends to be cutting edge and not at all stable --- your system-provided ImageMagick may be even be installed with "HDRI" support (a very experimental high definition raster format that uses double precision pixel values rather than integer). If you're willing to build ImageMagick from source, use "--disable-hdri --with-quantum-depth=16" or "--disable-hdri --with-quantum-depth=8" when you configure it. If you're not interested in installing ImageMagick from source code, then try installing GraphicsMagick. Xastir will use that rather than ImageMagick if it finds it, and GraphicsMagick puts more of a premium on stability than the other --- its default pixel depth is 8, and it doesn't even support HDRI rasters. They also don't randomly change their API on us requiring a scramble to fix our code *AND* remain compatible with older versions of IM. Most Xastir developers prefer GM for this reason. There was even once talk about removing IM support and requiring GM instead. That idea had to go because... Some old versions of Ubunutu wouldn't let you install both ImageMagick and GraphicsMagick from repository packages at the same time (they unnecessarily overwrote pieces of each other), but that probably isn't true in any recent vintage system. In those old systems, we couldn't require GM because if the user had any other software installed that required IM we'd have "required" them out of the user base. > On Fri, Feb 11, 2011 at 8:37 AM, David Flood <[email protected]> wrote: > > Hello Mike, > > > > Here's an explanation of that error that Tom Russo posted last December: > > > > Check your *Magick install. ?It must have a QuantumDepth of something other > > than 8 or 16, and Xastir won't work properly if so. ?Apparently some > > installs of ImageMagick can have 32 or 64-bit quanta. ?GraphicsMagick > > defaults to 8-bit now, perhaps ImageMagick went to 32 or 64 as default. > > > > It'll be in either magick-config.h (for ImageMagick) or magick_config.h for > > GraphicsMagick). > > > > -----Original Message----- > > From: [email protected] > > [mailto:[email protected]] On Behalf Of [email protected] > > Sent: Friday, February 11, 2011 03:41 > > > > Found CVS open again this morning and so I?grabbed the latest source.? I > > attempted to build it on my Ubuntu 10.10 box and get this problem. > > > > map_OSM.c:165: error: #error "QuantumDepth != 16 or 8" > > make[3]: *** [map_OSM.o] Error 1 > > make[3]: *** Waiting for unfinished jobs.... > > mv -f .deps/map_pop.Tpo .deps/map_pop.Po > > mv -f .deps/main.Tpo .deps/main.Po > > make[3]: Leaving directory `/home/morphius/xastir/src' > > make[2]: *** [all-recursive] Error 1 > > make[2]: Leaving directory `/home/morphius/xastir/src' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/morphius/xastir' > > make: *** [all] Error 2 > > > > > > > > _______________________________________________ > > Xastir mailing list > > [email protected] > > http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir > > > _______________________________________________ > Xastir mailing list > [email protected] > http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir -- Tom Russo KM5VY SAR502 DM64ux http://www.swcp.com/~russo/ Tijeras, NM QRPL#1592 K2#398 SOC#236 http://kevan.org/brain.cgi?DDTNM "One man alone can be pretty dumb sometimes, but for real bona fide stupidity, there ain't nothin' can beat teamwork." - Edward Abbey _______________________________________________ Xastir mailing list [email protected] http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir
