[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#377531: openoffice.org-dev: unowinreg.dll should be included



Just trying to get around having to write the makefile patch ;-)

> However, I am very grateful that you have tried this. Could you please
> provide a little more details about how did you compile your dll? I'd
> like to repeat your method and see if I can somehow get it working...
> Maybe not, I'm just interested.

apt-get install mingw32
cd <OOo source>/odk/source/unowinreg/win
i586-mingw32msvc-gcc -shared -I/usr/lib/jvm/java-gcj/include -o unowinreg.dll unowinreg.c -lkernel32 -ladvapi32
i586-mingw32msvc-strip unowinreg.dll

There's a (non-cross-compiling) FAQ for mingw/JNI here:
http://www.mingw.org/mingwfaq.shtml#faq-jni-dll

You could try with the extra -D_JNI_IMPLEMENTATION_ -Wl,--kill-at
arguments. The kill-at might be interesting because without it,
strings unowinreg.dll | grep RegOpenCurrentUser shows

Java_com_sun_star_lib_loader_WinRegKey_winreg_1RegOpenCurrentUser@12

and with --kill-at, the @12 was killed

Java_com_sun_star_lib_loader_WinRegKey_winreg_1RegOpenCurrentUser

(See also man ld)

HTH,
Martin



Reply to: