我在我的树莓派 4 上安装了 ubuntu 20。这是一个我正在尝试设置的小型学习项目。
我已经尝试使用 docker 图像,但找不到适用于 ubuntu 20 的正确图像,用于覆盆子 pi。但是,我确实尝试过使用特定的 ubuntu 映像,但我收到了以下错误。
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested standard_init_linux.go:219: exec user process caused: exec format error
这是完全可以理解的,因为平台不同。所以我试图从源代码构建。但是,运行该实用程序来构建 makefile 我收到以下问题
utility/Makefile.am:8: warning: source file '$(srcdir)/util/type.cpp' is in a subdirectory,
utility/Makefile.am:8: but option 'subdir-objects' is disabled
这有点压倒性,我做了一些研究,发现有两种选择可以解决这个问题,但要付出代价。
a) adding subdir-objects to configure.ac like this
AM_INIT_AUTOMAKE([gnu subdir-objects])
b) adding AUTOMAKE_OPTIONS = subdir-objects to Makefile.am
AUTOMAKE_OPTIONS = subdir-objects
这两个选项将修改几个不受欢迎的文件。
这些选项有替代品吗?此外,如果有人开发了 docker 映像或从 Raspberry Pi 4 (ubuntu 20) 的源代码构建了安装。任何信息将不胜感激。