人们正试图在 Windows 上编译 LibreOffice。我正在遵循这个指示。
这是命令
/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
给出以下
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.
但是这个
/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
给出以下内容:
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.
请让我知道是否有人遇到过这种情况以及如何解决该问题。
如果在 cmd 我要求你给我chcp ,活动代码页 65001 答案
我试图将 VS 重新排列到一个没有空格的文件夹(由同事建议) - 没有任何改变
问题部分解决。如果cmd提供活动代码页 866以响应chcp。编译会成功。
866 cp 应该是默认值。如何在 Windows 中更改它无法弄清楚。从 Internet 通过注册表进行的设置不起作用 - 控制台的 cp 仍然保持 65001。
编译仅在具有相同选项的另一台机器上成功,其中控制台以Active code page 866响应。
尚未研究在其他编码上编译的问题。无法安装 Windows 以使控制台不是866。所有发行版(对我可用)默认为 866。