[Libreoffice-bugs] [Bug 141896] SDK example DocumentLoader complains about the lack of /libmergedlo.so

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Jun 26 16:10:21 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=141896

--- Comment #4 from Hossein <hossein at libreoffice.org> ---
Tested on Windows 10, and the same problem exists.

One need to set this variable to fix the problem:

SET
URE_BOOTSTRAP=vnd.sun.star.pathname:C:/Progra~1/LibreOffice/program/fundamental.ini

Otherwise, setsdkenv_windows.bat does not properly set this environment
variable. (I set the compiler via Microsoft scripts)

To reproduce, do these steps for LibreOffice x64 on Windows 10 with VS 2019 and
Cygwin64 installed:

> cd C:\Program Files\LibreOffice\sdk
> setsdkenv_windows.bat
 ******************************************************************
 *
 * SDK environment is prepared for Windows
 *
 * SDK = c:\progra~1\Libreoffice\sdk
 * Office = c:\progra~1\Libreoffice
 * Make = C:\cygwin64\bin
 * Zip = C:\cygwin64\bin
 * cat = C:\cygwin64\bin
 * sed = C:\cygwin64\bin
 * C++ Compiler =
 * C# and VB.NET compilers =
 * Java =
 * Special Output directory = c:\libreoffice7.1_sdk
 * Auto deployment = YES
 *
 ******************************************************************
> set|grep UNO
UNO_PATH=c:\progra~1\Libreoffice\program

> cd examples\cpp\DocumentLoader
> %comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
> make
> c:\libreoffice7.1_sdk\WINexample.out\bin\DocumentLoader.exe -env:URE_MORE_TYPES="file:///C:/Progra~1/LibreOffice/program/types/offapi.rdb" test.odt

Error: cannot establish a connection using
'uno:socket,host=localhost,port=2083;urp;StarOffice.ServiceManager':
       loading component library </mergedlo.dll> failed

> SET URE_BOOTSTRAP=vnd.sun.star.pathname:C:/Progra~1/LibreOffice/program/fundamental.ini

> c:\libreoffice7.1_sdk\WINexample.out\bin\DocumentLoader.exe -env:URE_MORE_TYPES="file:///C:/Progra~1/LibreOffice/program/types/offapi.rdb" test.odt

So, by setting URE_BOOTSTRAP environment variable manually, everything will be
OK.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210626/7e652532/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list