[Libreoffice-bugs] [Bug 32426] auto install as much as possible of windows build dependencies

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Dec 21 10:00:33 CET 2010


https://bugs.freedesktop.org/show_bug.cgi?id=32426

--- Comment #2 from Tor Lillqvist <tlillqvist at novell.com> 2010-12-21 01:00:33 PST ---
As discussed on IRC, msvcr71.dll is needed by the JRE. (True at least for
current JREs, up to 1.6.0_22.) Sun does distribute a copy of msvcr71.dll with
the JRE, but unfortunately for a program, like soffice.exe, that "embeds" the
JVM, it won't be found using the normal DLL search rules. Caolán pointed to
this nice writeup: http://www.duckware.com/tech/java6msvcr71.html for instance.
But in LO we sure can't do what that writer recommends, i.e. chdir to the
directory where the msvcr71.dll bundled with the JRE is and back, that sounds
like a horribly unreliable hack.

We don't use MSVC7 to build any part of LibreOffice. Certainly, for a random
developer who wants to build LibreOffice (and thus build an installer for it,
even if he has no intent to redistribute it as such, but just for debugging),
it is perhaps not clear from where to get msvcr71.dll. But yeah, we could add
logic to find it in the JDK, as a JDK is a requirement for a build currently,
isn't it?

Another question is then that it is a bit unclear whether various people who
happen to build LibreOffice and do want to redistribute it are even allowed to
do that. There doesn't seem to be any redistributable package for the MSVC7
runtime. (Unlike for the later MSVC runtimes.)

So, I suggest we drop the requirement of msvcr71.dll in master, and drop it
from the installer. Then, in the code that starts the JVM, we add code to
explicitly try to load msvcr71.dll from where it should be as bundled with the
JRE. Perhaps, to guard against potential future versions of the JRE that are
built against a newer MSVC runtime, we could even inspect the import table of
jvm.dll and see what MSVC runtime it uses.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Libreoffice-bugs mailing list