开源改变世界

在当前的 ubuntu 19.10 上构建 debian 包失败 #705

推推 grbl 3年前 (2023-01-29) 147次浏览
关闭
bruns01 打开了这个问题 2020 年 3 月 25 日 · 10 条评论
关闭

在当前的 ubuntu 19.10 上构建 debian 包失败#705

bruns01 打开了这个问题 2020 年 3 月 25 日 · 10 条评论

注释

在当前的 ubuntu 19.10 上构建 debian 包失败 #705

以下是我重现该问题所遵循的步骤:

  1. 安装一个新的 ubuntu 19.10
  2. 克隆 linuxCNC 存储库(master)并按照构建说明进行操作
  3. 添加缺少的依赖项,直到“构建就地运行”成功
  4. 按照说明“构建一个 debian 包”

这是我期望发生的事情:

结果使用 linuxcnc.deb 文件成功构建

这是发生了什么:

来自 dblatex 的几乎无限的错误消息:

无法将“common/images/emc2-intro.png”转换为 pdf
无法将“user/images/whatstep1.png”转换为 pdf
无法将“gui/images/axis.png”转换为 pdf 无法将“gui/images/touchy.png”
转换为 pdf png’ 到 pdf

并且文档部分中的构建失败。

我发现了什么

问题似乎是 dblatex 依赖于 inkscape 将图形转换为
pdf 格式。
虽然 svg -> pdf 成功使用“inkscape -z -D –pdf-export=outputfilename.pdf inputfile.svg”
,但使用“inputfile.png”对 inkscape 的相同调用崩溃,因为 inkscape 想要打开一个 GUI 窗口来询问几个诸如“嵌入或链接图形”、“png 的分辨率是多少”等问题…

根据 inkscape 手册,没有 CLI 选项可以避免在 png 导入上进行此类 GUI 交互。

这是当前 inkscape 版本的展示塞。

有关我的硬件和软件的信息:

  • 我正在使用:Ubuntu 19.10
  • 我正在使用这个内核版本:5.3.0-42-lowlatency 2.7  #34 -Ubuntu SMP PREEMPT Fri Feb 28 06:31:24 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
  • 我正在尝试在当前的 Ubuntu-OS 上测试 linuxCNC
  • 我正在使用这个 LinuxCNC 版本 2.9.0~pre0(刚从 git master 克隆)
在当前的 ubuntu 19.10 上构建 debian 包失败 #705
合作者

我在周末看到了一串类似的消息,但我现在刚刚构建了一组 deb,在 Debian 10 (Buster) 上没有(重大)问题
你试过 dpkg-checkbuilddeps 了吗?我有一个模糊的记忆(尽管出现)它是一个缺失的依赖项。

在当前的 ubuntu 19.10 上构建 debian 包失败 #705
作者

是的,我做了 dpkg-checkbuilddeps,事实上,我不得不安装几个依赖项,甚至超出了它告诉我的范围。正如我所写,“就地运行构建”成功了。

我在 shell inkscape -z -D –export-pdf=test.pdf linuxcnc/docs/src/common/images/emc2-intro.png中尝试了相应的 inkscape cli 命令,
它停止并弹出一个模式对话框,即无法在自动构建中解决。

你知道吗,在哪里可以找到 dblatex 配置,(可能)控制对 inkscape 的调用?

在当前的 ubuntu 19.10 上构建 debian 包失败 #705
合作者

我没有看到我之前看到的错误。我看到不同的错误,但仍然得到 debs。我不知道实际上发生了什么变化。
(检查) 好吧,除了在 2.8 而不是 master。

这是 2.8 的输出,我会试试 master。

inkscape -z -D –export-pdf=fig42.pdf /home/andypugh/linuxcnc-dev/docs/src/gcode/images/eight-holes_en.svg
inkscape -z -D –export-pdf=fig43.pdf /home/andypugh/linuxcnc-dev/docs/src/gcode/images/twelve-holes_en.svg
inkscape -z -D –export-pdf=fig44.pdf /home/andypugh/linuxcnc-dev/docs/src/gcode /images/g81mult_en.svg
inkscape -z -D –export-pdf=fig45.pdf /home/andypugh/linuxcnc-dev/docs/src/gcode/images/g81ex1_en.svg
inkscape -z -D –export-pdf =fig46.pdf /home/andypugh/linuxcnc-dev/docs/src/gcode/images/g81ex2_en.svg
inkscape -z -D –export-pdf=fig47.pdf /home/andypugh/linuxcnc-dev/docs/src /gcode/images/g81_en.svg
inkscape -z -D –export-pdf=fig48.pdf /home/andypugh/linuxcnc-dev/docs/src/gcode/images/g81a_en.svg
无法将“gui/images/image-to-gcode.png”转换为 pdf
无法将“gui/images/i2g-roughing.png”转换为 pdf
无法将“gcode/images/ToolTable-TouchOff.png”转换为 pdf
inkscape -z -D –export-pdf=fig49.pdf /home/andypugh/linuxcnc-dev/docs/src/gcode/images/comp-path_en.svg
inkscape -z -D –export-pdf=fig50.pdf /home/ andypugh/linuxcnc-dev/docs/src/gcode/images/comp02_en.svg
无法将“gcode/images/outside-comp.png”转换为 pdf
无法将“gcode/images/inside-comp.png”转换为 pdf
无法转换“ gui/images/tooledit.png’ 到 pdf
无法将 ‘gui/images/tooledit-sort.png’ 转换为 pdf 无法将 ‘gui/images/tooledit-columns.png’
转换为 pdf
无法转换 ‘config/images/servo-feedback.png’ 到 pdf
无法将“config/images/pid-feedback.png”转换为 pdf
无法将“config/images/latency-test_en.png”转换为 pdf
无法将“config/images/latency-plot.png”转换为 pdf
无法转换“config/ images/latency-histogram.png’ 到 pdf
图像 ‘images/configuration-selector.png’ 未找到

在当前的 ubuntu 19.10 上构建 debian 包失败 #705
合作者

输出与 master 相同,得到一组 2.9 .deb 文件,包括文档。

andypugh@rm-one:~/linuxcnc-dev$ inkscape –version
Inkscape 0.92.4 (5da689c313, 2019-01-14)

那是区别吗?

在当前的 ubuntu 19.10 上构建 debian 包失败 #705
作者
布鲁斯01 评论了 2020 年 3 月 25 日  

现在无法检查版本,我离机器不近。
根据 pakages.ubuntu.com,应该安装 inkscape 0.92.4-4,因此这可能不是原因/差异。
我必须重新检查我的构建中的错误,我想知道如果没有可用的适当图形,它如何能为您成功运行。
也许我误解了构建失败的根本原因。
我很快回来 …

包构建失败的根本原因似乎是
> dpkg-checkbuilddeps 的未满足依赖项:错误:未满足构建依赖项:rtai-modules-3.4-9-rtai-686-pae

这是无法解决的,因为相应的软件包在 Ubuntu 19.10 中不可用。对于 64 位架构(仅作为 *:i386)。