g++ library Magick++ can not found

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
adelhoss
Posts: 7
Joined: 2017-10-05T06:04:55-07:00
Authentication code: 1151

g++ library Magick++ can not found

Post by adelhoss »

i compile one project used your library Magick ++
but g++ show message Magick++ notfound
this picture :
Image
I installed ImageMagick in Fedora 20 .
and install ImageMagick-Devel.
But do not know how set Patch ...
adelhoss
Posts: 7
Joined: 2017-10-05T06:04:55-07:00
Authentication code: 1151

Re: g++ library Magick++ can not found

Post by adelhoss »

Please Help MEEEEEEEEEEEEEEE
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: g++ library Magick++ can not found

Post by snibgo »

The documentation eg http://www.imagemagick.org/script/magick++.php shows command lines to build IM programs. I suggest you start by building standard IM demonstration programs, as that excludes the possibility that problems are due to source code errors.
snibgo's IM pages: im.snibgo.com
adelhoss
Posts: 7
Joined: 2017-10-05T06:04:55-07:00
Authentication code: 1151

Re: g++ library Magick++ can not found

Post by adelhoss »

I Installed Package ....
I do not know Default Location in Linux ....
where Location Default Lib Magick++?
i Donot Need ImageMagick Only Need Magick++ Library ...
where i Should Run This Command :

Code: Select all

./configure [ --prefix=/prefix ]
make
make install
I do not your Library (so) where Installed ...
adelhoss
Posts: 7
Joined: 2017-10-05T06:04:55-07:00
Authentication code: 1151

Re: g++ library Magick++ can not found

Post by adelhoss »

I Uses Demp.cpp : I Downloaded Magick++.cpp and Compiled Successfully and created Executable File :
https://www.mediafire.com/view/ltkzgvgzg2hqwjv/1.png
https://www.mediafire.com/file/7mtayv63tux5goo/2.png
I Need Use Your Library in g++ Compiler Command :
g++ -O2 -o ./bin/puzzle ./src/Puzzle.cpp -l armadillo -l Magick++ -l pthread -l boost_thread
-l Magick++ : Where Location Library Magick++ ?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: g++ library Magick++ can not found

Post by snibgo »

I don't understand your question. Once you have successfully built IM demonstration programs, you build your own programs in the same way.
snibgo's IM pages: im.snibgo.com
adelhoss
Posts: 7
Joined: 2017-10-05T06:04:55-07:00
Authentication code: 1151

Re: g++ library Magick++ can not found

Post by adelhoss »

Only I Use Compile Project that use Your Library
i want Compile this Project with g++ Compiler i use this Command :

Code: Select all

 g++ -O2 -o ./bin/puzzle ./src/Puzzle.cpp -l armadillo -l Magick++ -l pthread -l boost_thread
only Library Founded armadillo pthread boost_thread only your library can not found by ld ...
and return message :
Can not Find -l Magick++
help me compile this project with your library
adelhoss
Posts: 7
Joined: 2017-10-05T06:04:55-07:00
Authentication code: 1151

Re: g++ library Magick++ can not found

Post by adelhoss »

How Setup Magick++ Library for use Compile ?
i read your manual and install all package need but return magick++ not found .
Please Programmers help meeeeeeeeeeeeeeeee
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: g++ library Magick++ can not found

Post by snibgo »

You have built the IM demo with `Magick++config` etc in the command line. Do the same when you build your programs.
snibgo's IM pages: im.snibgo.com
adelhoss
Posts: 7
Joined: 2017-10-05T06:04:55-07:00
Authentication code: 1151

Re: g++ library Magick++ can not found

Post by adelhoss »

yes i build demo app.
but when composite Magick++-config with g++ compiler Error show magick++config not know for g++.
how use Magick++config with g++ ?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: g++ library Magick++ can not found

Post by snibgo »

Please show your exact command line, and the error message.
snibgo's IM pages: im.snibgo.com
Post Reply