在 ARM 上运行 Chromium - 无法加载 NSS 库

在 ARM 上运行 Chromium - 无法加载 NSS 库

目标:FriendlyARM mini210s / Linux 3.0.8 armv7l

为 ARM 使用交叉编译这个工作流程

在目标上安装sysroot并尝试运行 Chrome

# ./chrome
[0122/142305:ERROR:nss_util.cc(981)] Failed to load NSS libraries.
[0122/142305:FATAL:nacl_helper_linux.cc(482)] Check failed: is_init_process == nacl_sandbox->layer_one_enabled() (0 vs. 1)
[1227:1227:0122/142305:ERROR:nacl_fork_delegate_linux.cc(296)] Bad NaCl helper startup ack (0 bytes)
[1227:1227:0122/142305:ERROR:nss_util.cc(981)] Failed to load NSS libraries.
[1225:1225:0122/142306:ERROR:browser_main_loop.cc(216)] Gtk: Locale not supported by C library.
        Using the fallback 'C' locale.
[1225:1225:0122/142306:ERROR:browser_main_loop.cc(216)] Gtk: cannot open display: 

检查 NSS 库

ln -s /usr/lib/arm-linux-gnueabihf/nss/ /usr/lib/nss

ldconfig

[root@FriendlyARM Release]# ldconfig -v | grep nss
        libnss_nisplus.so.2 -> libnss_nisplus.so.2
        libnss_nis.so.2 -> libnss_nis.so.2
        libnss_hesiod.so.2 -> libnss_hesiod.so.2
        libnss_files.so.2 -> libnss_files.so.2
        libnss_dns.so.2 -> libnss_dns.so.2
        libnss_compat.so.2 -> libnss_compat.so.2
        libnssutil3.so -> libnssutil3.so
        libnss_nisplus.so.2 -> libnss_nisplus.so
        libnss_nis.so.2 -> libnss_nis.so
        libnss_hesiod.so.2 -> libnss_hesiod.so
        libnss_files.so.2 -> libnss_files.so
        libnss_dns.so.2 -> libnss_dns.so
        libnss_compat.so.2 -> libnss_compat.so
        libnss3.so -> libnss3.so
        libgnutls-openssl.so.27 -> libgnutls-openssl.so.27.0.0
        libnss_files.so.2 -> libnss_files-2.11.so
        libnss_compat.so.2 -> libnss_compat-2.11.so
        libnss_nis.so.2 -> libnss_nis-2.11.so
        libnss_nisplus.so.2 -> libnss_nisplus-2.11.so
        libnss_hesiod.so.2 -> libnss_hesiod-2.11.so
        libnss_dns.so.2 -> libnss_dns-2.11.so
        libnss_db.so.2 -> libnss_db.so.2

更新:RUNNING_ON_VALGRIND=1

[root@FriendlyARM Release]# export RUNNING_ON_VALGRIND=1

氯化钠问题消失了……但我不确定它的用途

[root@FriendlyARM Release]# ./chrome
[1298:1298:0122/184252:ERROR:nss_util.cc(981)] Failed to load NSS libraries.
[1296:1296:0122/184252:ERROR:browser_main_loop.cc(216)] Gtk: Locale not supported by C library.
        Using the fallback 'C' locale.
[1296:1296:0122/184252:ERROR:browser_main_loop.cc(216)] Gtk: cannot open display: 

相关内容