Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Getting avr GCC working
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Getting avr GCC working

by mickpc on Tue Jul 06, 2010 7:12 am

I have been trying to get avrgcc working, I am following the directions from here: http://www.ladyada.net/learn/avr/avrdude.html

Firstly I cannot work out why I cannot download libusb.

and later on when trying to compile avrgcc, i get the following error:

configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
Try the --with-gmp and/or --with-mpfr options to specify their locations.
Copies of these libraries' source code can be found at their respective
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
See also http://gcc.gnu.org/install/prerequisites.html for additional info.
If you obtained GMP and/or MPFR from a vendor distribution package, make
sure that you have installed both the libraries and the header files.
They may be located in separate packages.

I am using ubuntu 10.4.

Help.

Mick
mickpc
 
Posts: 1
Joined: Tue Jul 06, 2010 7:06 am

Re: Getting avr GCC working

by mtbf0 on Tue Jul 06, 2010 8:33 am

i've built avr-gcc on both opensuse and debian boxes. it's not magical.

you need to find those two libraries in the ubuntu repositories and, like they say, make sure you have the header files so gcc can talk to them. headers may be in the source package.
"i want to lead a dissipate existence, play scratchy records and enjoy my decline" - iggy pop, i need more
User avatar
mtbf0
 
Posts: 1645
Joined: Sat Nov 10, 2007 12:59 am
Location: oakland ca

Re: Getting avr GCC working

by Entropy on Tue Jul 06, 2010 10:52 am

You shouldn't need to recompile the avr-gcc toolchain, I'm 90% certain there are precompiled Ubuntu packages for it.

I'll check tonight to see how it's installed on my machine, but I think you might only have to do "sudo apt-get install avr-gcc avrdude avr-libc" on recent Ubuntu machines.
Entropy
 
Posts: 472
Joined: Tue Jan 08, 2008 12:43 am
Location: Owego, NY USA

Re: Getting avr GCC working

by chuckm on Wed Jul 07, 2010 5:32 pm

If you are on Ubuntu then simply type

sudo apt-get install gcc-avr
sudo apt-get install avr-libc

To a shell prompt. You can then compile code with the command avr-gcc

--Chuck

chuckm
 
Posts: 159
Joined: Thu Dec 24, 2009 3:31 am

Please be positive and constructive with your questions and comments.