Re: [GM-help] static vs. shared linking
Swiss army knife of image processing
Brought to you by:
bfriesen
From: Bob F. <bfr...@si...> - 2003-08-27 14:18:59
|
On Wed, 27 Aug 2003, Oh,ChangMin wrote: > > I'm using GraphicsMagick 1.0.2 in linux. > When buiding my image resizing program with "gcc -static", its output image > quality is bad. > But without "-static" quite good. > > Sample output images below.. > > <a href=http://sing.x-y.net/mm.jpg target=blank>"gcc -static"</a> > > <a href=http://sing.x-y.net/mm1.jpg target=blank>without "-static"</a> > > > I checked libfreetype, libtiff, libjpeg, etc. All *.a and *.so files' > timestamps were same. > > What can be the possible cause of this problem ? The problem is likely due to the wrong libjpeg being used since we have seen this exact symptom before when the wrong libjpeg is used. Adding "-static" to the gcc options forces the compiler to choose different libraries than it would by default. If you really feel that you must use "-static" (using -static is rather odd), take care that the current libjpeg is installed as a static library in a location where the linker will look first. By the way, GraphicsMagick 1.0.3 is released now ... Bob ====================================== Bob Friesenhahn bfr...@si... http://www.simplesystems.org/users/bfriesen |