Search code examples
linuxgoogle-chromegoogle-chrome-appgoogle-nativeclient

How to use the Nacl module compiled by linux Toolchain in Html


I run the "make TOOLCHAIN=linux" for the messaging example located under examples/api directory.other toolchains like pnacl,newlib,glibc are working properly.for linux toolchain it generates .so file,nmf is not automatically generated,so i created using CREATE_NMF command.when i change the HTML for linux toolchain like

    <body data-name='messaging' data-tools='linux' data-configs='Release' data-path='{tc}/{config}>

error like "This plugin is not supported".i dont know whether it is possible in this way.whether we can access .so like nexe/pexe.i only supposed to use linux toolchain because i am using "alsa/asoundlib.h" which is available only in linux and chrome os platform.finaly anyone tell how to access that .so file in html.


Solution

  • You can run the messaging sample with the linux (native) toolchain by invoking: TOOLCHAIN=linux make run

    Please note, native toolchain support is only provided as a debugging aid. Shipping applications need to be built with a nacl or pnacl toolchain. When you run as described above, the browser is launched with command-line options to allow your .so to be loaded as a trusted ppapi plugin.