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

bugfix-2.0.x doesnt build with arduino ide for avr #7375

Closed
alexxy opened this issue Jul 29, 2017 · 13 comments
Closed

bugfix-2.0.x doesnt build with arduino ide for avr #7375

alexxy opened this issue Jul 29, 2017 · 13 comments

Comments

@alexxy
Copy link
Contributor

alexxy commented Jul 29, 2017

Hi!

Does bugfix-2.0.x branch supposed to build for avr?

I get error

In file included from /tmp/arduino_build_688061/sketch/pins.h:642:0,
                 from /tmp/arduino_build_688061/sketch/MarlinConfig.h:33,
                 from /home/alexxy/Develop/3D/Marlin/Marlin/Marlin.ino:31:
/tmp/arduino_build_688061/sketch/src/HAL/HAL_spi_pins.h:24:26: fatal error: MarlinConfig.h: No such file or directory
 #include "MarlinConfig.h"
@teemuatlut
Copy link
Member

For now you can successfully build it on PlatformIO.
But Arduino IDE compatibility is a priority as that is what most people use.

@bobc
Copy link

bobc commented Jul 29, 2017

It builds with Arduino 1.6.8 with 2 changes:

  1. In HAL_spi_pins.h
    -#include "MarlinConfig.h"
    +#include "../../MarlinConfig.h"

  2. Delete or move HAL_LPC1768 so it is not in Marlin/...

@Tannoo
Copy link
Contributor

Tannoo commented Jul 29, 2017

Isn't it ..\..\MarlinConfig.h?

@fiveangle
Copy link
Contributor

fiveangle commented Jul 31, 2017

Actually, it requires more changes than that (not sure as I've not got it working yet - had to stop on the 3rd .h file path fix - will try to look at more later).

@bobc
Copy link

bobc commented Jul 31, 2017

I built the code using the default config, but there is SPI support that needs fixing, Chris is working on that. I would wait for him.

What areas are you finding problems?

@fiveangle
Copy link
Contributor

so far, just more header path issues beyond MarlinConfig.h. Mostly stuff in the LPC HAL tree (there's also minor cleanup that i was doing as i was fixing - some directories using all lowercase, some first-letter capitalized, etc)

@bobc
Copy link

bobc commented Jul 31, 2017

If you are building for AVR, it should not be including anything in LPC HAL... one of my suggested changes was to remove that folder!

@p3p
Copy link
Member

p3p commented Jul 31, 2017

@fiveangle I wouldn't do cosmetic changes to things just yet some parts will not be around for ever,

Other than SPI missing from other platforms there shouldn't be any compile errors on my development branch, the Marlin bugfix-2.0.x is behind a few commits, I need to get a PR in that will throw errors for incomplete HAL implementation (I'm having issues with trying to do so much in the preprocessor for the AVR platform)

one of my suggested changes was to remove that folder!

That's done Bob, I've created a frameworks folder level with src for any platform specific framework code that Arduino IDE should ignore.

@fiveangle
Copy link
Contributor

fiveangle commented Aug 1, 2017

so we are supposed to "hurry up and wait" for someone else to fix stuff ? ;)

but kidding aside Chris, i guess we should wait for the SPI stuff to actually be implimented and then start back in working to fix stuff in bf2.0 ?

@p3p
Copy link
Member

p3p commented Aug 1, 2017

Well, you don't have to wait but things are still being refactored in the HAL and in base 2.0.x and any PR may be hard to merge with those overarching changes without close cooperation, once 2.0.x is actually "layout complete" it will be clearer what is actually staying around and needs cleaned up.

@fiveangle
Copy link
Contributor

fiveangle commented Oct 9, 2017

Builds now.

Although you may hit command-length limit in Windows, so need to install debug arduino-builder.exe available here:

arduino/arduino-builder#249 (comment)

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants