ambrop72 / aprinter

3D printer firmware written in C++
Other
143 stars 42 forks source link

Error on AVR Compiler #14

Closed Lunavast closed 10 years ago

Lunavast commented 10 years ago

I have installed avrdude 6.0.1 on Ubuntu 14.04. I have installed AVR toolchain for ramps13.

When I tried to build for ramps13, I have the following error.

avrdude version 6.0.1, URL: http://savannah.nongnu.org/projects/avrdude/ ubuntu@ubuntu:~/3dprinter/aprinter-master$ ./build.sh ramps13 build Configuring for target ramps13 Configuring AVR build Compiling for AVR Checking depends Missing or broken AVR compiler

Can you give me any advice?

ambrop72 commented 10 years ago

To build APrinter for AVR, you need a recent version of avr-gcc (4.8). I do not know what you have installed, but it is most likely not good enough.

The officially supported toolchain is the binary from Atmel[1]. By default the build system assumes you used the following command to install it locally: ./build.sh ramps13 install

Once you do this the compiler should be found by the build command.

If you really want to use some other toolchain, you can put this into config/config.sh or an env variable: CUSTOM_AVR_GCC=/path/to/my/toolchain/avr-

Note that an alternative way to build is using the Nix package manager, and in this case Nix will automagically take care of build dependencies (but not uploading). I've just added information to the wiki regarding using Nix.

[1] http://www.atmel.com/tools/atmelavrtoolchainforlinux.aspx

ambrop72 commented 10 years ago

To build APrinter for AVR, you need a recent version of avr-gcc (4.8). I do not know what you have installed, but it is most likely not good enough.

The officially supported toolchain is the binary from Atmel[1]. By default the build system assumes you used the following command to install it locally:

./build.sh ramps13 install Once you do this the compiler should be found by the build command.

If you really want to use some other toolchain, you can put this into config/config.sh or an env variable: CUSTOM_AVR_GCC=/path/to/my/toolchain/avr-

Note that an alternative way to build is using the Nix package manager, and in this case Nix will automagically take care of build dependencies (but not uploading). I've just added information to the wiki regarding using Nix.

[1] http://www.atmel.com/tools/atmelavrtoolchainforlinux.aspx

On Sat, Sep 6, 2014 at 11:51 AM, Lunavast notifications@github.com wrote:

I have installed avrdude 6.0.1 on Ubuntu 14.04. I have installed AVR toolchain for ramps13.

When I tried to build for ramps13, I have the following error.

avrdude version 6.0.1, URL: http://savannah.nongnu.org/projects/avrdude/ ubuntu@ubuntu:~/3dprinter/aprinter-master$ ./build.sh ramps13 build Configuring for target ramps13 Configuring AVR build Compiling for AVR Checking depends Missing or broken AVR compiler

Can you give me any advice?

— Reply to this email directly or view it on GitHub https://github.com/ambrop72/aprinter/issues/14.

Lunavast commented 10 years ago

Compiling with Nix was completed successfully.

Thank you.