Missing $(AVR)/avrfreaks/avr_make

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Having installed AVRGcc 3.0.2 (Linux, mandrake 9.0) I seem to be unable to compile due to a missing $(AVR)/avrfreaks/avr_make. Any ideas on how to get that one, as it seems rather crucial ....

Best regards,
Morten

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

Here is my Linux version of avr_make

BTW for anyone how is interested I have got a Linux version of 3.2 working for AVR-GCC. It actually uses parts of the Windows build from this site, which means that it is also 99% compatible (as far as i know) with the windows version, meaning you can switch back and forth between windows and linux and still have the exact same gcc, or if you download projects from the Academy for AVR-GCC they should compile with no problem. I've even made a replacement for the windows version of gcc_cmp.bat (called gcc_cmp.sh) so you don't have to set any enviromental variables yourself..

If anyone is interested in it just ask and i'll put up how I did it.

BTW though you might have to compile some stuff though, although if you have an i686 I might be able to send you pre-compiled...

-COlin

PS: just rename avr_make_linux to avr_make and be sure to # out a few spots, as I use a few extra tools... you'll know when you see the lines (they ask for wine I think)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Colin,

Thanks for this info, I'm going to start getting my tools set up on my Mandrake 9.0 box, as soon as I can get past my current project deadline. I would certainly be interested in any useful hints you would be willing to share. Thanks in advance.

David

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

I've got mandrake 9.0 as well so I can probably send you everything pre-compiled!

Basically, here is what I did:

1) Install AVR-GCC on a WINDOWS partition, to get all the programs set up (this set isn't needed, as I will provide a copy of my data), then copy the avrgcc directory to your home (in my case /home/colin/avrgcc)

2) Delete all the .exe files in the bin directory (of the copy of course)

3) Download and compile GCC and Binuitils, setting up as a cross-compiler and also being sure to tell it that the install directoy is the avrgcc director (ie: /home/colin/avrgcc)

4) change makefile to reflect that the .exe extensions aren't needed, and some programs (like rm -f) are built into linux

5) make a shell script that sets the PATH to /home/colin/avrgcc/bin and the AVR variable to /home/colin/avrgcc and put the shell scipt in your path

6) now to compile for avrgcc to cd to the directory with your makefile and run your shell script!

anyway thats a very very quick overview, i'll write up more detail later (hopefully tomorrow if I'm not too busy) and provide some needed files..

-Colin

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

...
> 3) Download and compile GCC and Binuitils,
...
I suggest different order avr-binutils then avr-gcc.
Look at:
http://savannah.nongnu.org/downl...
In spite of development status of theese tools they work for me very good. And dont bother that there is rh7 suffix, just get src.rpm and rebuild packages.

Regards,
--
Artur Lipowski

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I suggest different order avr-binutils then avr-gcc.

yeah you have to do that... if you compile them in the order I wrote them it will complain!