简体   繁体   English

无法在电视模拟器或真实电视上运行Samsung Tizen NaCl应用程序

[英]Cannot run Samsung Tizen NaCl application on tv emulator or real tv

I am developing a NaCl (Native Client) application for Samsung Tizen TV. 我正在为三星Tizen TV开发NaCl(本机客户端)应用程序。

I currently cannot upload and run any application on neither an emulator nor a real Samsung Tizen TV. 我目前无法在模拟器或真实的Samsung Tizen TV上上传和运行任何应用程序。

Even if I try the sample HelloWorld NaCl application that comes with TizenStudio I still cannot run it on neither the emulator nor the real Samsung Tizen TV. 即使我尝试了TizenStudio附带的示例HelloWorld NaCl应用程序,我仍然不能在模拟器或真正的Samsung Tizen TV上运行它。

Here is what I get in the console log. 这是控制台日志中显示的内容。 It is the same error regardless whether I use the Emulator or TV. 无论使用仿真器还是电视,都是相同的错误。

IsRootCmd Uploading widget...Success! install 2UUkJWiVk2.helloworld package_path /home/owner/share/tmp/sdk_tools/tmp/helloworld.wgt was_install_app return WAS_TRUE app_id[2UUkJWiVk2.helloworld] install start app_id[2UUkJWiVk2.helloworld] installing[8] app_id[2UUkJWiVk2.helloworld] installing[11] app_id[2UUkJWiVk2.helloworld] installing[14] app_id[2UUkJWiVk2.helloworld] installing[17] app_id[2UUkJWiVk2.helloworld] installing[20] app_id[2UUkJWiVk2.helloworld] installing[22] app_id[2UUkJWiVk2.helloworld] install failed[118] spend time for wascmd is [527]ms cmd_ret:0

CannotRunOnEmulator

It seems I am able to upload the application on the Emulator (or real tv) but when it tries to run the application it gets an error. 看来我可以在模拟器(或真实的电视)上上传应用程序,但是当它尝试运行该应用程序时会出现错误。

TizenStudio does not report any more errors. TizenStudio不再报告任何错误。 It just says 'Launching helloworld' has encountered a problem. 它只是说“启动helloworld”遇到了问题。 Error during launch. 启动期间出错。 Widget installation failed ! 小部件安装失败!

I am using TizenStudio ver 2.0 我正在使用TizenStudio ver 2.0

Here is how I am creating my sample NaCl application 这是我创建示例NaCl应用程序的方式

File -> New -> Other... -> Tizen -> Samsung TV -> Tizen NaCl App (C/C++) 文件->新建->其他...-> Tizen->三星电视-> Tizen NaCl App(C / C ++)

Then I type in a name for the project and click "next". 然后,我输入项目的名称,然后单击“下一步”。 On the following page I select "Example projects", I choose the "hello_world_cpp" sample and click "Finish" to create the project. 在下一页上,选择“示例项目”,然后选择“ hello_world_cpp”示例,然后单击“完成”以创建项目。

I was able to get the NaCl helloworld sample to install and work on the emulator and real TV before. 我能够获得NaCl helloworld示例,然后才能在模拟器和真实电视上进行安装和工作。 But a week later I cannot install anything on neither my emulator nor my TV. 但是一周后,我既无法在模拟器上也无法在电视上安装任何东西。 I get the error described above. 我收到上述错误。

I don't know what is causing the problem. 我不知道是什么引起了问题。

I also deleted and recreated new certificates as instructed on this page: 我还按照此页面上的说明删除并重新创建了新证书:

http://developer.samsung.com/tv/develop/getting-started/setting-up-sdk/creating-certificates http://developer.samsung.com/tv/develop/getting-started/setting-up-sdk/creating-certificates

But that did not help. 但这没有帮助。 To note the last step on that page "Permit to install applications" cannot be performed. 要注意该页面上的最后一步,无法执行“允许安装应用程序”。 There is no device filesystem for me to right-click on. 没有设备文件系统可供我右键单击。

To note also, I can run the application in a chrome browser. 还要注意,我可以在Chrome浏览器中运行该应用程序。 I can do "Run as" -> "Webpage in chrome" and that works. 我可以执行“运行方式”->“ Chrome浏览器中的网页”,并且可以正常运行。

But when I run on a TV emulator or real TV with "Run as" -> "Widget on a Tizen device", that does not work and I get the error described above. 但是,当我在电视模拟器或真实电视上使用“运行方式”->“ Tizen设备上的小部件”运行时,该方法不起作用,并且出现上述错误。

I would appreciate if anyone has any pointers about how I can debug this problem or what I can try. 如果有人对如何调试此问题或可以尝试的方法有任何建议,我将不胜感激。

I was finally able to get my helloworld NaCl application to be deployed on the Tv or Tv Emulator. 我终于能够将helloworld NaCl应用程序部署在电视或电视模拟器上。

I had to create a Tizen certificate (not a samsung certificate). 我必须创建Tizen证书(而不是三星证书)。

The instructions found on this page are wrong as they instruct you to create a samsung certificate: 此页面上的指示错误,因为它们指示您创建三星证书:

http://developer.samsung.com/tv/develop/getting-started/setting-up-sdk/creating-certificates http://developer.samsung.com/tv/develop/getting-started/setting-up-sdk/creating-certificates

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM