
air-hid-usb - issue #7
getDeviceList fails on Mac : missing hid_enumerateA in the .ane
Hi guys,
Awsome extension !!! :) However I still get an error with Mac ane : the getDeviceList function fails, it looks like it does not find some methods into the ane : hid_enumerateA (?)
What steps will reproduce the problem?
- add the mac ane + swc into the project
- use the sample code previously given for getting a list of devices, foar example : var manager:IHIDManager = HIDFactory.getHIDManager(); var deviceList:Array = manager.getDeviceList();
- when your code execution comes to getDeviceList() you get this error :
ArgumentError: Error #3500: The extension context does not have a method with the name hid_enumerateA. at flash.external::ExtensionContext/_call() at flash.external::ExtensionContext/call() at Hid/hid_enumerate() at HIDManager/getDeviceList()
It happens with the latest downloadable files 1.0.3, and Flex 4.6 with Flash Builder. I tried with Air 3.1 / Air 3.2 / Air 3.5 ==> all of them work well with the Windows' ane, not the Mac one sadly...
Thanks for this awsome library, just missing some device event handling for now ;-)
JB
Comment #1
Posted on Nov 26, 2012 by Helpful DogHave you tried demo application from package?
Comment #2
Posted on Nov 26, 2012 by Grumpy CamelAbsolutely, the demo app runs very well... but the sample code run from FB fails with Mac OS X.
==> The exact same FB project runs like a charm under Windows 7 - same FB 4.6, same AIR version, and the Window's ANE of course...
There's something wrong with the mac ANE upon compilation.
Although, into the Flash Builder IDE I can see one difference between the 2 ane : in the Referenced Libraries left menu, the ane file shows 3 packages under Windows, and only 2 ones with Mac OS X. The Mac OSX ane misses the mx package compared to the Windows one... See attached screenshot.
Hopefully this is something helpfull / relevant ?
- Capture.png 27.54KB
Comment #3
Posted on Nov 27, 2012 by Helpful Dogi'm using this extension in other project and it works flawlessly. So the most probable reasons are: 1. extension is not added to the ane tab @ compiler options OR windows ane is added mistakenly. Check installation folder (probably mac has different path) META-INF\AIR\extensions\com.hidapi.Hid\META-INF\ANE it should contain mac version of extension. 2. exetendedDesktop profile is not set or native installer is not used.
Comment #4
Posted on Nov 27, 2012 by Grumpy CamelOk, all the settings are good : right ane file, etc. But good catch about exetendedDesktop profile : in fact, testing the application from within Flash Builder and ADL fails... but once the project fully built+signed as native installer it works.
Then I presume on Mac there's an issue with adl that does not mimick well a native application !?
Thanx ! looks like we know the fix now !?
Comment #5
Posted on Nov 27, 2012 by Helpful Dogsee http://forums.adobe.com/message/4869042 i did not use FB on Mac so i can't help you in this case.
Comment #6
Posted on Nov 27, 2012 by Helpful Dog(No comment was entered for this change.)
Comment #7
Posted on Nov 27, 2012 by Helpful Dog(No comment was entered for this change.)
Comment #8
Posted on Nov 28, 2012 by Helpful Dog(No comment was entered for this change.)
Status: Invalid
Labels:
Type-Other
Priority-Medium
OpSys-OSX