Go Down

Topic: Arduino 0007 on Mandriva 2007 - errors (Read 645 times) previous topic - next topic

OAnimal

Hi,

I tried to run Arduino 0007 on Mandriva 2007. I installed it in user space and it runs, but it reports all sorts of errors. The status bar says: Error building library "Wire", and below there are several error messages:
utility/twi.c:20:18: error: math.h: No such file or directory
utility/twi.c:21:20: error: stdlib.h: No such file or directory
utility/twi.c:22:22: error: inttypes.h: No such file or directory
utility/twi.c:23:20: error: avr/io.h: No such file or directory
utility/twi.c:24:27: error: avr/interrupt.h: No such file or directory
utility/twi.c:25:24: error: avr/signal.h: No such file or directory
utility/twi.c:26:24: error: compat/twi.h: No such file or directory
In file included from utility/twi.c:36:
utility/twi.h:46: warning: parameter names (without types) in function declaration
utility/twi.h:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'twi_readFrom'
utility/twi.h:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'twi_writeTo'
utility/twi.h:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'twi_transmit'
utility/twi.h:50: error: expected declaration specifiers or '...' before 'uint8_t'
utility/twi.h:52: warning: parameter names (without types) in function declaration
utility/twi.c:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'twi_state'
utility/twi.c:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'twi_slarw'
utility/twi.c:42: error: expected ')' before '*' token
utility/twi.c:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
utility/twi.c:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'twi_masterBufferIndex'
utility/twi.c:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'twi_masterBufferLength'
utility/twi.c:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
utility/twi.c:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'twi_txBufferIndex'
utility/twi.c:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'twi_txBufferLength'
utility/twi.c:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
utility/twi.c:53: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'twi_rxBufferIndex'
utility/twi.c: In function 'twi_init':
utility/twi.c:64: error: 'twi_state' undeclared (first use in this function)
utility/twi.c:64: error: (Each undeclared identifier is reported only once
utility/twi.c:64: error: for each function it appears in.)
utility/twi.c:74: warning: implicit declaration of function '_SFR_BYTE'
utility/twi.c:74: error: 'PORTD' undeclared (first use in this function)
utility/twi.c:74: warning: implicit declaration of function '_BV'
utility/twi.c:74: error: invalid lvalue in assignment
utility/twi.c:75: error: invalid lvalue in assignment
utility/twi.c:79: error: 'TWSR' undeclared (first use in this function)
utility/twi.c:79: error: 'TWPS0' undeclared (first use in this function)
utility/twi.c:79: error: invalid lvalue in assignment
utility/twi.c:80: error: 'TWPS1' undeclared (first use in this function)
utility/twi.c:80: error: invalid lvalue in assignment
utility/twi.c:81: error: 'TWBR' undeclared (first use in this function)
utility/twi.c:89: error: 'TWCR' undeclared (first use in this function)
utility/twi.c:89: error: 'TWEN' undeclared (first use in this function)
utility/twi.c:89: error: 'TWIE' undeclared (first use in this function)
utility/twi.c:89: error: 'TWEA' undeclared (first use in this function)
utility/twi.c:92: error: 'twi_masterBuffer' undeclared (first use in this function)
utility/twi.c:92: error: 'uint8_t' undeclared (first use in this function)
utility/twi.c:92: error: expected expression before ')' token
utility/twi.c:93: error: 'twi_txBuffer' undeclared (first use in this function)
utility/twi.c:93: error: expected expression before ')' token
utility/twi.c:94: error: 'twi_rxBuffer' undeclared (first use in this function)
utility/twi.c:94: error: expected expression before ')' token
utility/twi.c: At top level:
utility/twi.c:103: error: expected ')' before 'address'
utility/twi.c:118: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'twi_readFrom'
utility/twi.c:167: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'twi_writeTo'
utility/twi.c:216: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'twi_transmit'
utility/twi.c:245: error: expected ')' before '*' token
utility/twi.c: In function 'twi_attachSlaveRxEvent':
utility/twi.c:246: error: number of arguments doesn't match prototype
utility/twi.h:50: error: prototype declaration
utility/twi.c:247: error: 'twi_onSlaveReceive' undeclared (first use in this function)
utility/twi.c:247: error: 'function' undeclared (first use in this function)
utility/twi.c: At top level:
utility/twi.c:267: error: expected ')' before 'ack'
utility/twi.c: In function 'twi_stop':
utility/twi.c:286: error: 'TWCR' undeclared (first use in this function)
utility/twi.c:286: error: 'TWEN' undeclared (first use in this function)
utility/twi.c:286: error: 'TWIE' undeclared (first use in this function)
... etc.

If I install arduino as root, it doesn't even run, saying:
Exception in thread "main" java.lang.NoClassDefFoundError: processing/app/Base

Any ideas?

mellis

It looks like your C/C++ compiler (avr-gcc/avr-g++) can't find your avr-libc.  Did you install avr-libc?  Where is it?  

OAnimal

Aah, you're right, I forgot to compile avr-libc.  ::)
Thanks for your help, now it works. :)

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy