Okay, just tried some more stuff...
Tried externally powering the motherboard...no goodness.
While fiddling with AVRdude, found that we may have a file permissions problem. This test, [
www.ladyada.net], fails unless we run it as root using sudo. When run with sudo, it gives the response it's supposed to.
So, knowing this we started the Arduino environment from terminal with
sudo ./arduino
This fixed part of our initial problem--the USB lines we posted--but then gave us a whole mess of other stuff. Whiletrying to catch the error outputs from this to post here--using "sudo ./arduino > error_log.txt"--all we got was:
"""
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
Experimental: JNI_OnLoad called.
"""
This is a very small fraction of what was dumped to the terminal leading us to think that avrdude is the only problem here. Just to be sure we ran "./arduino > error_log.txt" to see what that gave us. We got the same output as above. The USB errors were back this time though indicating that the USB problem is a permissions issue.
However, on this run through we noticed that the Arduino program was spitting a bunch of other errors at us in it's own notification area. This:
"""
In file included from Firmata.cpp:17:
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:4:20: error: stdlib.h: No such file or directory
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:5:20: error: string.h: No such file or directory
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:6:18: error: math.h: No such file or directory
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:8:27: error: avr/interrupt.h: No such file or directory
In file included from /home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:10,
from Firmata.cpp:17:
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:28:20: error: avr/io.h: No such file or directory
In file included from /home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:13,
from Firmata.cpp:17:
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/HardwareSerial.h:24:22: error: inttypes.h: No such file or directory
In file included from /home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:10,
from Firmata.cpp:17:
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:97: error: ‘uint8_t’ does not name a type
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:98: error: ‘uint8_t’ does not name a type
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:102: error: variable or field ‘pinMode’ declared void
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:102: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:102: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:103: error: variable or field ‘digitalWrite’ declared void
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:103: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:103: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:104: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:105: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:106: error: variable or field ‘analogReference’ declared void
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:106: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:107: error: variable or field ‘analogWrite’ declared void
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:107: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:107: error: expected primary-expression before ‘int’
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:109: error: variable or field ‘beginSerial’ declared void
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:109: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:109: error: expected primary-expression before ‘long’
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:110: error: variable or field ‘serialWrite’ declared void
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:110: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:110: error: expected primary-expression before ‘unsigned’
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:111: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:112: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:113: error: variable or field ‘serialFlush’ declared void
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:113: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:119: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:119: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:119: error: expected primary-expression before ‘unsigned’
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:119: error: initializer expression list treated as compound expression
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:121: error: variable or field ‘shiftOut’ declared void
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:121: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:121: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:121: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:121: error: ‘byte’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:123: error: variable or field ‘attachInterrupt’ declared void
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:123: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:123: error: expected primary-expression before ‘void’
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:123: error: expected primary-expression before ‘int’
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:124: error: variable or field ‘detachInterrupt’ declared void
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:124: error: ‘uint8_t’ was not declared in this scope
In file included from /home/batman/Desktop/arduino-0016/hardware/cores/sanguino/HardwareSerial.h:26,
from /home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:13,
from Firmata.cpp:17:
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/Print.h:34: error: ‘uint8_t’ has not been declared
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/Print.h:35: error: ‘uint8_t’ has not been declared
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/Print.h:37: error: ‘uint8_t’ has not been declared
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/Print.h:40: error: ‘uint8_t’ has not been declared
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/Print.h:41: error: ‘void Print::print(int)’ cannot be overloaded
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/Print.h:40: error: with ‘void Print::print(int)’
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/Print.h:50: error: ‘uint8_t’ has not been declared
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/Print.h:51: error: ‘void Print::println(int)’ cannot be overloaded
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/Print.h:50: error: with ‘void Print::println(int)’
In file included from /home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:13,
from Firmata.cpp:17:
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/HardwareSerial.h:31: error: ‘uint8_t’ does not name a type
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/HardwareSerial.h:33: error: expected `)' before ‘uart’
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/HardwareSerial.h:35: error: ‘uint8_t’ does not name a type
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/HardwareSerial.h:38: error: ‘uint8_t’ has not been declared
In file included from Firmata.cpp:17:
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:15: error: ‘uint16_t’ does not name a type
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:16: error: ‘uint16_t’ does not name a type
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:20: error: redefinition of ‘long unsigned int pulseIn’
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/wiring.h:119: error: ‘long unsigned int pulseIn’ previously defined here
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:20: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:20: error: ‘uint8_t’ was not declared in this scope
/home/batman/Desktop/arduino-0016/hardware/cores/sanguino/WProgram.h:20: error: expected primary-expression before ‘unsigned’
In file included from Firmata.cpp:19:
Firmata.h:62: error: typedef ‘callbackFunction’ is initialized (use __typeof__ instead)
Firmata.h:62: error: ‘byte’ was not declared in this scope
Firmata.h:62: error: expected primary-expression before ‘int’
Firmata.h:65: error: typedef ‘sysexCallbackFunction’ is initialized (use __typeof__ instead)
Firmata.h:65: error: ‘byte’ was not declared in this scope
Firmata.h:65: error: ‘byte’ was not declared in this scope
Firmata.h:65: error: ‘byte’ was not declared in this scope
Firmata.h:65: error: ‘argv’ was not declared in this scope
Firmata.h:82: error: ‘byte’ has not been declared
Firmata.h:82: error: ‘byte’ has not been declared
Firmata.h:87: error: ‘byte’ has not been declared
Firmata.h:88: error: ‘byte’ has not been declared
Firmata.h:89: error: ‘byte’ has not been declared
Firmata.h:91: error: ‘byte’ has not been declared
Firmata.h:92: error: ‘byte’ has not been declared
Firmata.h:92: error: ‘byte’ has not been declared
Firmata.h:92: error: ‘byte’ has not been declared
Firmata.h:96: error: ‘byte’ has not been declared
Firmata.h:96: error: ‘callbackFunction’ has not been declared
Firmata.h:97: error: ‘byte’ has not been declared
Firmata.h:98: error: ‘byte’ has not been declared
Firmata.h:99: error: ‘byte’ has not been declared
Firmata.h:99: error: ‘sysexCallbackFunction’ has not been declared
Firmata.h:99: error: ‘void FirmataClass::attach(int, int)’ cannot be overloaded
Firmata.h:96: error: with ‘void FirmataClass::attach(int, int)’
Firmata.h:100: error: ‘byte’ has not been declared
Firmata.h:105: error: ‘byte’ does not name a type
Firmata.h:106: error: ISO C++ forbids declaration of ‘byte’ with no type
Firmata.h:106: error: expected ‘;’ before ‘*’ token
Firmata.h:108: error: ‘byte’ does not name a type
Firmata.h:109: error: ‘byte’ does not name a type
Firmata.h:110: error: ‘byte’ does not name a type
Firmata.h:111: error: ‘byte’ does not name a type
Firmata.h:113: error: ‘boolean’ does not name a type
Firmata.h:116: error: ‘callbackFunction’ does not name a type
Firmata.h:117: error: ‘callbackFunction’ does not name a type
Firmata.h:118: error: ‘callbackFunction’ does not name a type
Firmata.h:119: error: ‘callbackFunction’ does not name a type
Firmata.h:120: error: ‘callbackFunction’ does not name a type
Firmata.h:123: error: ‘sysexCallbackFunction’ does not name a type
Firmata.cpp: In constructor ‘FirmataClass::FirmataClass()’:
Firmata.cpp:52: error: ‘firmwareVersionCount’ was not declared in this scope
Firmata.cpp: In member function ‘void FirmataClass::blinkVersion()’:
Firmata.cpp:93: error: ‘pinMode’ was not declared in this scope
Firmata.cpp: In member function ‘void FirmataClass::printFirmwareVersion()’:
Firmata.cpp:103: error: ‘byte’ was not declared in this scope
Firmata.cpp:103: error: expected `;' before ‘i’
Firmata.cpp:105: error: ‘firmwareVersionCount’ was not declared in this scope
Firmata.cpp:108: error: ‘firmwareVersionVector’ was not declared in this scope
Firmata.cpp:110: error: ‘i’ was not declared in this scope
Firmata.cpp: At global scope:
Firmata.cpp:117: error: ‘byte’ has not been declared
Firmata.cpp:117: error: ‘byte’ has not been declared
Firmata.cpp: In member function ‘void FirmataClass::setFirmwareNameAndVersion(const char*, int, int)’:
Firmata.cpp:123: error: ‘strstr’ was not declared in this scope
Firmata.cpp:124: error: ‘strrchr’ was not declared in this scope
Firmata.cpp:127: error: ‘firmwareVersionCount’ was not declared in this scope
Firmata.cpp:129: error: ‘firmwareVersionCount’ was not declared in this scope
Firmata.cpp:129: error: ‘strlen’ was not declared in this scope
Firmata.cpp:132: error: ‘firmwareVersionVector’ was not declared in this scope
Firmata.cpp:132: error: ‘byte’ was not declared in this scope
Firmata.cpp:132: error: expected primary-expression before ‘)’ token
Firmata.cpp:132: error: expected `;' before ‘malloc’
Firmata.cpp:133: error: ‘firmwareVersionCount’ was not declared in this scope
Firmata.cpp:136: error: ‘strncpy’ was not declared in this scope
Firmata.cpp: In member function ‘int FirmataClass::available()’:
Firmata.cpp:147: error: ‘class HardwareSerial’ has no member named ‘available’
Firmata.cpp: In member function ‘void FirmataClass::processSysexMessage()’:
Firmata.cpp:153: error: ‘storedInputData’ was not declared in this scope
Firmata.cpp:159: error: ‘byte’ was not declared in this scope
Firmata.cpp:159: error: expected `;' before ‘bufferLength’
Firmata.cpp:160: error: ‘bufferLength’ was not declared in this scope
Firmata.cpp:160: error: ‘malloc’ was not declared in this scope
Firmata.cpp:161: error: expected `;' before ‘i’
Firmata.cpp:162: error: expected `;' before ‘j’
Firmata.cpp:163: error: ‘j’ was not declared in this scope
Firmata.cpp:164: error: ‘i’ was not declared in this scope
Firmata.cpp:174: error: ‘currentSysexCallback’ was not declared in this scope
Firmata.cpp: In member function ‘void FirmataClass::processInput()’:
Firmata.cpp:186: error: ‘parsingSysex’ was not declared in this scope
Firmata.cpp:194: error: ‘storedInputData’ was not declared in this scope
Firmata.cpp:197: error: ‘waitForData’ was not declared in this scope
Firmata.cpp:199: error: ‘storedInputData’ was not declared in this scope
Firmata.cpp:200: error: ‘executeMultiByteCommand’ was not declared in this scope
Firmata.cpp:203: error: ‘currentAnalogCallback’ was not declared in this scope
Firmata.cpp:204: error: ‘multiByteChannel’ was not declared in this scope
Firmata.cpp:210: error: ‘currentDigitalCallback’ was not declared in this scope
Firmata.cpp:211: error: ‘multiByteChannel’ was not declared in this scope
Firmata.cpp:217: error: ‘currentPinModeCallback’ was not declared in this scope
Firmata.cpp:221: error: ‘currentReportAnalogCallback’ was not declared in this scope
Firmata.cpp:222: error: ‘multiByteChannel’ was not declared in this scope
Firmata.cpp:225: error: ‘currentReportDigitalCallback’ was not declared in this scope
Firmata.cpp:226: error: ‘multiByteChannel’ was not declared in this scope
Firmata.cpp:235: error: ‘multiByteChannel’ was not declared in this scope
Firmata.cpp:245: error: ‘executeMultiByteCommand’ was not declared in this scope
Firmata.cpp: At global scope:
Firmata.cpp:270: error: variable or field ‘sendAnalog’ declared void
Firmata.cpp:270: error: ‘byte’ was not declared in this scope
Firmata.cpp:270: error: expected primary-expression before ‘int’
Firmata.cpp:278: error: variable or field ‘sendDigital’ declared void
Firmata.cpp:278: error: ‘byte’ was not declared in this scope
Firmata.cpp:278: error: expected primary-expression before ‘int’
Firmata.cpp:302: error: variable or field ‘sendDigitalPort’ declared void
Firmata.cpp:302: error: ‘byte’ was not declared in this scope
Firmata.cpp:302: error: expected primary-expression before ‘int’
Firmata.cpp:310: error: variable or field ‘sendSysex’ declared void
Firmata.cpp:310: error: ‘byte’ was not declared in this scope
Firmata.cpp:310: error: ‘byte’ was not declared in this scope
Firmata.cpp:310: error: ‘byte’ was not declared in this scope
Firmata.cpp:310: error: ‘bytev’ was not declared in this scope
"""
Sorry about that dump. Anyway, we are now suspecting that we installed some files wrong and will be checking that again.
Any help is helpful...hehe
Demented
[
www.urbansurvivalists.com]