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

            Bug ID: 155959
           Summary: LibreOffice C++ SDK make does not work neither in
                    Cygwin shell nor in CMD
           Product: LibreOffice
           Version: 24.2.0.0 alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: sdk
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: hoss...@libreoffice.org

Description:
LibreOffice SDK setsdkenv_windows.bat has issues with using vcvars64.bat, filed
as tdf#55956. But even when using a workaround for that by manually setting the
script path and name, the C++ SDK make does not work neither in Cygwin shell
nor in CMD.

Steps to Reproduce:
I assume that Visual Studio 2022 with x64 Cygwin installed in c:\cygwin64 are
used.

1. Build LibreOffice from sources with SDK on Windows x64 using Cygwin with
--enable-odk
2. Edit C:\cygwin64\home\user\lode\dev\core\instdir\sdk\cfgWin.js.

Temporarily change line 990 from

        "if defined OO_SDK_CPP_HOME call \"%OO_SDK_CPP_HOME%\\VCVARS32.bat\"\n"
+

To:

        "if defined OO_SDK_CPP_HOME call \"C:\\Program Files\\Microsoft Visual
Studio\\2022\\Community\\VC\\Auxiliary\\Build\\VCVARS64.bat\"\n" +

3. Invoke these commands in Cygwin shell or cmd (omit ./ in CMD):
    $ cd instdir
    $ cd sdk
    $ ./setsdkenv_windows.bat
4. Enter details of the system configuration
5. Go to examples/cpp/DocumentLoader in either Cygwin shell or CMD
6. Invoke make

Actual Results:
In Cygwin shell:

user@windows ~/lode/dev/core/instdir/sdk/examples/cpp/DocumentLoader
$ make
../../../settings/settings.mk:22: /settings/dk.mk: No such file or directory
make: *** No rule to make target '/settings/dk.mk'.  Stop.

In CMD, an assertion failure for cppumaker.exe is shown in addition to this
error:

c:\cygwin64\home\user\lode\dev\core\instdir\sdk\examples\cpp\DocumentLoader>make
mkdir c:\libreoffice24.2_sdk\WINexample.out\misc
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:/Program
Files/LibreOffice/program/types.rdb" "C:/Program
Files/LibreOffice/program/types/offapi.rdb"
make: *** [../../../settings/stdtarget.mk:34:
c:/libreoffice24.2_sdk/WINexample.out/misc/oosdk_cpp_types.flag] Error 3

Expected Results:
Compilation should be done without error in Cygwin shell and CMD.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e7f486f10fd21bee78dea0d2eda241dd094d783d
CPU threads: 20; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_DE); UI: en-US
Calc: CL threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to