[Solved] Installation Problem on Linux Mint - JPEG Delegate

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
hxxx
Posts: 4
Joined: 2013-10-13T06:28:14-07:00
Authentication code: 6789

[Solved] Installation Problem on Linux Mint - JPEG Delegate

Post by hxxx »

hey, I rarely use Linux and am forced to, cause of my current bachelor exam :(

All i did: install Eclipse, a compiler, tons of stuff to get CIMG to run (which requires ImageMagick for JPEG)

So i tried installing the "ImageMagick RPM's - Development, Perl, C++, and documentation RPM's."
from http://www.imagemagick.org/download/linux/CentOS/i386/

and get this:

Code: Select all

rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
error: Failed dependencies:
	/sbin/ldconfig is needed by ImageMagick-c++-6.8.7-0.i386
	ImageMagick = 6.8.7-0 is needed by ImageMagick-c++-6.8.7-0.i386
	libICE.so.6 is needed by ImageMagick-c++-6.8.7-0.i386
	libMagickCore-6.Q16.so.1 is needed by ImageMagick-c++-6.8.7-0.i386
	libMagickWand-6.Q16.so.1 is needed by ImageMagick-c++-6.8.7-0.i386
	libSM.so.6 is needed by ImageMagick-c++-6.8.7-0.i386
	libX11.so.6 is needed by ImageMagick-c++-6.8.7-0.i386
	libXext.so.6 is needed by ImageMagick-c++-6.8.7-0.i386
	libXt.so.6 is needed by ImageMagick-c++-6.8.7-0.i386
	libbz2.so.1 is needed by ImageMagick-c++-6.8.7-0.i386
	libc.so.6 is needed by ImageMagick-c++-6.8.7-0.i386
	libc.so.6(GLIBC_2.0) is needed by ImageMagick-c++-6.8.7-0.i386
	libc.so.6(GLIBC_2.1.3) is needed by ImageMagick-c++-6.8.7-0.i386
	libdl.so.2 is needed by ImageMagick-c++-6.8.7-0.i386
	libfftw3.so.3 is needed by ImageMagick-c++-6.8.7-0.i386
	libfontconfig.so.1 is needed by ImageMagick-c++-6.8.7-0.i386
	libfreetype.so.6 is needed by ImageMagick-c++-6.8.7-0.i386
	libgcc_s.so.1 is needed by ImageMagick-c++-6.8.7-0.i386
	libgcc_s.so.1(GCC_3.0) is needed by ImageMagick-c++-6.8.7-0.i386
	libgomp.so.1 is needed by ImageMagick-c++-6.8.7-0.i386
	liblcms.so.1 is needed by ImageMagick-c++-6.8.7-0.i386
	libltdl.so.3 is needed by ImageMagick-c++-6.8.7-0.i386
	liblzma.so.0 is needed by ImageMagick-c++-6.8.7-0.i386
	libm.so.6 is needed by ImageMagick-c++-6.8.7-0.i386
	libm.so.6(GLIBC_2.0) is needed by ImageMagick-c++-6.8.7-0.i386
	libpthread.so.0 is needed by ImageMagick-c++-6.8.7-0.i386
	libpthread.so.0(GLIBC_2.0) is needed by ImageMagick-c++-6.8.7-0.i386
	libstdc++.so.6 is needed by ImageMagick-c++-6.8.7-0.i386
	libstdc++.so.6(CXXABI_1.3) is needed by ImageMagick-c++-6.8.7-0.i386
	libstdc++.so.6(GLIBCXX_3.4) is needed by ImageMagick-c++-6.8.7-0.i386
	libz.so.1 is needed by ImageMagick-c++-6.8.7-0.i386
	rtld(GNU_HASH) is needed by ImageMagick-c++-6.8.7-0.i386
so i tried installing from source - it had 4 errors i think, but was too hard to overlook / find whats wrong

Then Eclipse / C++ (Linux / g++) no more longer said that "convert" was missing (using CIMG)
But instead it couldn't recognize JPEG and misses its Delegate - so what do i need now? i cant find out :\
that list configure command gave me that i only got ps and x as delegates

Then i installed any ImageMagick-Packs i could find from the nameless linux Mint Package installer program -> nothing changed
and afterwards used "make" to uninstall the imagemagick stuff from source

please help! =o

less important:
---------
http://www.imagemagick.org/download/delegates/ ? i dont know how to use this or if this will fix the problems root
There's no real instruction on how to get things to run for CIMG either, so i hope i dont have to find even more stuff like imagemagick :\
I spent 80 hours on trying to get linux / a programming tool to run and to read a **ffing jpeg pixel for low quality text recognition T_T
Why does Linux have to be so unrelyable - in theory i could just type pic=loadjpeg("") and getred(pic,1,2) and things work automatically
Last edited by hxxx on 2013-10-13T08:42:33-07:00, edited 1 time in total.
indiego
Posts: 75
Joined: 2010-10-16T06:35:10-07:00
Authentication code: 8675308

Re: Installation Problem on Linux Mint (ubuntu) - JPEG Deleg

Post by indiego »

Can you explain why you don't use the Imagemagick software that is shipped with your Linux distribution? It supports JPG out of the box, so no need to compile it yourself.
Also: using rpm's from a different Linux distribution is a bad idea.
hxxx
Posts: 4
Joined: 2013-10-13T06:28:14-07:00
Authentication code: 6789

Re: Installation Problem on Linux Mint (ubuntu) - JPEG Deleg

Post by hxxx »

Do you mean one of these (which i picked to install myself)?
<image removed>

I don't think it was installed by default, because I got these errors in Eclipse from CIMG by opening a .jpg file before it was installed by source:

Code: Select all

sh: 1: convert: not found
sh: 1: gm: not found
sh: 1: convert: not found
sh: 1: gm: not found
sh: 1: convert: not found
sh: 1: gm: not found

[CImg] *** CImgIOException *** [instance(0,0,0,0,(nil),non-shared)] CImg<unsigned char>::load(): Failed to recognize format of file 'test.jpg'.

[CImg] *** CImgDisplayException *** [instance(0,0,0,[untitled])] CImgDisplay::assign(): Failed to open X11 display.
terminate called after throwing an instance of 'cimg_library::CImgIOException'
  what():  [instance(0,0,0,0,(nil),non-shared)] CImg<unsigned char>::load(): Failed to recognize format of file 'test.jpg'.
Installing "ImageMagick" doesn't give me the console command convert / doesn't let me use it through C++ it seems - so i wondered if its just an interface.
But i need it as command for programming I guess.
Maybe i have to un- and install one of the packs on the pic? But i don't know which
Last edited by hxxx on 2013-10-13T08:42:53-07:00, edited 1 time in total.
hxxx
Posts: 4
Joined: 2013-10-13T06:28:14-07:00
Authentication code: 6789

Re: Installation Problem on Linux Mint (ubuntu) - JPEG Deleg

Post by hxxx »

Yay, it works :)
I recompiled from source once again and suspect that installing either imagemagick-common, libmagick++-dev or libmagick++-5 through the mint interface made compiling work with jpeg etc.

