- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
如何使用 Sato 和 Chromium 为 DragonBoard 410c 生成图像?
从qcom-oe-manifest开始在 Dragonboard-410c-OpenEmbedded-and-Yocto documentation 中提到
将 Sato 桌面和 Chromium 添加到此基本配置的正确/正确方法是什么?
我做了什么:
x11-base x11-sato
添加到 IMAGE_FEATURESchromium alsa-utils lsb
添加到 CORE_IMAGE_BASE_INSTALL/oe-qcom-yocto/sources$ more ./meta-rpb/recipes-samples/images/my-image.bb
SUMMARY = "Basic console image"
IMAGE_FEATURES += "x11-base x11-sato splash package-management ssh-server-dropbear hwcodecs"
LICENSE = "MIT"
inherit core-image distro_features_check extrausers
# let's make sure we have a good image..
REQUIRED_DISTRO_FEATURES = "pam systemd"
CORE_IMAGE_BASE_INSTALL += " \
chromium alsa-utils lsb \
coreutils gptfdisk kernel-modules connman 96boards-tools \
"
EXTRA_USERS_PARAMS = "\
useradd -p '' linaro; \
"
然后运行 bitbake -v
~/oe-qcom-yocto/build-jethro$ bitbake -v my-image
NOTE: Started PRServer with DBfile: /home/joel/oe-qcom-yocto/build-jethro/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 51063, PID: 1432
Loading cache: 100% |############################################################################################################################################################################| ETA: 00:00:00
Loaded 2948 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: selecting pigz-native to satisfy gzip-native due to PREFERRED_PROVIDERS
NOTE: selecting pseudo-native to satisfy virtual/fakeroot-native due to PREFERRED_PROVIDERS
NOTE: selecting linux-linaro-qcomlt to satisfy virtual/kernel due to PREFERRED_PROVIDERS
NOTE: selecting opkg-native to satisfy opkg-native due to PREFERRED_PROVIDERS
NOTE: selecting opkg-utils-native to satisfy virtual/update-alternatives-native due to PREFERRED_PROVIDERS
ERROR: Nothing RPROVIDES 'chromium' (but /home/joel/oe-qcom-yocto/build-jethro/conf/../../sources/meta-rpb/recipes-samples/images/my-image.bb RDEPENDS on or otherwise requires it)
ERROR: chromium was skipped: incompatible with machine dragonboard-410c (not in COMPATIBLE_MACHINE)
NOTE: Runtime target 'chromium' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['chromium']
NOTE: Target 'my-image' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['my-image', 'chromium']
ERROR: Required build target 'my-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['my-image', 'chromium']
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
dragonboard-410c
添加到 COMPATIBLE_MACHINE
- 新错误...
NOTE: selecting gettext to satisfy virtual/gettext due to PREFERRED_PROVIDERS
ERROR: Nothing PROVIDES 'libav' (but /home/joel/oe-qcom-yocto/build-jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium_40.0.2214.91.bb DEPENDS on or otherwise requires it)
ERROR: libav was skipped: because it has a restricted license not whitelisted in LICENSE_FLAGS_WHITELIST
NOTE: Target 'libav' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['libav']
NOTE: Runtime target 'chromium' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['chromium', 'libav']
NOTE: Target 'my-image' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['my-image', 'chromium', 'libav']
ERROR: Required build target 'my-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['my-image', 'chromium', 'libav']
在 build_jethro/conf/local.conf
文件的末尾添加了 LICENSE_FLAGS_WHITELIST = "commercial"
并且它正在构建我的图像
WARNING: Failed to fetch URL file://include.gypi, attempting MIRRORS if available
ERROR: Fetcher failure: Unable to find file file://include.gypi anywhere. The paths that were searched were:
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium-40.0.2214.91/rpb
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium/rpb
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/files/rpb
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium-40.0.2214.91/aarch64
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium/aarch64
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/files/aarch64
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium-40.0.2214.91/dragonboard-410c
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium/dragonboard-410c
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/files/dragonboard-410c
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium-40.0.2214.91/aarch64
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium/aarch64
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/files/aarch64
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium-40.0.2214.91/
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium/
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/files/
/home/joel/oe-qcom-yocto/sources/downloads
ERROR: Function failed: Fetcher failure for URL: 'file://include.gypi'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/joel/oe-qcom-yocto/build_jethro/tmp-rpb-glibc/work/aarch64-oe-linux/chromium/40.0.2214.91-r0/temp/log.do_fetch.10845
ERROR: Task 197 (/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium_40.0.2214.91.bb, do_fetch) failed with exit code '1'
include.gypi
在 Chromium 配方中
joel@linux-Lenovo-G50-70:~/oe-qcom-yocto/sources$ grep -r "include.gypi" *
meta-browser/recipes-browser/chromium/chromium_40.0.2214.91.bb: file://include.gypi \
meta-browser/recipes-browser/chromium/chromium_40.0.2214.91.bb: -I ${WORKDIR}/include.gypi \
aarch64
创建了 meta-browser/recipes-browser/chromium/chromium/aarch64
文件夹并添加了 include.gypi
和 oe-defaults.gypi
按照 LightenS 的建议
meta-browser/recipes-browser/chromium/chromium/aarch64$ more include.gypi
{
'variables': {
'target_arch': 'arm64',
'use_allocator': 0,
'use_xkbcommon': 1,
'v8_use_external_startup_data' : 0,
'v8_use_snapshot' : 'false',
},
}
oe-defaults.gypi
meta-browser/recipes-browser/chromium/chromium/aarch64$ more oe-defaults.gypi
{
'variables': {
'use_system_bzip2': 1,
'disable_nacl': 1,
'proprietary_codecs': 1,
'v8_use_snapshot': 1,
'ffmpeg_branding' : 'Chrome',
'use_system_ffmpeg': 0,
'linux_link_kerberos': 0,
'use_kerberos': 0,
'use_cups': 0,
'use_gnome_keyring': 0,
'linux_link_gnome_keyring': 0
},
}
[301/16647] CXX obj/breakpad/src/client/linux/minidump_writer/breakpad_client.linux_ptrace_dumper.o
|
| [301/16647] CXX obj/breakpad/src/client/linux/minidump_writer/breakpad_client.linux_ptrace_dumper.o
| FAILED: aarch64-oe-linux-g++ --sysroot=/home/joel/oe-qcom-yocto/build_jethro/tmp-rpb-glibc/sysroots/dragonboard-410c -MMD -MF obj/breakpad/src/client/linux/dump_writer_common/breakpad_client.thread_info.o.d -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC -DDISABLE_NACL -DCHROMIUM_BUILD -DTOOLKIT_VIEWS=1 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_ASH=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DUSE_XI2_MT=2 -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DUSE_UDEV -DDONT_EMBED_BUILD_METADATA -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DCLD2_DATA_SOURCE=static -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_MANAGED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DENABLE_LOAD_COMPLETION_HACKS=1 -DUSE_LIBPCI=1 -DUSE_GLIB=1 -DUSE_NSS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen -I../../breakpad/src -I../../breakpad/src/client -I../../breakpad/src/third_party/linux/include -I../.. -I../../breakpad -fstack-protector --param=ssp-buffer-size=4 -pthread -fno-strict-aliasing -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-unused-local-typedefs -Wno-format -Wno-unused-result -O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables -Wno-error=unused-local-typedefs -O2 -pipe -g -feliminate-unused-debug-types -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-deprecated -std=gnu++11 -Wno-narrowing -Wno-literal-suffix -c ../../breakpad/src/client/linux/dump_writer_common/thread_info.cc -o obj/breakpad/src/client/linux/dump_writer_common/breakpad_client.thread_info.o
| In file included from ../../breakpad/src/client/linux/dump_writer_common/thread_info.cc:30:0:
| ../../breakpad/src/client/linux/dump_writer_common/thread_info.h:69:23: error: field 'regs' has incomplete type 'google_breakpad::user_pt_regs'
| struct user_pt_regs regs;
| ^
| ../../breakpad/src/client/linux/dump_writer_common/thread_info.h:69:10: note: forward declaration of 'struct google_breakpad::user_pt_regs'
| struct user_pt_regs regs;
| ^
| ../../breakpad/src/client/linux/dump_writer_common/thread_info.h:70:28: error: field 'fpregs' has incomplete type 'google_breakpad::user_fpsimd_state'
| struct user_fpsimd_state fpregs;
| ^
| ../../breakpad/src/client/linux/dump_writer_common/thread_info.h:70:10: note: forward declaration of 'struct google_breakpad::user_fpsimd_state'
| struct user_fpsimd_state fpregs;
|
最佳答案
Openembedded-core 中有一个 Sato 包,您可以继承到 HERE
如果你想构建 Sato 图像,这里有一个列表来自 Openembedded-core HERE
来自 chromium.inc , Chromium 不支持你的主板。这是Quad-core ARM® Cortex® A53
,您可以尝试将机器添加到列表中并编译。你的机器应该是aarch64
COMPATIBLE_MACHINE = "(-)"
COMPATIBLE_MACHINE_x86 = "(.*)"
COMPATIBLE_MACHINE_x86-64 = "(.*)"
COMPATIBLE_MACHINE_armv6 = "(.*)"
COMPATIBLE_MACHINE_armv7a = "(.*)"
COMPATIBLE_MACHINE_aarch64 = "(.*)"
编辑:Chromium 需要编译以下内容;
DEPENDS = "xz-native pciutils pulseaudio cairo nss zlib-native libav cups ninja-native gconf libexif pango libdrm"
取决于 += "libgnome-keyring"
在这些依赖项中,libav
需要被列入白名单。为此,我们需要转到 conf/local.conf
并添加 LICENSE_FLAGS_WHITELIST = "commercial"
。
Click Here, and look for Section 12.5了解有关许可证的更多信息。
编辑:提取器问题:您需要将 include.gypi
和 oe-defaults.gypi
文件添加到 /meta-browser/recipes-browser/chromium/chromium/aarch64/
chromium/chromium/aarch64/include.gypi
{
'variables': {
'target_arch': 'arm64',
'use_allocator': 0,
'use_xkbcommon': 1,
'v8_use_external_startup_data' : 0,
'v8_use_snapshot' : 'false',
},
}
chromium/chromium/oe-defaults.gypi
{
'variables': {
'use_system_bzip2': 1,
'disable_nacl': 1,
'proprietary_codecs': 1,
'v8_use_snapshot': 1,
'ffmpeg_branding' : 'Chrome',
'use_system_ffmpeg': 0,
'linux_link_kerberos': 0,
'use_kerberos': 0,
'use_cups': 0,
'use_gnome_keyring': 0,
'linux_link_gnome_keyring': 0
},
}
编辑: dragonboard 的正确元浏览器应该是这样的:https://github.com/kuscsik/meta-browser-1 .里面有开发板所需的所有文件。
关于linux - 为 DragonBoard 410c 构建 Yocto 图像,如何构建 Chromium,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36184976/
我在使用 gradle 构建一个特定应用程序时遇到问题。该应用程序可以用 eclipse 编译和构建,它在平板电脑上运行良好。当我尝试使用 Gradle 构建它时,“compileDebugJava”
我有一个 C 程序,是一位离开的开发人员留给我的。我试图弄清楚他到底在做什么,并将软件重新安排成更合乎逻辑的东西,这样我就可以更轻松地构建它。我正在使用 CMake 构建,而他使用的是 Make。 有
我刚开始阅读“Pro Spring MVC with web flow”,它附带了一个我想遵循的代码示例。 我要什么 - 我想像书中那样构建应用程序,使用 Gradle 有什么问题 - 我没用过 Gr
我希望有人已经这样做了。我正在尝试为我的一个 angular 2 项目在 teamcity 中建立一个连续的构建。在做了一些研究之后,我按照以下步骤操作: 构建步骤 1:为 teamcity 安装 j
我有一个旧的 ASP.Net 网站解决方案,看起来像: 当我在 Visual Studio 中构建解决方案时,我得到以下输出: ------ Build started: Project: C:\..
我使用 gulp-usref、gulp-if、gulp-uglify、gulp-csso 和 gulp-file-include 来构建我的应用程序。除了 HTML 保持原样外,构建中的一切都运行良好
我正在使用 ionic2 开发内部移动应用程序。我可以通过以下方式成功构建 ios: ionic build ios and ionic build ios --prod 但当我这样做时,它一直失败
我是一位经验丰富的 .NET/C# 开发人员,但对这里的几乎所有技术/库(包括 SQL/DB 工作)都是新手。 我正在开发一个具有 Azure/Entity Framework .NET 后端和可移植
我正在使用 VS 2008。我可以使用 IDE 成功编译我的解决方案。但是,当我尝试使用 devenv.com 构建它时,它失败并提示“错误:找不到项目输出组'(无法确定名称)的输出”。该组、其配置或
版本: ember.js 2.7,ember-data 2.7 ember-cli 2.9.1//同样适用于 ember-cli 2.7 node 6.9.1, npm 3.10.9//也适用于 no
我第一次修补 AzureDevops,设置一些 CI 任务。 我有一个公共(public)存储库(开源)和一个包含 3 个 F# 项目的解决方案(.sln)。该解决方案在 Windows/Mac/Li
目前 5.1.5 版本或 STLPort CVS 存储库似乎仍不支持 VS2008。如果有人已经完成了这项工作,那么如果可能的话,分享会很有用:) 同样,了解 VS2005 或 2008 x64 构建
我有一个 Python 2.7 项目,到目前为止一直使用 gfortran 和 MinGW 来构建扩展。我使用 MinGW,因为它似乎支持 Fortran 代码中的写入语句和可分配数组,而 MSVC
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题? Update the question所以它是on-topic对于堆栈溢出。 9年前关闭。 Improve this que
我想知道为什么在 Zimbra Wiki 中只列出了构建过程的特定平台。这意味着不可能在其他 Linux 发行版上构建 Zimbra? Zimbra 社区选择一个特殊的 Linux 发行版来构建 Zi
我将在 Swift 中构建一个 CLI 工具。我用这个命令创建了项目 swift package init --type executable当我构建我的项目并解析 时读取别名 Xcode 中的参数并
我想为添加到 docker 镜像的文件设置文件权限。我有这个简单的 Dockerfile: FROM ubuntu:utopic WORKDIR /app RUN groupadd -g 1000 b
当我使用 clBuildProgram在我的 OpenCl 代码中,它失败并显示错误代码 -11,没有任何日志信息。 这是我的代码的样子: ret = clBuildProgram(program
我有一个底部导航栏,它有一个列表页面,该页面使用状态块。 class _MainPageState extends State { int _index = 0; @override Wi
我在本地计算机上使用Jenkins(Jenkins URL未通过Internet公开,但该计算机上已启用Internet。) 我进行了以下配置更改: 在Jenkins工具上安装了Git和Github插
我是一名优秀的程序员,十分优秀!