Library size of libMagickCore & libMagickWand
Posted: 2015-09-22T02:52:03-07:00
Hi.
I'm a software engineer of network camera.
i had cross-compiled the ImageMagick-6.9.2 for embedded linux system.
it will be only used for scan the qrcode jpg picture.
i used the configure options follow as;
./configure --host=arm-unknown-linux-uclibcgnueabi CC=arm-unknown-linux-uclibcgnueabi-gcc \
RANLIB=arm-unknown-linux-uclibcgnueabi-ranlib STRIP=arm-unknown-linux-uclibcgnueabi-strip \
CPPFLAGS="$CPPFLAGS -I/home/jskim/build_zbar/install/jpeg/include" \
LDFLAGS="$LDFLAGS -L/home/jskim/build_zbar/install/jpeg/lib" \
--enable-static \
--with-jpeg --without-lqr --without-gvc --without-openexr --without-perl --without-lcms \
--without-fontconfig --without-lzma --without-xml --without-zlib --without-png --without-pango \
--without-djvu --without-freetype --without-jbig --without-openjp2 \
--without-tiff --without-webp --without-fpx --without-dps --without-fftw \
--prefix=/home/jskim/build_zbar/install/MagickWand
However, the size of libraries are very big for embedded system.
libMagickCore-6.Q16.so.2.0.0 -> about 8.5MB
libMagickWand-6.Q16.so.2.0.0 -> about 2.2MB
How can i reduce the library size ????
Please let me know~~~
I'm a software engineer of network camera.
i had cross-compiled the ImageMagick-6.9.2 for embedded linux system.
it will be only used for scan the qrcode jpg picture.
i used the configure options follow as;
./configure --host=arm-unknown-linux-uclibcgnueabi CC=arm-unknown-linux-uclibcgnueabi-gcc \
RANLIB=arm-unknown-linux-uclibcgnueabi-ranlib STRIP=arm-unknown-linux-uclibcgnueabi-strip \
CPPFLAGS="$CPPFLAGS -I/home/jskim/build_zbar/install/jpeg/include" \
LDFLAGS="$LDFLAGS -L/home/jskim/build_zbar/install/jpeg/lib" \
--enable-static \
--with-jpeg --without-lqr --without-gvc --without-openexr --without-perl --without-lcms \
--without-fontconfig --without-lzma --without-xml --without-zlib --without-png --without-pango \
--without-djvu --without-freetype --without-jbig --without-openjp2 \
--without-tiff --without-webp --without-fpx --without-dps --without-fftw \
--prefix=/home/jskim/build_zbar/install/MagickWand
However, the size of libraries are very big for embedded system.
libMagickCore-6.Q16.so.2.0.0 -> about 8.5MB
libMagickWand-6.Q16.so.2.0.0 -> about 2.2MB
How can i reduce the library size ????
Please let me know~~~