Hi All,
I tried to compile PhotoQt downloaded from:
http://photoqt.org/pkgs/photoqt-1.3.tar.gz
With below commands:
Code:
mkdir -vp ./build
cd ./build
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Releas ..
make
It makes until 100% and then when trying to link:
Code:
[ 1%] Linking CXX executable photoqt
Then suddenly millions of undefined reference errors:
Code:
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Blob.o): In function `Magick::Blob::base64(std::string)':
Blob.cpp:(.text+0x29e): undefined reference to `Base64Decode'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Blob.o): In function `Magick::Blob::base64()':
Blob.cpp:(.text+0x380): undefined reference to `Base64Encode'
Blob.cpp:(.text+0x3ae): undefined reference to `MagickFree'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-BlobRef.o): In function `Magick::BlobRef::~BlobRef()':
BlobRef.cpp:(.text+0x11e): undefined reference to `MagickFree'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Exception.o): In function `Magick::throwException(MagickLib::_ExceptionInfo&, bool)':
Exception.cpp:(.text+0x33ec): undefined reference to `SetClientName'
Exception.cpp:(.text+0x36ea): undefined reference to `DestroyExceptionInfo'
Exception.cpp:(.text+0x36f2): undefined reference to `GetExceptionInfo'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Exception.o): In function `Magick::throwExceptionExplicit(MagickLib::ExceptionType, char const*, char const*)':
Exception.cpp:(.text+0x4800): undefined reference to `GetExceptionInfo'
Exception.cpp:(.text+0x4834): undefined reference to `ThrowLoggedException'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Geometry.o): In function `Magick::Geometry::operator=(std::string const&)':
Geometry.cpp:(.text+0xc3c): undefined reference to `GetPageGeometry'
Geometry.cpp:(.text+0xc56): undefined reference to `MagickFree'
Geometry.cpp:(.text+0xc9e): undefined reference to `GetGeometry'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Geometry.o): In function `Magick::Geometry::operator std::string() const':
Geometry.cpp:(.text+0xfd6): undefined reference to `FormatString'
Geometry.cpp:(.text+0x106f): undefined reference to `FormatString'
Geometry.cpp:(.text+0x12fc): undefined reference to `FormatString'
Geometry.cpp:(.text+0x1368): undefined reference to `FormatString'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::adaptiveThreshold(unsigned int, unsigned int, unsigned int)':
Image.cpp:(.text+0x1e4): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x219): undefined reference to `AdaptiveThresholdImage'
Image.cpp:(.text+0x2e2): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::addNoise(MagickLib::NoiseType)':
Image.cpp:(.text+0x324): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x33d): undefined reference to `AddNoiseImage'
Image.cpp:(.text+0x40a): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::addNoiseChannel(MagickLib::ChannelType, MagickLib::NoiseType)':
Image.cpp:(.text+0x454): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x475): undefined reference to `AddNoiseImageChannel'
Image.cpp:(.text+0x542): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::affineTransform(Magick::DrawableAffine const&)':
Image.cpp:(.text+0x58e): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x5d1): undefined reference to `AffineTransformImage'
Image.cpp:(.text+0x69a): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::blur(double, double)':
Image.cpp:(.text+0x6f4): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x71d): undefined reference to `BlurImage'
Image.cpp:(.text+0x7ea): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::blurChannel(MagickLib::ChannelType, double, double)':
Image.cpp:(.text+0x847): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x878): undefined reference to `BlurImageChannel'
Image.cpp:(.text+0x942): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::border(Magick::Geometry const&)':
Image.cpp:(.text+0x99c): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x9b1): undefined reference to `BorderImage'
Image.cpp:(.text+0xa7a): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::channelDepth(MagickLib::ChannelType)':
Image.cpp:(.text+0xac3): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0xadc): undefined reference to `GetImageChannelDepth'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::charcoal(double, double)':
Image.cpp:(.text+0xb34): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0xb5d): undefined reference to `CharcoalImage'
Image.cpp:(.text+0xc2a): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::chop(Magick::Geometry const&)':
Image.cpp:(.text+0xc8c): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0xca1): undefined reference to `ChopImage'
Image.cpp:(.text+0xd6a): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::convolve(unsigned int, double const*)':
Image.cpp:(.text+0xdb4): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0xdd5): undefined reference to `ConvolveImage'
Image.cpp:(.text+0xea2): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::crop(Magick::Geometry const&)':
Image.cpp:(.text+0xefc): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0xf11): undefined reference to `CropImage'
Image.cpp:(.text+0xfda): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::despeckle()':
Image.cpp:(.text+0x1024): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x1035): undefined reference to `DespeckleImage'
Image.cpp:(.text+0x1102): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::display()':
Image.cpp:(.text+0x1151): undefined reference to `DisplayImages'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::edge(double)':
Image.cpp:(.text+0x117c): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x1199): undefined reference to `EdgeImage'
Image.cpp:(.text+0x1262): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::emboss(double, double)':
Image.cpp:(.text+0x12b4): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x12dd): undefined reference to `EmbossImage'
Image.cpp:(.text+0x13aa): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::enhance()':
Image.cpp:(.text+0x13f4): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x1405): undefined reference to `EnhanceImage'
Image.cpp:(.text+0x14d2): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::flip()':
Image.cpp:(.text+0x1514): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x1525): undefined reference to `FlipImage'
Image.cpp:(.text+0x15f2): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::flop()':
Image.cpp:(.text+0x1634): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x1645): undefined reference to `FlopImage'
Image.cpp:(.text+0x1712): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::frame(unsigned int, unsigned int, int, int)':
Image.cpp:(.text+0x179e): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x17b7): undefined reference to `FrameImage'
Image.cpp:(.text+0x1882): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::gaussianBlur(double, double)':
Image.cpp:(.text+0x18d4): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x18fd): undefined reference to `GaussianBlurImage'
Image.cpp:(.text+0x19ca): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::gaussianBlurChannel(MagickLib::ChannelType, double, double)':
Image.cpp:(.text+0x1a27): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x1a58): undefined reference to `GaussianBlurImageChannel'
Image.cpp:(.text+0x1b22): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::implode(double)':
Image.cpp:(.text+0x1b6c): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x1b89): undefined reference to `ImplodeImage'
Image.cpp:(.text+0x1c52): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::magnify()':
Image.cpp:(.text+0x1c94): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x1ca5): undefined reference to `MagnifyImage'
Image.cpp:(.text+0x1d72): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::medianFilter(double)':
Image.cpp:(.text+0x1dbc): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x1dd9): undefined reference to `MedianFilterImage'
Image.cpp:(.text+0x1ea2): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::minify()':
Image.cpp:(.text+0x1ee4): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x1ef5): undefined reference to `MinifyImage'
Image.cpp:(.text+0x1fc2): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::motionBlur(double, double, double)':
Image.cpp:(.text+0x2028): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x205d): undefined reference to `MotionBlurImage'
Image.cpp:(.text+0x212a): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::oilPaint(double)':
Image.cpp:(.text+0x217c): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x2199): undefined reference to `OilPaintImage'
Image.cpp:(.text+0x2262): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::read(unsigned int, unsigned int, std::string const&, MagickLib::StorageType, void const*)':
Image.cpp:(.text+0x22a4): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x22dc): undefined reference to `ConstituteImage'
Image.cpp:(.text+0x23da): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::reduceNoise(double)':
Image.cpp:(.text+0x242c): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x2449): undefined reference to `ReduceNoiseImage'
Image.cpp:(.text+0x2512): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::roll(unsigned int, unsigned int)':
Image.cpp:(.text+0x2554): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x2575): undefined reference to `RollImage'
Image.cpp:(.text+0x2642): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::rotate(double)':
Image.cpp:(.text+0x268c): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x26a9): undefined reference to `RotateImage'
Image.cpp:(.text+0x2772): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::shade(double, double, bool)':
Image.cpp:(.text+0x27cb): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x27fd): undefined reference to `ShadeImage'
Image.cpp:(.text+0x28ca): undefined reference to `AllocateImage'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.2/../../../libGraphicsMagick++.a(Magick___lib_libGraphicsMagick___la-Image.o): In function `Magick::Image::sharpen(double, double)':
Image.cpp:(.text+0x2924): undefined reference to `GetExceptionInfo'
Image.cpp:(.text+0x294d): undefined reference to `SharpenImage'
...
...
...
What is the problem? How can I compile this program?
Thanks in advance.