But if anyone knows which package solved it, I would be thankful, because I have to document it.
indiego
Posts: 75
Joined: 2010-10-16T06:35:10-07:00
Authentication code: 8675308

Re: Installation Problem on Linux Mint (ubuntu) - JPEG Deleg

Post by indiego »

I donno what you have done, so it's hard to say :-)
Some additional info about compiling it on Linux Mint can be found in my documentation (drops.pdf, page 6-7) for the drops module (ConTeXt).

http://www.wuala.com/indiego/public/ConTeXt/drops/
hxxx
Posts: 4
Joined: 2013-10-13T06:28:14-07:00
Authentication code: 6789

Re: Installation Problem on Linux Mint (ubuntu) - JPEG Deleg

Post by hxxx »

The pdf crashes when i open it on windows and i wouldnt really read much just to try to find sth, but thanks :D
indiego
Posts: 75
Joined: 2010-10-16T06:35:10-07:00
Authentication code: 8675308

Re: [Solved] Installation Problem on Linux Mint - JPEG Deleg

Post by indiego »

The crash shouldn't occur in the latest version of Acroreader (was a bug in the older 11 versions). Or simply use a different PDF reader (for example pdfxcview, which can be installed as portable version; at least on Windows).

You miss a complete description about the possible problems plus their solution (delagates, installation path), when compiling IM on Linux Mint. But you are free to ignore it / solve the problems yourself :lol:
Post Reply