Re: [Inkscape-devel] Can not build inkscape-0.48
I installed newest version of imagemagick from source, ./configure finished without errors, but 'make' gives new error:
th, std::allocatorGeom::Path > Geom::read_svgd(const char* )': ./2geom/svg-path-parser.h:63: warning: ignoring return value of char* fgets(char*, int, FILE*)', declared with attribut e warn_unused_result CXX 2geom/svg-path.o CXX 2geom/sweep.o CXX 2geom/transforms.o CXX 2geom/numeric/matrix.o AR 2geom/lib2geom.a CXX inkscape-version.o AR libinkversion.a CXX main.o CXXLD inkscape libinkscape.a(adaptiveThreshold.o): In function `Inkscape::E xtension::Internal::Bitmap::AdaptiveThreshold::applyEffect(M agick::Image*)': /home/ya/Desktop/inkscape-0.48.0/src/extension/internal/bitm ap/adaptiveThreshold.cpp:21: undefined reference to `Magick: :Image::adaptiveThreshold(unsigned int, unsigned int, unsign ed int)' libinkscape.a(addNoise.o): In function `Inkscape::Extension: :Internal::Bitmap::AddNoise::applyEffect(Magick::Image*)': /home/ya/Desktop/inkscape-0.48.0/src/extension/internal/bitm ap/addNoise.cpp:29: undefined reference to `Magick::Image::a ddNoise(MagickLib::NoiseType)' libinkscape.a(channel.o): In function `Inkscape::Extension:: Internal::Bitmap::Channel::applyEffect(Magick::Image*)': /home/ya/Desktop/inkscape-0.48.0/src/extension/internal/bitm ap/channel.cpp:32: undefined reference to `Magick::Image::ch annel(MagickLib::ChannelType)' collect2: ld returned 1 exit status make[2]: *** [inkscape] Error 1 make[2]: Leaving directory `/home/ya/Desktop/inkscape-0.48.0 /src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/ya/Desktop/inkscape-0.48.0 ' make: *** [all] Error 2
Any suggestions?
What version of ImageMagick has been installed? Have the dev-libs ofImageMagick also been installed?
It should also be possible to provide ./configure with a flag thattells it to compile without ImageMagick, IIRC, but I .don't know thesyntax of the top of my head.
Kind regards,
Diederik
Hello, i can not build inkscape-0.48 on debian lenny../configurefinished without errors, but 'make' gives an error. >>Here is theextraction from the output: # #
extension/internal/bitmap/level.cpp: In member function vir tual void Inkscape::Extension::Internal::Bitmap::Level::appl yEffect(Magick::Image*)': extension/internal/bitmap/level.cpp:23: error: class Magick ::Image' has no member named level' make[2]: *** [extension/internal/bitmap/level.o] Error 1 make[2]: Leaving directory `/home/ya/Desktop/inkscape-0.48.0 /src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/ya/Desktop/inkscape-0.48.0 ' make: *** [all] Error 2 # # I searched through the Google but have not found solution. Help me please to build it.
Wed, 02 Feb 2011 21:30:20 +0100 Diederik van Lierop <mail@...1689...> kirjoitti:
You might want to hack yourself around this. See e.g.
- init.cpp: #ifdef WITH_IMAGE_MAGICK
- or configure: #define WITH_IMAGE_MAGICK 1
- or configure.ac: AC_DEFINE(WITH_IMAGE_MAGICK,1,[Image Magick++
support for bitmap effects])
Just try disabling the ImageMagick code by modifying one of the above lines (if don't see a more elegant way). This should at least get you started, as Inkscape should compile just fine without it.
As to what's going on: I don't have a clue :-(
Attached to this bug is a patch that'll allow disabling ImageMagick with ./configure --disable-magick https://bugs.launchpad.net/inkscape/+bug/682357
2011/2/3 Niko Kiirala <niko@...1267...>:
Attached to this bug is a patch that'll allow disabling ImageMagick with ./configure --disable-magick https://bugs.launchpad.net/inkscape/+bug/682357
Question to other devs: what is your opinion on disabling Magick++ extensions by default?
Regards, Krzysztof
participants (4)
-
Diederik van Lierop
-
Dmitry Shkirmanov
-
Krzysztof Kosiński
-
Niko Kiirala