Open aksm opened 3 years ago
@aksm could you share your full cmake command? Thanks!
@DiegoPino Sorry, forgot to mention that it was the release build that generated those errors. I'll try building it manually today.
@DiegoPino Ok, images seem to be loading now after building, but I still see the above in the logs. Thoughts? Should I open an issue with Cantaloupe?
@aksm that means it can not process JPEG2000 which is bad. There is probably a missing dependency in the make file. Let me check
Ok, that was quick. Since I do not know how you are building it, but I do know that this here works, can you compare notes?
https://github.com/cantaloupe-project/cantaloupe/blob/develop/docker/Linux-JDK16/Dockerfile#L1-L67
Also, JDK-16... which one are we using??
There are other JDK examples there. But in all Grok passes compile... give it a try
@DiegoPino I'm just building locally with default flags and then copying the binaries into the container. I was trying to go for something from 9.2+ since the benchmarks are for 9.2 and since the buffer overflow bug seems to have been fixed from that point forward, but maybe 7.6.5 is not so much worse in performance? In any case, I'll give this a go and see.
We're on JDK-15.
Ok, I tried with a base image of Ubuntu 21.10 and the official apt package and ran into the same exact error so something else is going on. I'll try building from source with a newer version of grok since this base box should have all the dependencies.
Ok, it may be one of the dependencies then. Which is good because we do not need to change (once you figure out which one) the current base box
What?
GrokProcessor is a nice middle ground between OpenJPEG and Kakadu (see benchmarks). Unfortunately, despite the reported bugs being resolved, it's still being held in Debian sid (unstable), and compiling from source isn't possible because of compiler requirements. Precompiled binaries for 9.2.0 are only partially working with some images but showing the following errors for certain JP2 sources:
Some debugging/testing will be required. Maybe trying a later version? Compiling with different flags?