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

Support Arduino IDE build environment 1.5x #2

Open
HakanL opened this issue Dec 1, 2014 · 6 comments
Open

Support Arduino IDE build environment 1.5x #2

HakanL opened this issue Dec 1, 2014 · 6 comments

Comments

@HakanL
Copy link

HakanL commented Dec 1, 2014

No description provided.

@peternewman
Copy link
Member

To help this/when it's fixed, we should add Travis Continuous Integration to the repo with Platform IO:
http://platformio.org

@stoneater
Copy link

How do we edit the makefile for building on 1.8.8?

@peternewman
Copy link
Member

Hi @stoneater ,

How does it fail, what error message(s) do you get?

This (unmerged) commit, fixes a warning, but that's unlikely to be making your build fail:
a8ec5b1

So unfortunately it may be no-one has fixed the issue yet.

@stoneater
Copy link

I have the build environment, but running make doesn't find Arduino.h, likely because it resides in a different directory from the rather ancient version that rgbmixer was compiled on. I change the INSTALL_DIR to $(HOME)/arduino-1.8.8/hardware/ and it then can not find avr-g++ because it has moved. Unfortunately this puts us in a bind, since it uses CXX and INSTALL_DIR alternatively, if I change INSTALL_DIR to find Arduino.h then make can not find avr-g++, and if I change CXX to find avr-g++, then make can not find Arduino.h again. I would think that making a symbolic link to copy Arduino.h or avr-g++ might work, but that updating the Makefile to match current structure of arduino-1.8.8 would be the better way to go.

@stoneater
Copy link

On further review, perhaps instead of a Makefile, can this be converted into something that can be used from the IDE, or am I missing something there too? I think I have gotten close, but now I need to set which variant I am compiling for. I was able to add -I $(INSTALL_DIR)/arduino/avr/cores/arduino/
to the ALL_CXXFLAGS to get a step further up the chain until I error, so progress!

@peternewman
Copy link
Member

Hi @stoneater

Would you like to give this a go, it compile for me against 1.8.2:
#6

I've not tried the resulting hex file though.

I'm not across the reason it was written to use make rather than the Arduino IDE initially, I guess personal preference by @nomis52 or limitations in the old version of the IDE on Mac.

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

3 participants