Adobe原始扩展 - 不工作? [英] Adobe Native Extensions -- not working?

查看:162
本文介绍了Adobe原始扩展 - 不工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用的Adobe原生扩展的工作 - 发布在Adobe Flash Builder中4.5的最新功能之一。我试图实现的是以下几点: - Adob​​e AIR和Windows 7上用的Adobe本机扩展的帮助下本地C ++应用程序之间的沟通! (当然,我们今天这个做的NativeProcess API,但是,ANE是更强大的)

I am trying to work with "Adobe Native Extensions" -- one of the newest features released in Adobe Flash Builder 4.5. What I am trying to achieve is the following: -- Communicate between Adobe AIR and a native C++ application on windows 7 with the help of Adobe Native extensions !! (Of course, we can do this today with NativeProcess APIs, but ANE is much more powerful)

我也跟着在下面的文章中提到的步骤: http://thingsico.de/blog/tag/native-extensions/

I followed the steps mentioned in the following article: http://thingsico.de/blog/tag/native-extensions/

    使用Cygwin来编译C ++ code(集成在FlashRuntimeExtensions.h和FlashRuntimeExtensions.lib编译过程中)
  1. 创建示例DLL
  2. 在建sampleANE使用下面的命令行。 C:\ Program Files文件(x86)的\的Adobe \的Adobe Flash Builder 4.5中\的SDK \ Air3.0_flex4.5.1 \ BIN \ ADT-package -storetype PKCS12 -keystore证书\ vlabCert.p12-target烷TestSampleANE.ane 斌\ extension.xml的-swc的bin \ SampleAne.swc-tsa没有-platform的Windows 86 -C斌。
  1. created the sample dll using cygwin to compile the C++ code (integrated the FlashRuntimeExtensions.h and FlashRuntimeExtensions.lib during compilation)
  2. built the sampleANE using the following command line. "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\Air3.0_flex4.5.1\bin\adt" -package -storetype pkcs12 -keystore "certs\vlabCert.p12" -target ane "TestSampleANE.ane" "bin\extension.xml" -swc "bin\SampleAne.swc" -tsa none -platform Windows-x86 -C "bin" .

我在这里遇到了一个小问题w.r.t.时间戳,我用导航addeing-tsa无上面的命令。我是能够成功地生成HelloAne.ane。

I faced a small problem here w.r.t. timestamp, which I navigated by addeing "-tsa none" to the above command. I was able to successfully generate the HelloAne.ane.

  1. 在我创建了一个新的样本Flex项目,并列入了TestSampleAne.ane和SampleAne.swc在项目的lib文件。我能够成功地访问了SampleAne对象,以及其公共职能的动作code,并能成功地编译应用程序。但是,当我尝试启动应用程序,它给了我下面的错误:

进程终止而没有建立连接调试器。

Process terminated without establishing connection to debugger.

不支持原生扩展简介

启动命令的详细信息:C:\ Program Files文件(x86)的\的Adobe \的Adobe Flash Builder 4.5中\的SDK \ Air3.0_flex4.5.1 \ BIN \ adl.exe-runtimeC:\ Program Files文件(x86)的\的Adobe \的Adobe Flash Builder 4.5中\的SDK \ Air3.0_flex4.5.1 \运行时间\空调\双赢E:\ ANE \ SampleAirProject \ BIN调试\ SampleAirProject-app.xml的E:\ ANE \ SampleAirProject \ BIN-调试。

Launch command details: "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\Air3.0_flex4.5.1\bin\adl.exe" -runtime "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\Air3.0_flex4.5.1\runtimes\air\win" E:\ANE\SampleAirProject\bin-debug\SampleAirProject-app.xml E:\ANE\SampleAirProject\bin-debug

起初,我认为这个问题是由于我在使用Flash Builder 4.5,而不是4.5.1(这是Adobe建议与ANE工作)的事实。所以,我下载了补丁和升级它。我甚至查,我有AIR 3.0运行时我的机器上。但即使如此,这个问题仍然是相同的。我找不到任何解决方案的净上面的错误,并一直停留在这过去的2天。任何帮助在这方面将是真正伟大。如果需要,我可以在源文件发送。

At first, I thought that the problem is due to the fact that I was using flash builder 4.5, and not 4.5.1 (which is what Adobe recommends for working with ANE). So, I downloaded the patch and upgraded it. I even checked that I have AIR 3.0 runtime on my machine. But even then the problem remains the same. I could not find any solution to the above error on net, and have been stuck on this for past 2 days. Any help in this regard would be really great. If required, I can send across the source files.

谢谢, 卡皮尔

推荐答案

我有过类似的困难和使用adl.exe在命令行中运行时,发现了同样的问题,甚至。然而,我发现加入 -profile extendedDesktop 固定它。经过多一点调查,我发现,如果我下添加到我的应用程序描述XML文件,这一切都按预期工作:

I have had similar difficulties and found the same problem even when running from the command line using adl.exe. However, I have discovered that adding -profile extendedDesktop fixed it. After a bit more investigation, I discovered that if I add the following to my application descriptor XML file, it all works as expected:

<supportedProfiles>extendedDesktop</supportedProfiles>

这篇关于Adobe原始扩展 - 不工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