Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation on Ubuntu without arduino #489

Closed
Dzenik opened this issue Oct 18, 2016 · 2 comments
Closed

Installation on Ubuntu without arduino #489

Dzenik opened this issue Oct 18, 2016 · 2 comments

Comments

@Dzenik
Copy link

Dzenik commented Oct 18, 2016

Follow the installation instructions INSTALL.txt faced with the following problems:

  1. Set environment variable GCC_AVR_VER to gcc-4.2.
    GCC_AVR_VER=gcc-avr-4.2 ; export GCC_AVR_VER

After installation apt-get install gcc-avr I did not find anything gcc-avr, there is only avr-gcc-4.8.2.
Ok, I set GCC_AVR_VER=avr-gcc-4.8.2 and export it

  1. Run command line build with board.
    cd Cosa/example/Benchmarks/CosaBenchmarksPins
    cosa nano avanti

I receive error: avr-g++: error: missing device or architecture after '-mmcu='
After viewing the scripts, I find that there is no boards.txt.
Ok, downloading arduino archive, unpack and copy boards.txt in ~/Cosa/build/
Аgain I am trying to compile.
Got error:
/home/evgen/Cosa/cores/cosa/Cosa/Board.hh:31:19: fatal error: Board.h: No such file or directory

The question is, Cosa does not work without Arduino IDE package?

@mikaelpatel
Copy link
Owner

I see that the INSTALL.txt is out of date and the Arduino.mk needs updating. New version available.

Please install:
sudo apt-get install gcc-avr binutils-avr gdb-avr avr-libc avrdude

And copy boards.txt from the root directory.

cd Cosa
cp boards.txt build

To verify.

cd Cosa/build
GCC_AVR_VER=gcc-4.9.2 ; export GCC_AVR_VER
cosa uno

Cheers!

@Dzenik
Copy link
Author

Dzenik commented Oct 18, 2016

Thanks, compiled success

@Dzenik Dzenik closed this as completed Oct 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants