adafruit / Adafruit_CC3000_Library

Library code for Adafruit's CC3000 WiFi breakouts &c
http://www.adafruit.com/products/1469
Other
270 stars 153 forks source link

font const compile error #65

Closed prologic closed 10 years ago

prologic commented 10 years ago

I'm getting this error trying to compie the "Echo Server" example:

$ ino build
Robot_Control/glcdfont.c
/usr/share/arduino/libraries/Robot_Control/glcdfont.c:9:23: error: variable 'font' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
 static unsigned char  font[] PROGMEM = {
                       ^
make: *** [.build/pro328/Robot_Control/glcdfont.o] Error 1
Make failed with code 2
tdicola commented 10 years ago

From the compile error it looks like this is an issue with the Robot_Control library and not the CC3000 library. You might want to ping the folks that maintain Robot_Control to see if they are aware of the compile issue.

That said, are you on Debian or Ubuntu? I noticed similar errors in other libraries because the version of Arduino that apt-get installs uses a newer version of avr-gcc than what comes with the download from Arduino's website. Try downloading the IDE from Arduino's website, or modify the library code to add the const. You can actually see a small change to CC3000 examples I made for the same issue here: https://github.com/adafruit/Adafruit_CC3000_Library/pull/29

prologic commented 10 years ago

So I am using the following versions of things:

$ prt-get listinst arduino -v
arduino 1.0.5-1

prologic@daisy
Thu Apr 10 20:05:52
~
$ prt-get listinst avr-libc -v
avr-libc 1.8.0-1

prologic@daisy
Thu Apr 10 20:05:54
~
$ prt-get listinst avr-gcc -v
avr-gcc 4.8.2-1

I'm also just doing wifi. Not sure where or how the roboto controller comes into play.

Here's my seketch:

/***************************************************
  Adafruit CC3000 Breakout/Shield TCP Echo Server

  This is a simple implementation of the echo 
  protocol, RFC 862 http://tools.ietf.org/html/rfc862 , 
  for the Arduino platform and Adafruit CC3000 breakout
  or shield.  This sketch will create a TCP server that 
  listens by default on port 7 and echos back any data
  received.  Up to 3 clients can be connected concurrently
  to the server.  This sketch is meant as an example of how 
  to write a simple server with the Arduino and CC3000.

  See the CC3000 tutorial on Adafruit's learning system
  for more information on setting up and using the
  CC3000:
    http://learn.adafruit.com/adafruit-cc3000-wifi  

  Requirements:

  This sketch requires the Adafruit CC3000 library.  You can
  download the library from:
    https://github.com/adafruit/Adafruit_CC3000_Library

  For information on installing libraries in the Arduino IDE
  see this page:
    http://arduino.cc/en/Guide/Libraries

  Usage:

  Update the SSID and, if necessary, the CC3000 hardware pin 
  information below, then run the sketch and check the 
  output of the serial port.  After connecting to the 
  wireless network successfully the sketch will output 
  the IP address of the server and start listening for 
  connections.  Once listening for connections, connect
  to the server from your computer  using a telnet client
  on port 7.  

  For example on Linux or Mac OSX, if your CC3000 has an
  IP address 192.168.1.100 you would execute in a command
  window:

    telnet 192.168.1.100 7

  After connecting, notice that as you type input and 
  press enter to send it the CC3000 will echo back exactly
  what you typed.  Press ctrl-] and type quit at the prompt 
  to close the telnet session.

  On Windows you'll need to download a telnet client.  PuTTY 
  is a good, free GUI client: 
    http://www.chiark.greenend.org.uk/~sgtatham/putty/

  License:

  This example is copyright (c) 2013 Tony DiCola (tony@tonydicola.com)
  and is released under an open source MIT license.  See details at:
    http://opensource.org/licenses/MIT

  This code was adapted from Adafruit CC3000 library example 
  code which has the following license:

  Designed specifically to work with the Adafruit WiFi products:
  ----> https://www.adafruit.com/products/1469

  Adafruit invests time and resources providing this open source code, 
  please support Adafruit and open-source hardware by purchasing 
  products from Adafruit!

  Written by Limor Fried & Kevin Townsend for Adafruit Industries.  
  BSD license, all text above must be included in any redistribution      
 ****************************************************/
#include <Adafruit_CC3000.h>
#include <SPI.h>
#include "utility/debug.h"
#include "utility/socket.h"

// Pin definitions for the TinyCircuits WiFi TinyShield

// These are the interrupt and control pins
#define ADAFRUIT_CC3000_IRQ   2  // MUST be an interrupt pin!
#define ADAFRUIT_CC3000_VBAT  A3
#define ADAFRUIT_CC3000_CS    8

// Use hardware SPI for the remaining pins
// On an UNO, SCK = 13, MISO = 12, and MOSI = 11
Adafruit_CC3000 cc3000 = Adafruit_CC3000(ADAFRUIT_CC3000_CS, ADAFRUIT_CC3000_IRQ, ADAFRUIT_CC3000_VBAT,
                                         SPI_CLOCK_DIVIDER); // you can change this clock speed

#define WLAN_SSID       "dart"           // cannot be longer than 32 characters!
#define WLAN_PASS       ""
// Security can be WLAN_SEC_UNSEC, WLAN_SEC_WEP, WLAN_SEC_WPA or WLAN_SEC_WPA2
#define WLAN_SECURITY   WLAN_SEC_UNSEC

#define LISTEN_PORT           7    // What TCP port to listen on for connections.  The echo protocol uses port 7.

Adafruit_CC3000_Server echoServer(LISTEN_PORT);

void setup(void)
{
  Serial.begin(115200);
  Serial.println(F("Hello, CC3000!\n")); 

  Serial.print("Free RAM: "); Serial.println(getFreeRam(), DEC);

  /* Initialise the module */
  Serial.println(F("\nInitializing..."));
  if (!cc3000.begin())
  {
    Serial.println(F("Couldn't begin()! Check your wiring?"));
    while(1);
  }

  if (!cc3000.connectToAP(WLAN_SSID, WLAN_PASS, WLAN_SECURITY)) {
    Serial.println(F("Failed!"));
    while(1);
  }

  Serial.println(F("Connected!"));

  Serial.println(F("Request DHCP"));
  while (!cc3000.checkDHCP())
  {
    delay(100); // ToDo: Insert a DHCP timeout!
  }  

  /* Display the IP address DNS, Gateway, etc. */  
  while (! displayConnectionDetails()) {
    delay(1000);
  }

  /*********************************************************/
  /* You can safely remove this to save some flash memory! */
  /*********************************************************/
  Serial.println(F("\r\nNOTE: This sketch may cause problems with other sketches"));
  Serial.println(F("since the .disconnect() function is never called, so the"));
  Serial.println(F("AP may refuse connection requests from the CC3000 until a"));
  Serial.println(F("timeout period passes.  This is normal behaviour since"));
  Serial.println(F("there isn't an obvious moment to disconnect with a server.\r\n"));

  // Start listening for connections
  echoServer.begin();

  Serial.println(F("Listening for connections..."));
}

void loop(void)
{
  // Try to get a client which is connected.
  Adafruit_CC3000_ClientRef client = echoServer.available();
  if (client) {
     // Check if there is data available to read.
     if (client.available() > 0) {
       // Read a byte and write it to all clients.
       uint8_t ch = client.read();
       client.write(ch);
     }
  }
}

/**************************************************************************/
/*!
    @brief  Tries to read the IP address and other connection details
*/
/**************************************************************************/
bool displayConnectionDetails(void)
{
  uint32_t ipAddress, netmask, gateway, dhcpserv, dnsserv;

  if(!cc3000.getIPAddress(&ipAddress, &netmask, &gateway, &dhcpserv, &dnsserv))
  {
    Serial.println(F("Unable to retrieve the IP Address!\r\n"));
    return false;
  }
  else
  {
    Serial.print(F("\nIP Addr: ")); cc3000.printIPdotsRev(ipAddress);
    Serial.print(F("\nNetmask: ")); cc3000.printIPdotsRev(netmask);
    Serial.print(F("\nGateway: ")); cc3000.printIPdotsRev(gateway);
    Serial.print(F("\nDHCPsrv: ")); cc3000.printIPdotsRev(dhcpserv);
    Serial.print(F("\nDNSserv: ")); cc3000.printIPdotsRev(dnsserv);
    Serial.println();
    return true;
  }
}

This was taken from: https://learn.adafruit.com/adafruit-cc3000-wifi/overview

Also when I tried what you suggested by changing L9 of sudo vim /usr/share/arduino/libraries/Robot_Control/glcdfont.c to:

const static unsigned char  font[] PROGMEM = {

But then ends up with heaps more compile error:

$ ino build
Scanning dependencies of Robot_Control
Robot_Control/glcdfont.c
Robot_Control/ArduinoRobot.cpp
In file included from /usr/share/arduino/libraries/Robot_Control/Fat16.h:29:0,
                 from /usr/share/arduino/libraries/Robot_Control/SquawkSD.h:4,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.h:6,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:1:
/usr/share/arduino/libraries/Robot_Control/SdCard.h:126:15: error: redefinition of 'const uint8_t ACMD41'
 uint8_t const ACMD41   = 0X29;
               ^
In file included from /usr/share/arduino/libraries/Robot_Control/SdCard.h:26:0,
                 from /usr/share/arduino/libraries/Robot_Control/Fat16.h:29,
                 from /usr/share/arduino/libraries/Robot_Control/SquawkSD.h:4,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.h:6,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:1:
/usr/share/arduino/libraries/SD/utility/SdInfo.h:67:15: error: 'const uint8_t ACMD41' previously defined here
 uint8_t const ACMD41 = 0X29;
               ^
In file included from /usr/share/arduino/libraries/Robot_Control/Fat16.h:29:0,
                 from /usr/share/arduino/libraries/Robot_Control/SquawkSD.h:4,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.h:6,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:1:
/usr/share/arduino/libraries/Robot_Control/SdCard.h:128:15: error: redefinition of 'const uint8_t CMD0'
 uint8_t const CMD0     = 0X00;
               ^
In file included from /usr/share/arduino/libraries/Robot_Control/SdCard.h:26:0,
                 from /usr/share/arduino/libraries/Robot_Control/Fat16.h:29,
                 from /usr/share/arduino/libraries/Robot_Control/SquawkSD.h:4,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.h:6,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:1:
/usr/share/arduino/libraries/SD/utility/SdInfo.h:36:15: error: 'const uint8_t CMD0' previously defined here
 uint8_t const CMD0 = 0X00;
               ^
In file included from /usr/share/arduino/libraries/Robot_Control/Fat16.h:29:0,
                 from /usr/share/arduino/libraries/Robot_Control/SquawkSD.h:4,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.h:6,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:1:
/usr/share/arduino/libraries/Robot_Control/SdCard.h:130:15: error: redefinition of 'const uint8_t CMD9'
 uint8_t const CMD9     = 0X09;
               ^
In file included from /usr/share/arduino/libraries/Robot_Control/SdCard.h:26:0,
                 from /usr/share/arduino/libraries/Robot_Control/Fat16.h:29,
                 from /usr/share/arduino/libraries/Robot_Control/SquawkSD.h:4,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.h:6,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:1:
/usr/share/arduino/libraries/SD/utility/SdInfo.h:40:15: error: 'const uint8_t CMD9' previously defined here
 uint8_t const CMD9 = 0X09;
               ^
In file included from /usr/share/arduino/libraries/Robot_Control/Fat16.h:29:0,
                 from /usr/share/arduino/libraries/Robot_Control/SquawkSD.h:4,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.h:6,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:1:
/usr/share/arduino/libraries/Robot_Control/SdCard.h:132:15: error: redefinition of 'const uint8_t CMD10'
 uint8_t const CMD10    = 0X0A;
               ^
In file included from /usr/share/arduino/libraries/Robot_Control/SdCard.h:26:0,
                 from /usr/share/arduino/libraries/Robot_Control/Fat16.h:29,
                 from /usr/share/arduino/libraries/Robot_Control/SquawkSD.h:4,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.h:6,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:1:
/usr/share/arduino/libraries/SD/utility/SdInfo.h:42:15: error: 'const uint8_t CMD10' previously defined here
 uint8_t const CMD10 = 0X0A;
               ^
In file included from /usr/share/arduino/libraries/Robot_Control/Fat16.h:29:0,
                 from /usr/share/arduino/libraries/Robot_Control/SquawkSD.h:4,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.h:6,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:1:
/usr/share/arduino/libraries/Robot_Control/SdCard.h:134:15: error: redefinition of 'const uint8_t CMD13'
 uint8_t const CMD13    = 0X0D;
               ^
In file included from /usr/share/arduino/libraries/Robot_Control/SdCard.h:26:0,
                 from /usr/share/arduino/libraries/Robot_Control/Fat16.h:29,
                 from /usr/share/arduino/libraries/Robot_Control/SquawkSD.h:4,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.h:6,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:1:
/usr/share/arduino/libraries/SD/utility/SdInfo.h:44:15: error: 'const uint8_t CMD13' previously defined here
 uint8_t const CMD13 = 0X0D;
               ^
In file included from /usr/share/arduino/libraries/Robot_Control/Fat16.h:29:0,
                 from /usr/share/arduino/libraries/Robot_Control/SquawkSD.h:4,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.h:6,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:1:
/usr/share/arduino/libraries/Robot_Control/SdCard.h:136:15: error: redefinition of 'const uint8_t CMD17'
 uint8_t const CMD17    = 0X11;
               ^
In file included from /usr/share/arduino/libraries/Robot_Control/SdCard.h:26:0,
                 from /usr/share/arduino/libraries/Robot_Control/Fat16.h:29,
                 from /usr/share/arduino/libraries/Robot_Control/SquawkSD.h:4,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.h:6,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:1:
/usr/share/arduino/libraries/SD/utility/SdInfo.h:46:15: error: 'const uint8_t CMD17' previously defined here
 uint8_t const CMD17 = 0X11;
               ^
In file included from /usr/share/arduino/libraries/Robot_Control/Fat16.h:29:0,
                 from /usr/share/arduino/libraries/Robot_Control/SquawkSD.h:4,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.h:6,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:1:
/usr/share/arduino/libraries/Robot_Control/SdCard.h:138:15: error: redefinition of 'const uint8_t CMD24'
 uint8_t const CMD24    = 0X18;
               ^
In file included from /usr/share/arduino/libraries/Robot_Control/SdCard.h:26:0,
                 from /usr/share/arduino/libraries/Robot_Control/Fat16.h:29,
                 from /usr/share/arduino/libraries/Robot_Control/SquawkSD.h:4,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.h:6,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:1:
/usr/share/arduino/libraries/SD/utility/SdInfo.h:48:15: error: 'const uint8_t CMD24' previously defined here
 uint8_t const CMD24 = 0X18;
               ^
In file included from /usr/share/arduino/libraries/Robot_Control/Fat16.h:29:0,
                 from /usr/share/arduino/libraries/Robot_Control/SquawkSD.h:4,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.h:6,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:1:
/usr/share/arduino/libraries/Robot_Control/SdCard.h:140:15: error: redefinition of 'const uint8_t CMD55'
 uint8_t const CMD55    = 0X37;
               ^
In file included from /usr/share/arduino/libraries/Robot_Control/SdCard.h:26:0,
                 from /usr/share/arduino/libraries/Robot_Control/Fat16.h:29,
                 from /usr/share/arduino/libraries/Robot_Control/SquawkSD.h:4,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.h:6,
                 from /usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:1:
/usr/share/arduino/libraries/SD/utility/SdInfo.h:59:15: error: 'const uint8_t CMD55' previously defined here
 uint8_t const CMD55 = 0X37;
               ^
/usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp: In constructor 'RobotControl::RobotControl()':
/usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:8:42: error: 'LCD_CS' was not declared in this scope
 RobotControl::RobotControl():Arduino_LCD(LCD_CS,DC_LCD,RST_LCD){
                                          ^
/usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:8:49: error: 'DC_LCD' was not declared in this scope
 RobotControl::RobotControl():Arduino_LCD(LCD_CS,DC_LCD,RST_LCD){
                                                 ^
/usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:8:56: error: 'RST_LCD' was not declared in this scope
 RobotControl::RobotControl():Arduino_LCD(LCD_CS,DC_LCD,RST_LCD){
                                                        ^
/usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp: In member function 'void RobotControl::begin()':
/usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:18:21: error: 'MUXA' was not declared in this scope
  uint8_t MuxPins[]={MUXA,MUXB,MUXC,MUXD};
                     ^
/usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:18:26: error: 'MUXB' was not declared in this scope
  uint8_t MuxPins[]={MUXA,MUXB,MUXC,MUXD};
                          ^
/usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:18:31: error: 'MUXC' was not declared in this scope
  uint8_t MuxPins[]={MUXA,MUXB,MUXC,MUXD};
                               ^
/usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:18:36: error: 'MUXD' was not declared in this scope
  uint8_t MuxPins[]={MUXA,MUXB,MUXC,MUXD};
                                    ^
/usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:19:29: error: 'MUX_IN' was not declared in this scope
  Multiplexer::begin(MuxPins,MUX_IN,4);
                             ^
/usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:22:10: error: 'BUZZ' was not declared in this scope
  pinMode(BUZZ,OUTPUT);
          ^
/usr/share/arduino/libraries/Robot_Control/ArduinoRobot.cpp:25:2: error: 'Serial1' was not declared in this scope
  Serial1.begin(9600);
  ^
make: *** [.build/pro328/Robot_Control/ArduinoRobot.o] Error 1
Make failed with code 2
(wifi)
tdicola commented 10 years ago

Are you using the Arduino Robot as a platform? Something is adding the Robot_Control library to the sketch, perhaps Arduino includes it automatically if using that platform. The CC3000 library doesn't reference the Robot_Control library though.

Yeah the version of avr-gcc you have, 4.8, is higher than the version the Arduino team officially supports right now, 4.3. Unfortunately the later compiler version catches these errors and fails (the older compiler ignore them). Try downloading the Arduino IDE from Arduino's website and using that version. It looks like you're using the ino tool too, so you might need to configure it to use the version you download and not the one installed by your OS (it's been a while since I messed with ino, so you probably want to check their site for config details).

prologic commented 10 years ago

To clarify:

Do I download avr-gcc to 3.2? Or the Arduino software itself the libraries it ships with?

I'm not obviously implicitly including the Robot_Control anywhere so I'm not sure!

The platform is actually a pro328 compatible TinyDuino board from TinyCircuits.

cheers James

James Mills / prologic

E: prologic@shortcircuit.net.au W: prologic.shortcircuit.net.au

On Thu, Apr 10, 2014 at 8:19 PM, Tony DiCola notifications@github.comwrote:

Are you using the Arduino Robot as a platform? Something is adding the Robot_Control library to the sketch, perhaps Arduino includes it automatically if using that platform. The CC3000 library doesn't reference the Robot_Control library though.

Yeah the version of avr-gcc you have, 4.8, is higher than the version the Arduino team officially supports right now, 4.3. Unfortunately the later compiler version catches these errors and fails (the older compiler ignore them). Try downloading the Arduino IDE from Arduino's website and using that version. It looks like you're using the ino tool too, so you might need to configure it to use the version you download and not the one installed by your OS (it's been a while since I messed with ino, so you probably want to check their site for config details).

— Reply to this email directly or view it on GitHubhttps://github.com/adafruit/Adafruit_CC3000_Library/issues/65#issuecomment-40062689 .

tdicola commented 10 years ago

Grab the Arduino IDE, either 1.0.5 or 1.5.6: http://arduino.cc/en/Main/Software

prologic commented 10 years ago

Hmm I use a source based distro and in fact I'm maintaining my own avr* and arduino ports.

I'm guessing I should just downgrade avr-gcc to 4.3? Not sure what avr-libc version should accompny this though.

cheers James

James Mills / prologic

E: prologic@shortcircuit.net.au W: prologic.shortcircuit.net.au

On Thu, Apr 10, 2014 at 8:27 PM, Tony DiCola notifications@github.comwrote:

Grab the Arduino IDE, either 1.0.5 or 1.5.6: http://arduino.cc/en/Main/Software

— Reply to this email directly or view it on GitHubhttps://github.com/adafruit/Adafruit_CC3000_Library/issues/65#issuecomment-40063288 .

tdicola commented 10 years ago

Looks like these are the versions Arduino uses (from versions.txt in the hardware/tools/avr folder of 1.5.6 installed on mac os x): avarice: 2.8 avr-libc: 1.6.4 avrdude: 5.4-arduino binutils: 2.19 gcc-3: 3.4.6 gcc-4: 4.3.2 gdb: 6.8 libusb: 0.1.12 make: 3.81 simulavr: 0.1.2.5

prologic commented 10 years ago

Thank you :) This is most helpfuyl!

I'll try to match my ports to this!

Currently I have:

$ prt-get listinst -v | egrep "(avr|arduino|rxtx)"
arduino 1.0.5-1
avr-binutils 2.24-1
avr-gcc 4.8.2-1
avr-libc 1.8.0-1
avrdude 5.11-3
java-rxtx 2.2pre2-1

cheers James

James Mills / prologic

E: prologic@shortcircuit.net.au W: prologic.shortcircuit.net.au

On Thu, Apr 10, 2014 at 9:00 PM, Tony DiCola notifications@github.comwrote:

Looks like these are the versions Arduino uses (from versions.txt in the hardware/tools/avr folder of 1.5.6 installed on mac os x): avarice: 2.8 avr-libc: 1.6.4 avrdude: 5.4-arduino binutils: 2.19 gcc-3: 3.4.6 gcc-4: 4.3.2 gdb: 6.8 libusb: 0.1.12 make: 3.81 simulavr: 0.1.2.5

— Reply to this email directly or view it on GitHubhttps://github.com/adafruit/Adafruit_CC3000_Library/issues/65#issuecomment-40065655 .

ladyada commented 10 years ago

This has nothing to do with CC3000, remove the Robot_Control library from within Arduino IDE.

https://www.google.com/search?q=arduino+Robot_Control+errors

thx!

prologic commented 10 years ago

As I'm not using the Arduino IDE -- How do I do this from Ino? As I said before I'm not "importing" the Roboto_Controller library explicitly anywhere in my sketch or otherwise afaik :/

James Mills / prologic

E: prologic@shortcircuit.net.au W: prologic.shortcircuit.net.au

On Fri, Apr 11, 2014 at 1:15 AM, ladyada notifications@github.com wrote:

This has nothing to do with CC3000, remove the Robot_Control library from within Arduino IDE.

https://www.google.com/search?q=arduino+Robot_Control+errors

thx!

— Reply to this email directly or view it on GitHubhttps://github.com/adafruit/Adafruit_CC3000_Library/issues/65#issuecomment-40097823 .

PaintYourDragon commented 10 years ago

Most likely the makefile (or equivalent). Best course of action is usually to delete the Robot_Control library (optionally keeping a zipped copy for posterity).

prologic commented 10 years ago

See:

prologic@daisy
Fri Apr 11 06:06:24
~/wifi
$ ino preproc src/sketch.ino | grep include
#include <Arduino.h>
#include <Adafruit_CC3000.h>
#include <SPI.h>
#include "utility/debug.h"
#include "utility/socket.h"
  BSD license, all text above must be included in any redistribution
//#include <Adafruit_CC3000.h>
//#include <SPI.h>
//#include "utility/debug.h"
//#include "utility/socket.h"

I don't see the Robot_Controller being included here?

cheers James

James Mills / prologic

E: prologic@shortcircuit.net.au W: prologic.shortcircuit.net.au

On Fri, Apr 11, 2014 at 6:04 AM, Paint Your Dragon <notifications@github.com

wrote:

Most likely the makefile (or equivalent). Best course of action is usually to delete the Robot_Control library (optionally keeping a zipped copy for posterity).

— Reply to this email directly or view it on GitHubhttps://github.com/adafruit/Adafruit_CC3000_Library/issues/65#issuecomment-40131496 .

ladyada commented 10 years ago

Take this to the adafruit forum. this thread is closed - this repo is for CC3000 issues only, not generic Arduino compilation support!

thank you!

prologic commented 10 years ago

Okay :) Although this is the Adafruit_CC300 Library!

I'll take this over there! Thanks!

James Mills / prologic

E: prologic@shortcircuit.net.au W: prologic.shortcircuit.net.au

On Fri, Apr 11, 2014 at 6:11 AM, ladyada notifications@github.com wrote:

Take this to the adafruit forum. this thread is closed - this repo is for CC3000 issues only, not generic Arduino compilation support!

thank you!

— Reply to this email directly or view it on GitHubhttps://github.com/adafruit/Adafruit_CC3000_Library/issues/65#issuecomment-40132225 .

hroncok commented 10 years ago

@therealprologic Could you please send a link to a place where this discussion follows?

prologic commented 10 years ago

http://forums.adafruit.com/viewtopic.php?f=25&t=52479

This thread helped to solve the problem

IIRC removing /usr/share/arduino/libraries/Robot_Control fixed the problem for me.

cheers James

James Mills / prologic

E: prologic@shortcircuit.net.au W: prologic.shortcircuit.net.au

On Tue, Jun 24, 2014 at 7:49 PM, Miro Hrončok notifications@github.com wrote:

@therealprologic https://github.com/therealprologic Could you please send a link to a place where this discussion follows?

— Reply to this email directly or view it on GitHub https://github.com/adafruit/Adafruit_CC3000_Library/issues/65#issuecomment-46952047 .

hroncok commented 10 years ago

Thanks

prologic commented 10 years ago

No problems! On Jun 25, 2014 5:07 PM, "Miro Hrončok" notifications@github.com wrote:

Thanks

— Reply to this email directly or view it on GitHub https://github.com/adafruit/Adafruit_CC3000_Library/issues/65#issuecomment-47067081 .