https://bugs.documentfoundation.org/show_bug.cgi?id=155959
--- Comment #2 from Hossein <[email protected]> --- As discussed in tdf#155956, it seems that the office dir is mixed with the binary installation. So, I tried to do the steps again. In this test, cppumaker is not problematic, but I still get the error: c:\cygwin64\home\user\lode\dev\core\instdir\sdk\examples\cpp\DocumentLoader>make mkdir c:\libreoffice24.2_sdk\WINexample.out\misc mkdir: cannot create directory 'c:\\libreoffice24.2_sdk\\WINexample.out\\misc': File exists make: [../../../settings/stdtarget.mk:32: c:/libreoffice24.2_sdk/WINexample.out/misc/oosdk_cpp_types.flag] Error 1 (ignored) del c:\libreoffice24.2_sdk\WINexample.out\misc\oosdk_cpp_types.flag make: del: No such file or directory make: [../../../settings/stdtarget.mk:33: c:/libreoffice24.2_sdk/WINexample.out/misc/oosdk_cpp_types.flag] Error 127 (ignored) "C:\cygwin64\home\user\lode\dev\core\instdir\sdk/bin/cppumaker" -Gc -Oc:/libreoffice24.2_sdk/WINexample.out/inc "C:/cygwin64/home/user/lode/dev/core/instdir/program/types.rdb" "C:/cygwin64/home/user/lode/dev/core/instdir/program/types/offapi.rdb" echo flagged > c:/libreoffice24.2_sdk/WINexample.out/misc/oosdk_cpp_types.flag mkdir c:\libreoffice24.2_sdk\WINexample.out\obj\DocumentLoader mkdir: cannot create directory 'c:\\libreoffice24.2_sdk\\WINexample.out\\obj\\DocumentLoader': No such file or directory make: [Makefile:64: c:/libreoffice24.2_sdk/WINexample.out/obj/DocumentLoader/DocumentLoader.obj] Error 1 (ignored) cl -c -MDd -Zm500 -Zc:wchar_t- -wd4251 -wd4275 -wd4290 -wd4675 -wd4786 -wd4800 -GR -EHa -I. -Ic:/libreoffice24.2_sdk/WINexample.out/inc -Ic:/libreoffice24.2_sdk/WINexample.out/inc/examples -I../../../include -Ic:/libreoffice24.2_sdk/WINexample.out/inc/DocumentLoader -DWIN32 -DWNT -D_DLL -DCPPU_ENV=mscx -Foc:\libreoffice24.2_sdk\WINexample.out\obj\DocumentLoader\DocumentLoader.obj DocumentLoader.cxx Microsoft (R) C/C++ Optimizing Compiler Version 19.36.32534 for x64 Copyright (C) Microsoft Corporation. All rights reserved. DocumentLoader.cxx c:\cygwin64\home\user\lode\dev\core\instdir\sdk\examples\cpp\DocumentLoader\DocumentLoader.cxx : fatal error C1083: Cannot open compiler generated file: 'c:\libreoffice24.2_sdk\WINexample.out\obj\DocumentLoader\DocumentLoader.obj': No such file or directory make: *** [Makefile:65: c:/libreoffice24.2_sdk/WINexample.out/obj/DocumentLoader/DocumentLoader.obj] Error 1 By creating the obj directory in C:\libreoffice24.2_sdk\WINexample.out manually, the build passes. I think some commands in cygwin and cmd are mixed, although I did all the configuration in cmd here. The new output is: c:\cygwin64\home\user\lode\dev\core\instdir\sdk\examples\cpp\DocumentLoader>make mkdir c:\libreoffice24.2_sdk\WINexample.out\obj\DocumentLoader cl -c -MDd -Zm500 -Zc:wchar_t- -wd4251 -wd4275 -wd4290 -wd4675 -wd4786 -wd4800 -GR -EHa -I. -Ic:/libreoffice24.2_sdk/WINexample.out/inc -Ic:/libreoffice24.2_sdk/WINexample.out/inc/examples -I../../../include -Ic:/libreoffice24.2_sdk/WINexample.out/inc/DocumentLoader -DWIN32 -DWNT -D_DLL -DCPPU_ENV=mscx -Foc:\libreoffice24.2_sdk\WINexample.out\obj\DocumentLoader\DocumentLoader.obj DocumentLoader.cxx Microsoft (R) C/C++ Optimizing Compiler Version 19.36.32534 for x64 Copyright (C) Microsoft Corporation. All rights reserved. DocumentLoader.cxx mkdir c:\libreoffice24.2_sdk\WINexample.out\bin mkdir c:\libreoffice24.2_sdk\WINexample.out\misc\DocumentLoader link /MAP /OPT:NOREF /SUBSYSTEM:CONSOLE /BASE:0x1100000 /OUT:c:/libreoffice24.2_sdk/WINexample.out/bin/DocumentLoader.exe /MAP:c:/libreoffice24.2_sdk/WINexample.out/misc/DocumentLoader/DocumentLoader.map \ c:/libreoffice24.2_sdk/WINexample.out/obj/DocumentLoader/DocumentLoader.obj icppuhelper.lib icppu.lib isalhelper.lib isal.lib Microsoft (R) Incremental Linker Version 14.36.32534.0 Copyright (C) Microsoft Corporation. All rights reserved. Creating library c:\libreoffice24.2_sdk\WINexample.out\bin\DocumentLoader.lib and object c:\libreoffice24.2_sdk\WINexample.out\bin\DocumentLoader.exp LINK : warning LNK4281: undesirable base address 0x1100000 for x64 image; set base address above 4GB for best ASLR optimization -------------------------------------------------------------------------------- The example loads the test.odt document in the DocumentLoader example directory. If you want to load your own document, please use: DocumentLoader -env:URE_MORE_TYPES=<fileurl_office_types_rdb> filename [connection_url] - Use the following command to execute the example! - make DocumentLoader.run - NOTE: This example does not use the new UNO bootstrap mechanism, it uses still a socket connection. The example use the defaultBootstrap_InitialComponentContext method and provides the additional office types via the UNO environment variable -env:URE_MORE_TYPES=... Before you can run this example you have to start your office in listening mode. - soffice --accept=socket,host=localhost,port=2083;urp;StarOffice.ServiceManager -------------------------------------------------------------------------------- -- You are receiving this mail because: You are the assignee for the bug.
