构建 nativeClient 插件时未在此范围内声明 postMessage 错误
当我尝试使用 .\scons 构建插件模块时,它引发了错误。什么可能导致这些类型的错误......?错误是
postMessage() was not declared in this scope.
我使用pepper_16版本。这是我安装Python并给出所需路径的过程
- (安装在D驱动器中,因为我没有权限)。
下载了在安装 python 的同一文件夹中提取的 nacl_sdk.zip,并使用 nacl_sdk.bat 更新更新了工具
启用 NativeClient 表单 about:flags 窗口并使用 httpd.py 文件执行服务器。
并使用 init_project 在 Pepper_16/examples/TestApp 中创建项目。
按照入门教程中的方式编写代码进行测试。
然后在我尝试构建的cmd模式下的同一项目文件夹中使用./scons 当我拥有管理员权限时,上述过程对我来说效果很好。但相同的过程和相同的代码在我没有管理员权限的情况下不起作用。
如果需要更多详细信息,请告诉我。
When I am trying to build the plugin module using .\scons it is raising me errors. What might cause these types of errors...? Error is
postMessage() was not declared in this scope.
I am using pepper_16 version. Here is the procee I did
Installed Python and gave the path required(Installed in D drive as I do not have privileges).
Downloaded nacl_sdk.zip extracted in the same folder where I have installed python and updated the tools with nacl_sdk.bat update
Enabled NativeClient form about:flags window and executed the server using httpd.py file.
And created project in Pepper_16/examples/TestApp using init_project.
Written the code as it is in the Getting started tutorial to test.
Then using ./scons in the same project folder in cmd mode I have tried to build
The above process worked fine for me where I have admin privileges. But the same procedure and same code not working where I do not have admin privileges.
Please let me know if any further details are required.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正在编译哪个源文件?对错误消息周围的输出进行较长的剪切粘贴将有助于提供上下文。
另外,当你说插件模块时,你指的是 NaCl 本身还是你自己的 PPAPI 插件?通常 NaCl 的插件是使用 gyp 内置到 Chromium 中的,虽然 scons 可用于构建 NaCl 插件,但它通常仅用于测试,通过 chrome 的 --register-pepper-plugin 命令行参数。
which source file was being compiled? a lengthier cut-n-paste of the output around the error message would help to give context.
also, when you say the plugin module, are you referring to NaCl itself or your own PPAPI plugin? normally NaCl's plugin is built into Chromium using gyp, and while scons can be used to build the NaCl plugin it is typically only used for testing, via the --register-pepper-plugin command line argument to chrome.