RError.com

RError.com Logo RError.com Logo

RError.com Navigation

  • 主页

Mobile menu

Close
  • 主页
  • 系统&网络
    • 热门问题
    • 最新问题
    • 标签
  • Ubuntu
    • 热门问题
    • 最新问题
    • 标签
  • 帮助
主页 / 问题 / 715075
Accepted
Dejsving
Dejsving
Asked:2020-09-06 20:04:51 +0000 UTC2020-09-06 20:04:51 +0000 UTC 2020-09-06 20:04:51 +0000 UTC

LibreOffice 无法在 Windows 上编译

  • 772

人们正试图在 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 重新排列到一个没有空格的文件夹(由同事建议) - 没有任何改变

windows-7
  • 1 1 个回答
  • 10 Views

1 个回答

  • Voted
  1. Best Answer
    Dejsving
    2020-09-11T21:21:17Z2020-09-11T21:21:17Z

    问题部分解决。如果cmd提供活动代码页 866以响应chcp。编译会成功。

    866 cp 应该是默认值。如何在 Windows 中更改它无法弄清楚。从 Internet 通过注册表进行的设置不起作用 - 控制台的 cp 仍然保持 65001。

    编译仅在具有相同选项的另一台机器上成功,其中控制台以Active code page 866响应。

    尚未研究在其他编码上编译的问题。无法安装 Windows 以使控制台不是866。所有发行版(对我可用)默认为 866。

    • 0

相关问题

Sidebar

Stats

  • 问题 10021
  • Answers 30001
  • 最佳答案 8000
  • 用户 6900
  • 常问
  • 回答
  • Marko Smith

    Python 3.6 - 安装 MySQL (Windows)

    • 1 个回答
  • Marko Smith

    C++ 编写程序“计算单个岛屿”。填充一个二维数组 12x12 0 和 1

    • 2 个回答
  • Marko Smith

    返回指针的函数

    • 1 个回答
  • Marko Smith

    我使用 django 管理面板添加图像,但它没有显示

    • 1 个回答
  • Marko Smith

    这些条目是什么意思,它们的完整等效项是什么样的

    • 2 个回答
  • Marko Smith

    浏览器仍然缓存文件数据

    • 1 个回答
  • Marko Smith

    在 Excel VBA 中激活工作表的问题

    • 3 个回答
  • Marko Smith

    为什么内置类型中包含复数而小数不包含?

    • 2 个回答
  • Marko Smith

    获得唯一途径

    • 3 个回答
  • Marko Smith

    告诉我一个像幻灯片一样创建滚动的库

    • 1 个回答
  • Martin Hope
    Air 究竟是什么标识了网站访问者? 2020-11-03 15:49:20 +0000 UTC
  • Martin Hope
    Алексей Шиманский 如何以及通过什么方式来查找 Javascript 代码中的错误? 2020-08-03 00:21:37 +0000 UTC
  • Martin Hope
    Qwertiy 号码显示 9223372036854775807 2020-07-11 18:16:49 +0000 UTC
  • Martin Hope
    user216109 如何为黑客设下陷阱,或充分击退攻击? 2020-05-10 02:22:52 +0000 UTC
  • Martin Hope
    Qwertiy 并变成3个无穷大 2020-11-06 07:15:57 +0000 UTC
  • Martin Hope
    koks_rs 什么是样板代码? 2020-10-27 15:43:19 +0000 UTC
  • Martin Hope
    user207618 Codegolf——组合选择算法的实现 2020-10-23 18:46:29 +0000 UTC
  • Martin Hope
    Sirop4ik 向 git 提交发布的正确方法是什么? 2020-10-05 00:02:00 +0000 UTC
  • Martin Hope
    faoxis 为什么在这么多示例中函数都称为 foo? 2020-08-15 04:42:49 +0000 UTC
  • Martin Hope
    Pavel Mayorov 如何从事件或回调函数中返回值?或者至少等他们完成。 2020-08-11 16:49:28 +0000 UTC

热门标签

javascript python java php c# c++ html android jquery mysql

Explore

  • 主页
  • 问题
    • 热门问题
    • 最新问题
  • 标签
  • 帮助

Footer

RError.com

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

帮助

© 2023 RError.com All Rights Reserve   沪ICP备12040472号-5