Jump to content

Talk:Development/BuildingOnWindows

From The Document Foundation Wiki

I tried to do the same but it was a lot much harder (it stilk not works, but that's not the point). I had many problems with paths with spaces (maybe in Germany, the program files folder hav no spaces ?) --MatM 2011-10-03T23:20:39 (CEST)

There are spaces in paths in German too. We have for example "Dokumente und Einstellungen" und "Microsoft Visual Studio 9.0". That gives no problem for me. You might have a look at the tips for paths in https://wiki.openoffice.org/wiki/Documentation/Building_Guide/Building_on_Windows. Another problem is the length of the paths. You cannot put the source deep in a tree or at root level, but put it on first or second level. Regina 2011-11-29T17:12:02 (CET)

I try to build all without unit tests. Issuing

/opt/lo/bin/make build

still runs all unit tests.

What should I do to disable them *when making all*? Thank you. --Mikekaganski (talk) 2015-04-30T20:20:38 (UTC)



In section "Install Cygwin Requirements" copy&paste the command does not work. Problems:
(A) Copy results in line breaks and the ^ (which I assume is for skipping the line breaks) does not work. I have pasted it into an editor and removed all line breaks.
(B) The command cannot start setup-x86_64.exe, but I had to use .\setup-x86_64.exe

Further problem:
While running setup-x86_64.exe I get the error message

Regina (talk) 00:36, 5 December 2023 (UTC)

To be sure, were you running this in the legacy cmd prompt? Not PowerShell? Because the instructions say you should use cmd.
--Beluga (talk) 08:44, 5 December 2023 (UTC)
I have used PowerShell. That is what you get with item "Terminal (Admin)" from the start menu. Regina (talk) 10:31, 5 December 2023 (UTC)
Ok, you have to instead type cmd or Command Prompt in Start Menu.
--Beluga (talk) 18:48, 5 December 2023 (UTC)

"Winget commands to install Visual Studio and other dependencies" minor improvements

"Winget commands to install Visual Studio and other dependencies" code section if copied fully messes up the interactive confirmation (the third line is being pasted when prompted for Y/N confirmation)

Also, an "enable configuration with winget configure --enable" error appears when run for the first time

I updated the instructions, I hope this is better: https://wiki.documentfoundation.org/index.php?title=Development%2FBuildingOnWindows&diff=888319&oldid=881794 --Beluga (talk) 14:35, 6 August 2026 (UTC)

Yes, that's better, thank you! --Ttrolka

Build step fails, no wsl distributions

$ # edit the autogen.input to your liking and copy to your build directory
cp ~/lo/autogen.input ~/lo/libo-core/autogen.input
cd lo/libo-core
./g -z
wsl ./autogen.sh
make
Windows Subsystem for Linux has no installed distributions.
You can resolve this by installing a distribution with the instructions below:

Use 'wsl.exe --list --online' to list available distributions
and 'wsl.exe --install <Distro>' to install.
make: *** No targets specified and no makefile found.  Stop.

I don't know if I'm doing something wrong, but on clean Windows installation I did everything as close to this guide as possible yet there are errors. I think this page should be polished enough so new developers can also contribute without initial setup problems

This winget script should install a WSL distro. Can you confirm you ran winget configure -f lo/libo-core/.config/user_steps.winget as normal user in Command Prompt? --Beluga (talk) 14:31, 6 August 2026 (UTC)

Yes, I did run it. The only red line was here (marked >>>>>>>>>>>>>> RED LINE )

...
xScript [install-Ubuntu]
  installs Ubuntu with help of the cloud-init file
  Module: xPSDesiredStateConfiguration by DSC Community [Local]
    https://github.com/dsccommunity/xPSDesiredStateConfiguration
    DSC resources for configuring common operating systems features, files and settings.
  Dependencies: cloud-init-config
  Settings:
    TestScript: wsl.exe --list ; return ![bool]$LASTEXITCODE
    SetScript: [System.Console]::OutputEncoding = [System.Text.Encoding]::Unicode
wsl.exe --install --no-launch --distribution Ubuntu-24.04
wsl.exe --distribution Ubuntu-24.04 -u root cloud-init status --wait
    GetScript: wsl.exe --list ; return ![bool]$LASTEXITCODE

>>>>>>>>>>>>>> RED LINE
Some of the data present in the configuration file was truncated for this output; inspect the file contents for the complete content.
<<<<<<<<<<<<<<
You are responsible for understanding the configuration settings you are choosing to execute. Microsoft is not responsible for the configuration file you have authored or imported. This configuration may change settings in Windows, install software, change software settings (including security settings), and accept user agreements to third-party packages and services on your behalf.  By running this configuration file, you acknowledge that you understand and agree to these resources and settings. Any applications installed are licensed to you by their owners. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages or services.
Have you reviewed the configuration and would you like to proceed applying it to the system?
[Y] Yes  [N] No: y
xScript [prerequisitecheck]
  Unit successfully applied.

...

Which seems to be normal

Near the end the message said that configuration successfully applied - no other errors

xScript [install-Ubuntu]
  Unit successfully applied.
Configuration successfully applied.

--Ttrolka ([[1]])