Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iipsrv-openjpeg w/ openjpeg 2.0 on Ubuntu headless VM 14.04.3 #2

Open
calvinbutcher opened this issue Jan 29, 2016 · 4 comments
Open

Comments

@calvinbutcher
Copy link

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.

  • I'm using a headless Ubuntu 14.04.3 VM (Virtualbox).
  • I am using configure --with-openjpeg=/tmp/openjpeg [without this it cannot find openjpeg]

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 stweil issues 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

@dsecik
Copy link
Collaborator

dsecik commented Feb 22, 2016

Hello,

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.

Configure does not result in the usual configuration success screen

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

iipsrv registers IIIF as an unknown command.

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.

@calvinbutcher
Copy link
Author

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.

@dsecik
Copy link
Collaborator

dsecik commented May 10, 2016

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

@calvinbutcher
Copy link
Author

Excellent, thank you!

calvinbutcher added a commit to bodleian/iipsrv-openjpeg-docker that referenced this issue May 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants