People are trying to compile LibreOffice in Windows. I act according to this instruction .

Here is this command

/cygdrive/c/sources/libreoffice-5.4.1.2/autogen.sh \ --with-external-tar=/cygdrive/c/sources/lo-externalsrc \ --with-junit=/cygdrive/c/sources/junit-4.10.jar \ --with-ant-home=/cygdrive/c/sources/apache-ant-1.9.5 \ --enable-pch --disable-ccache \ --disable-activex --disable-atl 

Produces the following

 Running ./configure with '--with-external-tar=/cygdrive/c/sources/lo-externalsrc --with-junit=/cygdrive/c/sources/junit-4.10.jar --with-ant-home=/cygdrive/c/sources/apache-ant-1.9.5 --enable-pch --disable-ccache --disable-activex --disable-atl --srcdir=/cygdrive/c/sources/libreoffice-5.4.1.2 --enable-option-checking=fatal' configure: error: unrecognized options: --disable-activex, --disable-atl Error running configure at /cygdrive/c/sources/libreoffice-5.4.1.2/autogen.sh line 293. 

But this

 /cygdrive/c/sources/libreoffice-5.4.1.2/autogen.sh \ --with-external-tar=/cygdrive/c/sources/lo-externalsrc \ --with-junit=/cygdrive/c/sources/junit-4.10.jar \ --with-ant-home=/cygdrive/c/sources/apache-ant-1.9.5 \ --enable-pch --disable-ccache 

Produces the following:

 Running ./configure with '--with-external-tar=/cygdrive/c/sources/lo-externalsrc --with-junit=/cygdrive/c/sources/junit-4.10.jar --with-ant-home=/cygdrive/c/sources/apache-ant-1.9.5 --enable-pch --disable-ccache --srcdir=/cygdrive/c/sources/libreoffice-5.4.1.2 --enable-option-checking=fatal' ******************************************************************** * * Running LibreOffice build configuration. * ******************************************************************** checking build system type... x86_64-unknown-cygwin checking host system type... x86_64-unknown-cygwin checking for product name... LibreOfficeDev checking for package version... 5.4.1.2.0+ checking for product version... 5.4 checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for grep... (cached) /usr/bin/grep checking for GNU Make... C:/cygwin64/opt/lo/bin/make configure: Using a native Win32 GNU Make version. checking for explicit COMSPEC... found: C:\Windows\system32\cmd.exe checking for sed... /usr/bin/sed checking whether to use link-time optimization... no checking for explicit AFLAGS... no checking for explicit CFLAGS... no checking for explicit CXXFLAGS... no checking for explicit OBJCFLAGS... no checking for explicit OBJCXXFLAGS... no checking for explicit LDFLAGS... no checking whether build target is Release Build... no checking whether to sign windows build... no checking for gawk... gawk checking for gawk... /usr/bin/gawk checking for bash... /bin/sh checking for GNU or BSD tar... tar checking for tar's option to strip components... --strip-components checking how to build and package galleries... internal src images for desktop checking whether to build with Java support... yes checking whether to treat the installation as read-only... no checking whether to build a 64-bit LibreOffice... no checking Visual C++... found: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\ checking for short pathname of VC product directory... C:/PROGRA~2/MICROS~3/2017/COMMUN~1/VC checking for UCRT location... cygpath: cannot create short name of Active code page configure: error: path conversion failed for "Active code page: 65001 [ERROR:VsDevCmd.bat] Script "vsdevcmd\ext\Active" could not be found. [ERROR:VsDevCmd.bat] *** VsDevCmd.bat encountered errors. Environment may be incomplete and/or incorrect. *** C:\Program Files (x86)\Windows Kits\10". Error running configure at /cygdrive/c/sources/libreoffice-5.4.1.2/autogen.sh line 293. 

Tell me who faced this and how to solve the problem.

If in cmd I ask to give me chcp answers Active code page 65001

I tried to rearrange VS to a folder without spaces (colleagues advised) - nothing has changed

  • And what a ready exe-shnik does not suit? - Visman
  • The task is set to compile. - Dejsving
  • configure: error: unrecognized options: --disable-activex, --disable-atl - well, so I suggest removing these 2 flags from the command ... - Qwertiy
  • The next command in the post is done. --disable-activex, --disable-atl are given to show why I removed them from the manual - Dejsving

1 answer 1

Partially solved problem. If cmd displays Active code page 866 in response to chcp . That compilation will be successful.

866 cp should be the default. It was not possible to find out how to change it in Windows. Settings through the registry from the Internet did not give a result - the console cp still remained 65001.

The compilation failed only on a different machine with the same parameters, where the console responded to Active code page 866 .

The issue of compilation on other encodings has not been studied. It was not possible to put the Windows so that the console was not 866 . All distributions (available to me) set to default 866.