This is an automated email from the ASF dual-hosted git repository. leginee pushed a commit to branch backport/pdfimport-pdfbox in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 8db87ceac9b63373c59d8e774fac60e2a17ac245 Author: Peter <[email protected]> AuthorDate: Wed Sep 9 01:03:59 2026 +0200 build: link jvmfwk, and unbreak the extension makefile Two build failures, both mine. makefile.mk SHL1LIBS I had put comment lines inside the backslash-continued macro, which dmake cannot parse: "Expecting macro or rule defn, found neither". Moved above the block, where they belong anyway. makefile.mk SHL1STDLIBS, prj/build.lst pdfbackend.cxx calls jfw_getSelectedJRE and jfw_freeJavaInfo so that the helper starts under the JRE the office is configured with -- the one the user picked in Tools - Options - Java -- rather than whatever PATH offers. Nothing linked jvmfwk, so the DLL failed with LNK2019 on both. Added $(JVMFWKLIB), and jvmfwk to the module's dependency line so it is ordered as well as linked. Result: sdext builds clean, and pdfimport.oxt is 4.0 MB containing pdfimport.uno.dll, the helper jar and the four PDFBox jars. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01CH5PJJyJfirMStqJEZTxBD --- main/sdext/prj/build.lst | 2 +- main/sdext/source/pdfimport/makefile.mk | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/main/sdext/prj/build.lst b/main/sdext/prj/build.lst index e5f60dcbf3..6b55b1c01c 100644 --- a/main/sdext/prj/build.lst +++ b/main/sdext/prj/build.lst @@ -1,4 +1,4 @@ -dx sdext : L10N:l10n offapi comphelper unotools readlicense_oo cppu tools cppuhelper sal javaunohelper officecfg LIBXSLT:libxslt xmlhelp rsc NULL +dx sdext : L10N:l10n offapi comphelper unotools readlicense_oo cppu tools cppuhelper sal javaunohelper jvmfwk officecfg LIBXSLT:libxslt xmlhelp rsc NULL dx sdext usr1 - all sdext_mkout NULL dx sdext\prj get - all sdext_prj NULL dx sdext\source\minimizer nmake - all sdext_minimizer sdext_inc NULL diff --git a/main/sdext/source/pdfimport/makefile.mk b/main/sdext/source/pdfimport/makefile.mk index 3a0f0833a3..0a97e710ce 100644 --- a/main/sdext/source/pdfimport/makefile.mk +++ b/main/sdext/source/pdfimport/makefile.mk @@ -55,19 +55,23 @@ SLOFILES=\ SHL1DLLPRE= SHL1TARGET=$(TARGET).uno +# NB: xpdfwrapper.lib is wrapper/, which is ours -- wrapper/makefile.mk +# still calls its TARGET that. The poppler helper was xpdfwrapper/, a +# different directory, and is gone. SHL1LIBS=\ $(SLB)$/pdfmisc.lib \ $(SLB)$/pdfparse.lib \ $(SLB)$/pdfsax.lib \ $(SLB)$/pdfparsetree.lib \ $(SLB)$/pdfodf.lib \ -# NB: xpdfwrapper.lib is wrapper/, which is ours -- wrapper/makefile.mk -# still calls its TARGET that. The poppler helper was xpdfwrapper/, a -# different directory, and is gone. $(SLB)$/xpdfwrapper.lib \ $(SLB)$/$(TARGET).lib +# jvmfwk: pdfbackend.cxx asks jfw_getSelectedJRE which JRE the office is +# configured to use, so the PDFBox helper starts under the one the user +# actually chose in Tools - Options - Java rather than whatever is on PATH. SHL1STDLIBS=\ + $(JVMFWKLIB) \ $(CPPUHELPERLIB) \ $(ZLIB3RDLIB) \ $(CPPULIB) \
