Note that there are some explanatory texts on larger screens.

plurals
  1. POarduino ADK + android LED blink example compiling errors
    primarykey
    data
    text
    <p>I'm trying to make a project using the arduino ADK board <a href="http://arduino.cc/en/Main/ArduinoBoardADK" rel="nofollow">http://arduino.cc/en/Main/ArduinoBoardADK</a> and a Sony Ericsson Xperia Play running android 2.3.4. For starters all I want to do is blink a led from my android device, using the nice tutorial found here <a href="http://allaboutee.com/2011/12/31/arduino-adk-board-blink-an-led-with-your-phone-code-and-explanation/" rel="nofollow">http://allaboutee.com/2011/12/31/arduino-adk-board-blink-an-led-with-your-phone-code-and-explanation/</a> .I managed to compile the android app but I'm having big difficulties on the arduino sketch, I can't resolve the imports and it won't compile on Windows7. I understand there are some arduino IDE version issues. I tried compiling both on 0022, 0023 and on 1.0. The furthest I could go with the code I was getting these compile errors after editing the <code>AndroidAccessory.h</code>:</p> <pre><code>D:\arduino-0023\libraries\AndroidAccessory/AndroidAccessory.h:37: error: 'EP_RECORD' does not name a type D:\arduino-0023\libraries\AndroidAccessory/AndroidAccessory.h:50: error: 'EP_RECORD' has not been declared D:\arduino-0023\libraries\AndroidAccessory/AndroidAccessory.h:50: error: 'EP_RECORD' has not been declared D:\arduino-0023\libraries\AndroidAccessory/AndroidAccessory.h:64: error: 'USB_NAK_LIMIT' was not declared in this scope </code></pre> <p>I think I read the whole documentation and I can't find a solution to my problem. Setting this up is such a pain... I really need to make this work. Thank you in advance! :)</p> <p><strong>---------------------------------------------------------------------------------------------------------------------------</strong></p> <p><strong>EDIT1: The solution which worked for me was to compile the sketch on Linux (Ubuntu)</strong></p> <p><strong>---------------------------------------------------------------------------------------------------------------------------</strong></p> <p><strong>EDIT2: Once again using the newest USB library from <a href="http://labs.arduino.cc/ADK/GettingStarted" rel="nofollow">arduino website</a> the code DOESN'T compile.</strong> I tried compiling on IDE v22 and v1.0.2 running both Windows 8 and Ubuntu 12.10 with the following errrors:</p> <pre><code>E:\Development\arduino-1.0.2\libraries\UsbHost/AndroidAccessory.h: In function 'void setup()': E:\Development\arduino-1.0.2\libraries\UsbHost/AndroidAccessory.h:68: error: 'void AndroidAccessory::powerOn()' is private sketch_jan10a:16: error: within this context E:\Development\arduino-1.0.2\libraries\UsbHost/AndroidAccessory.h: In function 'void loop()': E:\Development\arduino-1.0.2\libraries\UsbHost/AndroidAccessory.h:66: error: 'int AndroidAccessory::read(void*, int, unsigned int)' is private sketch_jan10a:23: error: within this context </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload