Problem on build and run native client on Chrome/Moblin environment

15 views
Skip to first unread message

Zhiguo Ge

unread,
Nov 1, 2009, 9:28:34 PM11/1/09
to native-cli...@googlegroups.com, brad...@google.com
Hi, I am trying to run test native client in Chrome under moblin system(linux).
I performed the steps in http://nativeclient.googlecode.com/svn/trunk/src/native_client/documentation/getting_started.html including

./scons --prebuilt firefox_install
python tools/httpd.py

But the following error always happens when I run the test examples such as earth, life etc:
"ERROR: The Native Client plugin was unable to load" .

I inspected the terminal that starts Chrome, and found the following information:

[840:840:4304954689:ERROR:/b/slave/chromium-linux-reliability/build/src/chrome/app/chrome_dll_main.cc(203)] Gtk: gtk_widget_get_toplevel: assertion `GTK_IS_WIDGET (widget)' failed
@@@ NPAPI PLUGIN NPP_GetValue
@@@ NPAPI PLUGIN NPP_GetValue
[840:842:4313134517:ERROR:/b/slave/chromium-linux-reliability/build/src/base/native_library_linux.cc(24)] dlopen failed when trying to open /home/gezhiguo/.mozilla/plugins/sel_ldr_bin.trace: /home/gezhiguo/.mozilla/plugins/sel_ldr_bin.trace: cannot dynamically load executable
[840:842:4313144460:ERROR:/b/slave/chromium-linux-reliability/build/src/base/native_library_linux.cc(24)] dlopen failed when trying to open /home/gezhiguo/.mozilla/plugins/sel_ldr_bin: /home/gezhiguo/.mozilla/plugins/sel_ldr_bin: cannot dynamically load executable

Can anyone give help on this?

Thanks!




Bennet Yee (余仕斌)

unread,
Nov 2, 2009, 1:51:04 PM11/2/09
to native-cli...@googlegroups.com, brad...@google.com
hi zhiguo,

we don't have a moblin system -- we've never tried to build w/ it.

it sounds like the problem is with shared libraries used by the
prebuilt outer sandbox. could you please run the commands

ldd ~/.mozilla/plugins/sel_ldr_bin.trace
ldd ~/.mozilla/plugins/sel_ldr_bin

and send us the output? it may be just that we need to "apt-get
install" a few missing libraries. (is your moblin installation a
64-bit or 32-bit one?)

-bsy
--
bennet s yee
i usually don't capitalize due to mild tendonitis

Zhiguo Ge

unread,
Nov 2, 2009, 8:24:03 PM11/2/09
to native-cli...@googlegroups.com, brad...@google.com
Hi, Bennet,
Thanks for your reply. The followings are the information:

[gezhiguo@gezhiguo-desktop ~]$ ldd ~/.mozilla/plugins/sel_ldr_bin.trace
    linux-gate.so.1 =>  (0xb7762000)
    librt.so.1 => /lib/librt.so.1 (0xb774b000)
    libpthread.so.0 => /lib/libpthread.so.0 (0xb7731000)
    libssl.so.0.9.8 => /lib/libssl.so.0.9.8 (0xb76e5000)
    libcrypto.so.0.9.8 => /lib/libcrypto.so.0.9.8 (0xb7577000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0636b000)
    libm.so.6 => /lib/libm.so.6 (0xb754e000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0635c000)
    libc.so.6 => /lib/libc.so.6 (0xb73d5000)
    /lib/ld-linux.so.2 (0xb7763000)
    libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x06654000)
    libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x0673e000)
    libdl.so.2 => /lib/libdl.so.2 (0xb73cf000)
    libz.so.1 => /lib/libz.so.1 (0x007d5000)
    libcom_err.so.2 => /lib/libcom_err.so.2 (0x0647d000)
    libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x06733000)
    libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x0672d000)
    libresolv.so.2 => /lib/libresolv.so.2 (0xb73b7000)
[gezhiguo@gezhiguo-desktop ~]$ ldd ~/.mozilla/plugins/sel_ldr_bin
/home/gezhiguo/.mozilla/plugins/sel_ldr_bin: /lib/libcrypto.so.0.9.8: no version information available (required by /home/gezhiguo/.mozilla/plugins/sel_ldr_bin)
    linux-gate.so.1 =>  (0xb78d6000)
    librt.so.1 => /lib/librt.so.1 (0xb78bf000)
    libpthread.so.0 => /lib/libpthread.so.0 (0xb78a5000)
    libssl.so.0.9.8 => /lib/libssl.so.0.9.8 (0xb7859000)
    libcrypto.so.0.9.8 => /lib/libcrypto.so.0.9.8 (0xb76eb000)
    libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x009d1000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0636b000)
    libm.so.6 => /lib/libm.so.6 (0xb76c2000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0635c000)
    libc.so.6 => /lib/libc.so.6 (0xb7549000)
    /lib/ld-linux.so.2 (0xb78d7000)
    libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x06654000)
    libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x0673e000)
    libdl.so.2 => /lib/libdl.so.2 (0xb7543000)
    libz.so.1 => /lib/libz.so.1 (0x007d5000)
    libcom_err.so.2 => /lib/libcom_err.so.2 (0x0647d000)
    libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x06733000)
    libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x0672d000)
    libresolv.so.2 => /lib/libresolv.so.2 (0xb752b000)

Bennet Yee (余仕斌)

unread,
Nov 3, 2009, 6:38:42 PM11/3/09
to native-cli...@googlegroups.com
hi,
my guess is that this is the problem. though exactly what's going on,
i don't really know.

can you try running sel_ldr_bin via

/home/gezhiguo/.mozilla/plugins/sel_ldr_bin -?

and see if it'll output the flags help at all. if it won't, then it's
likely a shared library problem. if it does, maybe you could try
building some of the standalone tests, e.g., quake via make debug nacl
run in the tests/quake directory etc, and see if the basic
non-browser-side code works.

-bsy

Zhiguo Ge

unread,
Nov 4, 2009, 3:41:28 AM11/4/09
to native-cli...@googlegroups.com
It tried /home/gezhiguo/.mozilla/plugins/sel_ldr_bin -? and it works.
 
And then I compiled and ran /tests/quake, it works too.
 
Thanks!
Reply all
Reply to author
Forward
0 new messages