Open calvinbutcher opened 8 years ago
sorry for my late reply. This project is bachelor thesis and nobody in our institution is currently working on it. I tried to run it and here is what I found out.
Piece of code responsible for printing configuration screen is missing in configure.in
for some reason. You should still see something like this in configure output:
checking for /tmp/openjpeg-version.2.0.1/src/lib/openjp2/openjpeg.h... yes
configure: Found OpenJPEG sources. Will compile JPEG2000 support
You can add this at the end of configure.in
to get usual configuration screen:
# Print out option status
AC_MSG_RESULT([
Options Enabled:
---------------
Memcached: ${MEMCACHED}
JPEG2000 (Kakadu): ${kakadu}
JPEG2000 (OpenJpeg): ${openjpeg}
])
Before runing IIPImage with OpenJPEG it is nececery to set system variable USE_OPENJPEG to 1 and after startup there should be OpenJPEG support mentioned in the logfile.
Setting up JPEG2000 support via OpenJPEG
Unfortunately this project is using old version of IIPImage and doesn't support IIIF protocol. The Zoomify protocol should work fine. I tried IIP protocol as well but the OpenJPEG driver have some issues causing crashes and sometime returning wrong part of image or broken jpeg.
Thank you kindly for your reply and my apologies my response has been so late, I'd been taken off this project for a few months.
I tried stweil fork https://github.com/stweil/iipsrv. It uses newest iipimage and support OpenJPEG 2.1. The error you mentioned syntax error at PKG_CHECK_MODULES(OPENJPEG, libopenjpeg1, OPENJPEG=true, OPENJPEG=false)
is probably caused by missing pkg-config.
sudo apt-get install pkg-config
solved it for me
Hopefully it will be merged to the upstream in the future ruven/iipsrv#61
Excellent, thank you!
Hello,
I'm trying to compile moravianlibrary/iipsrv-openjpeg against https://github.com/uclouvain/openjpeg version 2.0. Openjpeg compiles fine, is installed in usr/local/lib and my ld.so.conf/ldconfig is up-to-date.
The problem seems to be that configure does not result in the usual configuration success screen (JPEG2000 [OpenJPEG].... yes, JPEG2000 [kakadu] .... no etc.) . I only get:
configure: creating ./config.status config.status: creating Makefile ... [etc] ... config.status: executing libtool commands
And then the compile dialogue goes straight into the "make".
I'm wondering if this is why I only get a "Firefox cannot find file" error when trying to load a jp2 or tif. My iipsrv.log registers IIIF as an unknown command.
My installed libs are: build-essential wget cmake make git apache2 libapache2-mod-fcgid openssl libssl-dev autoconf libfcgi0ldbl libtool libjpeg-turbo8 libjpeg-turbo8-dev libtiff4-dev libpng12-0 libpng12-dev libmemcached-dev memcached liblcms2-2 liblcms2-dev
gcc is version 4.8.4.
Am I missing something?
I'm actually trying to create a docker image, but just cannot get this to work. The stweil fork @ https://github.com/stweil/iipsrv will compile correctly with openjpeg 2.1 but only on a desktop VM, not a headless server (
something I'm enquiring about with stweilissues are off on the stweil fork). It results in a "syntax error at PKG_CHECK_MODULES(OPENJPEG, libopenjpeg1, OPENJPEG=true, OPENJPEG=false)" in the configure script, also [something to do with a parameter expansion]. Can't seem to change libopenjpeg1 to libopenjpeg2 via the autogen.sh, either.Best wishes and thanks, C