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

Installation fails on Debian 10 #17

Open
JKatzwinkel opened this issue Feb 1, 2021 · 10 comments
Open

Installation fails on Debian 10 #17

JKatzwinkel opened this issue Feb 1, 2021 · 10 comments
Assignees
Labels
enhancement New feature or request

Comments

@JKatzwinkel
Copy link

Make target deps-ubuntu fails on Debian 10 (buster), due to dependency openjdk-8-jre-headless not being in the standard packages. Is ocrd_pagetopdf compatible with Java 11 and would it be possible to add to your Makefile a conditional along the lines of

ifeq ($(shell lsb_release -rs),10)
apt-get install -y openjdk-11-jre-headless
endif

...or something like this in order to have installation work on Debian 10?

@kba
Copy link
Contributor

kba commented Feb 1, 2021

The question is whether https://github.com/PRImA-Research-Lab/prima-page-to-pdf is compatible with Java != 8. From past experience with PRImA tools I doubt it, but please try it and find out for yourself with your proposed change.

@bertsky
Copy link
Contributor

bertsky commented Feb 1, 2021

The question is whether https://github.com/PRImA-Research-Lab/prima-page-to-pdf is compatible with Java != 8. From past experience with PRImA tools I doubt it, but please try it and find out for yourself with your proposed change.

AFAICT all PRImA libs need to be reuilt for Java 11. It's possible, I've done it. But the whole Eclipse-based build is undocumented, and there are some problems with it – see discussion here

@JKatzwinkel
Copy link
Author

Thanks for your quick and informative responses! I'm gonna put a note into our documentation suggesting some kind workaround. Feel free to close!

@stweil
Copy link
Member

stweil commented Feb 1, 2021

I just tried Java openjdk version "16-ea" 2021-03-16 [sic] with Debian bullyeye. It created a PDF file and did not complain, so maybe it works better than expected with newer versions of Java.

@bertsky
Copy link
Contributor

bertsky commented Feb 1, 2021

I just tried Java openjdk version "16-ea" 2021-03-16 [sic] with Debian bullyeye. It created a PDF file and did not complain, so maybe it works better than expected with newer versions of Java.

In that case, perhaps a neutral default-jdk would be the better dependency for the moment?

@stweil
Copy link
Member

stweil commented Feb 1, 2021

Yes, as soon as my preliminary result is confirmed. I got a PDF with the image, but no selectable text. That might be caused by my test data, but could also be caused by the Java version.

@stweil
Copy link
Member

stweil commented Feb 1, 2021

I had to add -text-source W when running PageToPdf.jar. Now the generated PDF has a working text layer.

So it seems to work fine.

@stweil
Copy link
Member

stweil commented Feb 1, 2021

@JKatzwinkel, @bertsky, I changed Makefile to install default-jre-headless now. That should work and fix this issue.

@stweil stweil added the enhancement New feature or request label Feb 1, 2021
@stweil stweil self-assigned this Feb 1, 2021
@JKatzwinkel
Copy link
Author

Very nice, I seem to be able to make all of ocrd_all again. Thanks a ton!

@mikegerber
Copy link

mikegerber commented Feb 1, 2021

The question is whether https://github.com/PRImA-Research-Lab/prima-page-to-pdf is compatible with Java != 8. From past experience with PRImA tools I doubt it, but please try it and find out for yourself with your proposed change.

AFAICT all PRImA libs need to be reuilt for Java 11. It's possible, I've done it.

Except for prima-page-converter's dependency PrimaText.jar, which is mostly closed-source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants