Installation with JasPer
Installation with JasPer
This is pretty elementary, but I can't find the answer. I've installed ImageMagick 6.7.7-0 and JasPer on a Linux (RHEL) system. They're both installed in local user directories. How do I configure ImageMagick so it knows where to find JasPer?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Installation with JasPer
As far as I know, if you install Jasper first and then install IM after, then it should just find it.
What do you see from
convert -list configure
at the line starting with DELEGATES. Does it include jp2? If not, then Jasper has not been installed correctly. Check your install logs (config.log) or watch for errors during the ./configure of Jasper and/or IM.
I am on Mac, so I installed via MacPorts all my delegates and then installed IM from source. It was just there afterwards and usable. I don't know much about Linux systems.
What do you see from
convert -list configure
at the line starting with DELEGATES. Does it include jp2? If not, then Jasper has not been installed correctly. Check your install logs (config.log) or watch for errors during the ./configure of Jasper and/or IM.
I am on Mac, so I installed via MacPorts all my delegates and then installed IM from source. It was just there afterwards and usable. I don't know much about Linux systems.
Re: Installation with JasPer
I just tried reinstalling ImageMagic, since I'd installed it before JasPer. There's no DELEGATES entry from convert -list configure, so presumably there are no delegates.
I really can't see how the installer could figure out that there's an installation of JasPer lying around somewhere if it isn't installed in the standard public directories.
Maybe one solution would be to do a public system-level installation, but I don't have authority to do that, and getting hold of a sysadmin to do it and doing the necessary back-and-forth communication would push things off into next week. (Not that there's much left of this week anyway.)
I really can't see how the installer could figure out that there's an installation of JasPer lying around somewhere if it isn't installed in the standard public directories.
Maybe one solution would be to do a public system-level installation, but I don't have authority to do that, and getting hold of a sysadmin to do it and doing the necessary back-and-forth communication would push things off into next week. (Not that there's much left of this week anyway.)
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Installation with JasPer
If you install from source, you have to install all your needed delegates, such as for png, jpg, tiff, etc before you install IM. As to pointing IM to where your delegates are located, see http://www.imagemagick.org/script/advan ... lation.php
As I said before, I install all my delegates from MacPorts which puts them in /opt. Then I install IM which goes to /usr/local/bin. My ./configure file looks as follows:
./configure CPPFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib' \
--enable-delegate-build --enable-shared --disable-static --disable-opencl \
--with-modules --with-quantum-depth=16 --with-gslib --without-wmf \
--disable-silent-rules --disable-dependency-tracking --disable-openmp \
--with-gs-font-dir=/opt/local/share/ghostscript/fonts/ --with-lqr
As I said before, I install all my delegates from MacPorts which puts them in /opt. Then I install IM which goes to /usr/local/bin. My ./configure file looks as follows:
./configure CPPFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib' \
--enable-delegate-build --enable-shared --disable-static --disable-opencl \
--with-modules --with-quantum-depth=16 --with-gslib --without-wmf \
--disable-silent-rules --disable-dependency-tracking --disable-openmp \
--with-gs-font-dir=/opt/local/share/ghostscript/fonts/ --with-lqr
Re: Installation with JasPer
Whew ... It's a LOT of work installing software on Linux when it's something you don't do regularly, but I finally got it to work after much fumbling. For anyone who may stumble upon this at a later date, here are the configure commands I used:
For Jasper:
./configure --prefix=/home/ids/jasper --enable-shared
For ImageMagick:
./configure --with-jp2=yes LDFLAGS='-L/home/ids/jasper/lib' CPPFLAGS=-I/home/ids/jasper/include -prefix=/home/ids/imagemagick/
Thanks for the pointers!
For Jasper:
./configure --prefix=/home/ids/jasper --enable-shared
For ImageMagick:
./configure --with-jp2=yes LDFLAGS='-L/home/ids/jasper/lib' CPPFLAGS=-I/home/ids/jasper/include -prefix=/home/ids/imagemagick/
Thanks for the pointers!