Description: The batch setsdk for windows will fail when pointing a LibreOffice directory containing parenthesis. When installing 32 bits version of LibreOffice (x86), the trouble appears because you have generally to set in setsdkenv_windows.bat set OFFICE_HOME=C:\Program Files (x86)\LibreOffice and the batch file doesn't support quotes for directory and trouble later with "if defined xxxx ( ... )" expressions then... Here what I've done to be able to compile sdk examples, by modifying some lines in file "setsdkenv_windows.bat" (stored for me at "C:\Users\USERNAME\AppData\Roaming\libreoffice7.1_sdk" REM ***** IF PRESENCE OF PARENTHESES LIKE '(x86)', ADD QUOTES FOR THIS PATH HERE !!!!! ***** set OFFICE_HOME="C:\Program Files (x86)\LibreOffice" ... REM ***** COMMENT THESES LINES NOT USED **** REM if defined CPP_WINDOWS_SDK ( REM set LIB=%LIB%;%CPP_WINDOWS_SDK%\lib REM ) ... if defined OFFICE_HOME ( set UNO_PATH=%OFFICE_PROGRAM_PATH% ) REM ***** ADDED HERE TO REMOVE NOW THE TEMPORARY QUOTES IN PATH VARIABLES... ***** set OFFICE_HOME=%OFFICE_HOME:"=% set OFFICE_PROGRAM_PATH=%OFFICE_PROGRAM_PATH:"=% set UNO_PATH=%UNO_PATH:"=% set OO_SDK_URE_BIN_DIR=%OFFICE_PROGRAM_PATH% set OO_SDK_URE_LIB_DIR=%OFFICE_PROGRAM_PATH% set OO_SDK_URE_JAVA_DIR=%OFFICE_PROGRAM_PATH%\classes set OO_SDK_OFFICE_BIN_DIR=%OFFICE_PROGRAM_PATH% set OO_SDK_OFFICE_LIB_DIR=%OFFICE_PROGRAM_PATH% set OO_SDK_OFFICE_JAVA_DIR=%OFFICE_PROGRAM_PATH%\classes And batch modified like that is working with LibreOffice installed in "C:\Program Files (x86)\LibreOffice" directory ! Actual Results: set sdk Windows batch launch failed. Expected Results: An error appeared when launching the batch file. Reproducible: Always User Profile Reset: No Additional Info: "Shell prepared for sdk" in the title. to indicate that sdk examples can now be compiled from it.
Code pointer odk/config/setsdkenv_windows.bat (https://opengrok.libreoffice.org/xref/core/odk/config/setsdkenv_windows.bat?r=7d69efd0) Stephan: thought you might be interested in this one since it concerns SDK moreover the reporter proposes a solution.
Hello, It's been a while since this issue was reported. Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Dear Marc Le Douarain, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping