目标友善ARM mini210s
我已经成功地为 ARM 交叉编译了 Chromium请参阅此处的工作流程。
如何在我的裸 Linux 3.0.8 armv7l 上安装 Chromium?
到目前为止我做了什么
我将文件复制./chrome/installer/linux/debian_wheezy_arm-sysroot
到我的目标上(不确定这是正确的事情,但看起来足够合理)
当我尝试运行 Chrome 时,出现以下错误:
[root@target chrome-release]# ./chrome
./chrome: error while loading shared libraries: libattr.so.1: cannot open shared object file: No such file or directory
更新我解决了这个特定问题这里
问题 1:在哪里可以找到libattr
源代码或二进制文件并将其安装在我的目标上?
我找到了一个文件,但我宁愿尝试从源代码进行 x 编译。
问题 2:我如何在不违反目标的情况下始终如一地解决问题?这有帮助...但我觉得我弄乱了我的 Linux 3.0.8 armv7l 实例。
[root@target chrome-release]# ./chrome
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ./chrome)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./chrome)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libkeyed_service_content.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libkeyed_service_content.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libkeyboard.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libbase_prefs.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libstorage.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libstorage.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libnet.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libnet.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgfx.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libgfx.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libmessage_center.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libviews.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libviews.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libevents_devices.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libcontent.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libcontent.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libv8.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libv8.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libdbus.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libskia.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libppapi_proxy.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libppapi_proxy.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libprinting.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libdomain_reliability.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libapp_list.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libmojo_common_lib.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libblink_web.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libblink_web.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgcm.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libmedia.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libmedia.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libbase_i18n.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libui_base.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libui_base.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libstorage_common.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libppapi_host.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libsessions_content.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libcc.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libcc.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libbase.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libbase.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libevents_base.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/liburl_matcher.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgin.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libcompositor.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libash.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libash.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libmojo_system_impl.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgtk2ui.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libgtk2ui.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libpolicy_component.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libpolicy_component.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libsql.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libblink_platform.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libdevice_bluetooth.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libdevice_bluetooth.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/liburl_lib.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libcrcrypto.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libcrcrypto.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libaura.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libipc.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libipc.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libsync_core.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgpu.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libgpu.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgesture_detection.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libevents.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libppapi_shared.so)
./chrome: /lib/libc.so.6: version `GLIBC_2.9' not found (required by /usr/lib/libgio-2.0.so.0)
./chrome: /lib/libc.so.6: version `GLIBC_2.9' not found (required by /lib/libglib-2.0.so.0)
./chrome: /lib/libc.so.6: version `GLIBC_2.11' not found (required by /usr/lib/libcairo.so.2)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libcc_surfaces.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libcc_surfaces.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libdevice_battery.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libdevice_battery.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libwebkit_gpu.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgl_wrapper.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libmedia_blink.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgpu_blink.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libipc_mojo.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgles2_utils.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgles2_implementation.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libgles2_implementation.so)
./chrome: /lib/libc.so.6: version `GLIBC_2.10' not found (required by /lib/libdbus-1.so.3)
./chrome: /lib/libc.so.6: version `GLIBC_2.11' not found (required by /usr/lib/libfreetype.so.6)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libwtf_unittest_helpers.so)
./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgl_in_process_context.so)
./chrome: /lib/libresolv.so.2: version `GLIBC_2.9' not found (required by /usr/lib/libkrb5.so.3)
更新 - 在带有 linux 3.0.8 armv7l 目标的 mini210s 上安装
当我尝试这个时:
# LD_PRELOAD=/lib/libc-2.13.so;/lib/libresolv-2.13.so ./chrome -v
Segmentation fault
如何获得有关此分段错误原因的更多信息?
$ file ./chrome
./chrome: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, not stripped
我如何知道这个编译文件是否应该在我的带有 linuc 3.0.8 armv7l 的 SBC 上运行?
还询问了铬开发组
更新尝试在 BeagleBone Black 上安装
root@beaglebone:~/chromium# uname -a
Linux beaglebone 3.8.13-bone67 #1 SMP Wed Sep 24 21:30:03 UTC 2014 armv7l GNU/Linux
我遇到了同样的分段错误
root@beaglebone:~/chromium# ./chrome
Segmentation fault
确定文件类型
root@beaglebone:~/chromium# file chrome
chrome: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0x99f2a5210e0831419cf2bb4c9c64839cf03673f4, not stripped
答案1
为了解决这个libattr.so.1: cannot open shared object file: No such file or directory
问题,我下载了armhf
该库的一个版本这里并安装在我的 SBC 上,但我仍然遇到 SEGFAULT 问题