Google Chrome、本机客户端支持和开发
我想编写一个小型 C++ 应用程序并使用本机客户端 API 在 chrome 上运行它。
不过我有几个问题: 1)我在Ubuntu上编译了示例并在firefox上运行了代码,但无法在chrome上运行它(使用版本5.0.342.7 beta) 我需要安装什么东西吗?扩展/插件?
2) 我找不到可以运行的在线应用程序?链接任何人,我想看看这个东西的强大之处,而不必在本地编译代码。
感谢您的帮助,
-hbt
PS: 我不知道提出多个问题的政策是什么。如果有问题,请告诉我,我将创建多个线程。
更多详情: 已经阅读了文档 http://code.google.com/p/nativeclient/wiki/NativeClientInGoogleChrome
从命令行使用 --enable-nac 运行,出现此错误
.mozilla/plugins/sel_ldr_bin.trace: 无法动态加载
我已经构建并安装的可执行文件 sel_ldr ./scons -c --mode=opt-linux sel_ldr ./scons -c --mode=nacl ./scons run_all_tests ./scons --mode=opt-linux npGoogleNaClPlugin ./scons --verbose firefox_install
在 Firefox 中工作!不在 chrome 中
双重检查:chrome 中的插件 本机客户端插件已启用并指向 .mozilla/plugins/libnpGoogleNaClPlugin.so
请告知
谢谢
I would like to write a small C++ app and run it on chrome using the native client API.
I have a few questions though:
1) I compiled the examples on Ubuntu and ran the code on firefox but can't run it on chrome (using version 5.0.342.7 beta)
Do I need to install something? An extension/plugin?
2) I can't find a single online application I could run? Links anyone, I want to see the power of this thing without having to compile the code locally.
Thanks for your help,
-hbt
PS:
I don't know what's the policy with asking multiple questions. If it's a problem, let me know and I will create multiple threads.
More details:
Already read doc at
http://code.google.com/p/nativeclient/wiki/NativeClientInGoogleChrome
Running with --enable-nac from the command line and I have this error
.mozilla/plugins/sel_ldr_bin.trace: cannot dynamically load executable
I already built and installed sel_ldr
./scons -c --mode=opt-linux sel_ldr
./scons -c --mode=nacl
./scons run_all_tests
./scons --mode=opt-linux npGoogleNaClPlugin
./scons --verbose firefox_install
Works in firefox! not in chrome
Double checked about:plugins in chrome
Native Client Plugin is enabled and pointing to
.mozilla/plugins/libnpGoogleNaClPlugin.so
Please advise
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否使用以下参数 --enable-nac 启动 Chromium。
Did you launch Chromium with the following parameter --enable-nac.
1) 现在不支持Firefox(也许将来会再次支持)。看来您没有使用最新的SDK。
2) 您需要使用更新的 Chrome 浏览器(是的 Chrome 现在也运行 nativeclient 模块)。在Ubuntu中,您可以使用google存储库进行测试
,开发通道中的chrome包名为“google-chrome-unstable”。有关google linux存储库的更多信息,请参阅:www.google.com/linuxrepositories/
3) Native Client的SDK分为nativeclient-sdk。它很容易使用。以下是指南:http://code.google.com/p/nativeclient -sdk/wiki/HowTo_GetStarted
玩得开心!
1) Firefox is not supported now(maybe in the future it will be supported again). It seems that you are not using the latest SDK.
2) You need to use newer Chrome browser(yes Chrome is running nativeclient module now as well). In Ubuntu, you may use the google repository for testing
and the package of the chrome in dev channel is named 'google-chrome-unstable'. For more information of google linux repository, refer to: www.google.com/linuxrepositories/
3) Native Client's SDK is separated into nativeclient-sdk. It's easy to use. Here is the guide: http://code.google.com/p/nativeclient-sdk/wiki/HowTo_GetStarted
Have Fun!