Description: When using this command: "soffice --headless --invisible --convert-to pdf:writer_pdf_Export --outdir /tmp /tmp/hello_world.odt" the following warnings appear: Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Steps to reproduce explained below Steps to Reproduce: 1. Unzip zip file(I attached to this submission) into directory called “bundle” and navigate into it - unzip bundle.zip -d bundle - cd bundle 2. Build docker image with name “test-lo-25-8-0-1" - docker build -f Dockerfile_LO_25_8_0_1 -t test-lo-25-8-0-1 . 3. Start docker container in background with previous image created - docker run --rm --name test-lo-25-8-0-1 -d test-lo-25-8-0-1 4. Attach to the already running docker container - docker exec -it test-lo-25-8-0-1 /bin/bash 5. Run LibreOffice CLI to convert odt -> pdf - soffice --headless --invisible --convert-to pdf:writer_pdf_Export --outdir /tmp /tmp/hello_world.odt Then the following logs will appear, even though the convert to pdf was successful (and the pdf generates correctly): Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> convert /tmp/hello_world.odt as a Writer document -> /tmp/hello_world.pdf using filter : writer_pdf_Export 6. Can open it to see pdf is good, copy the converted pdf from docker container to local directory - docker cp test-lo-25-8-0-1:/tmp/hello_world.pdf . 7. Stop docker container - docker stop test-lo-25-8-0-1 Actual Results: After following the "Steps to Reproduce", I have a pdf generated properly but also the following warning/error logs: Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> convert /tmp/hello_world.odt as a Writer document -> /tmp/hello_world.pdf using filter : writer_pdf_Export Expected Results: Not shown these warning/error logs Reproducible: Always User Profile Reset: Yes Additional Info: The attachment has the odt and the Dockerfile to be run
If you are running on aarch architecture rather than x86_64 run the following for step #3: "docker buildx build --platform linux/amd64 --load -f Dockerfile_LO_25_8_0_1 -t test-lo-25-8-0-1 ."
CORRECTION from previous comment: If you are running on aarch architecture rather than x86_64 run the following for step #2: "docker buildx build --platform linux/amd64 --load -f Dockerfile_LO_25_8_0_1 -t test-lo-25-8-0-1 ."
Created attachment 202071 [details] Zip file that includes the odt and Dockerfile for reproducing the bug
We are seeing this warning as well, albeit in a slightly different situation (using the LibreOffice UNO API from Java). I found two similar bug reports that are possibly related: https://bugs.documentfoundation.org/show_bug.cgi?id=166294 and https://bugs.documentfoundation.org/show_bug.cgi?id=168461 (Windows)