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

[BUG] Not possible currently to compile marlin 2.0.9.1 using only the arduino IDE #22711

Closed
Wallby opened this issue Sep 4, 2021 · 9 comments

Comments

@Wallby
Copy link

Wallby commented Sep 4, 2021

Did you test the latest bugfix-2.0.x code?

Yes, and the problem still exists.

Bug Description

There is only one version (0.5.0 it seems) of U8glib-HAL available via the arduino library manager..
afbeelding
afbeelding

It is not possible atm the get marlin 2.0.9.1 to compile using only arduino IDE as for U8glib-HAL the header that was called U8glib.h in U8glib-HAL 0.4.5 is now called U8Glib-HAL.h (marlin 2.0.9.1 seems to require U8glib.h from U8glib-HAL 0.4.5).

I have not tested if 0.4.5 actually works, but c9a7fd1 did make it into 2.0.9.1 (i.e. using U8glib-HAL), but 69b44c2 did not.
It seems like 2.0.9.1 was intended to be used with U8glib-HAL 0.4.5

NOTE: I did not test the bugfix-2.0.x code, but this issue is not about the bugfix-2.0.x branch

Bug Timeline

See description (it seems that this bug is caused by not providing the option to download 0.4.5 via the arduino library manager)

Expected behavior

I am able to select 0.4.5/0.5.0 via the arduino library manager + there is a note in the readme.md of marlin "explaining the situation".

Actual behavior

See bug description

Steps to Reproduce

  1. Extract marlin 2.0.9.1 in a folder
  2. Open Marlin.ino in Arduino IDE
  3. Install U8glib via the library manager (sketch -> "use library" -> "manage libraries") //< not sure what these options are actually called as display language is not english for me
  4. Press the "☑" to compile

Version of Marlin Firmware

2.0.9.1

Printer model

No response

Electronics

No response

Add-ons

No response

Bed Leveling

No response

Your Slicer

No response

Host Software

No response

Additional information & file uploads

Other people experiencing this issue..
#22652
#22324 (comment)

@Wallby
Copy link
Author

Wallby commented Sep 4, 2021

afbeelding
afbeelding

NOTE: even though in these images U8glib seems to be installed and U8glib-HAL not, these images are merely for showing that there is no option to select a version of U8glib-HAL.

@tpruvot
Copy link
Contributor

tpruvot commented Sep 4, 2021

unsure its the reason but not all arch are set in the library properties...
https://github.com/MarlinFirmware/U8glib-HAL/blob/master/library.properties#L9

@ellensp
Copy link
Contributor

ellensp commented Sep 5, 2021

There is only one version of U8glib-HAL version 0.5.0 avalable in the arduino ide library manager.

@ellensp
Copy link
Contributor

ellensp commented Sep 5, 2021

The features.ini in 2.0.9.1 specifies U8glib-HAL@~0.4.5 for platformio. It is also required by Arduino ide.

This is a modified U8glib from Marlin. It is in the MarlinFirmware/U8glib-HAL repository, but internally it is still called U8glib.h (this is why you cannot install it from the arduino ide library manager, it conflicts with the current U8glib)

In bugfix and 2.0.x and will be in next release of Marlin, everything has been updated to use U8glib-HALh as provided by U8glib-HAL@~0.5.0
This also allows for easy instillation of U8glib-HAL v 0.5.0 from the arduino ide library manager.

To use the correct version of U8glib do the following:
Uninstall standard U8glib from the Arduino IDE library manager.
Download v0.4.5 of U8glib-HAL from https://github.com/MarlinFirmware/U8glib-HAL/releases/tag/0.4.5
Extract the directory into your Arduino/libraries folder
Download https://github.com/MarlinFirmware/Marlin/files/6710738/library.properties.zip
Extract library.properties to Arduino/libraries/U8glib-HAL-0.4.5
Restart Arduino IDE so it notices libraries have changed.
Click build or upload and take a long nap while arduino ide slowly compiles.

Or as has been mentioned a billion times, give up on the old criminally backwards and slow Arduino IDE and use platfomio/vscode. https://marlinfw.org/docs/basics/install_platformio_vscode.html
It installs all required library automatically and is about 10 time faster to compile Marlin.

@ellensp ellensp closed this as completed Sep 5, 2021
@ellensp
Copy link
Contributor

ellensp commented Sep 5, 2021

"Did you test the latest bugfix-2.0.x code? Yes, and the problem still exists."
This is incorrect

You simply install U8glib-HAL v 0.5.0 from the arduino ide library manager and compile.

@Wallby
Copy link
Author

Wallby commented Sep 5, 2021

@ellensp

This is incorrect

No it is not. The problem is that "It is not possible currently to compile marlin 2.0.9.1 using only the arduino IDE" (i.e. marlin 2.0.9.1 doesn't work with U8glib-HAL 0.5.0).

@ellensp
Copy link
Contributor

ellensp commented Sep 5, 2021

The problem does not exist in bugfix.

@Wallby
Copy link
Author

Wallby commented Sep 5, 2021

What's with the emoji? It might be that bugfix compiles, but compiling marlin 2.0.9.1 (an official release) using only the arduino IDE is not possible, hence "It is not possible currently to compile marlin 2.0.9.1 using only the arduino IDE" is not false.

@github-actions
Copy link

github-actions bot commented Nov 5, 2021

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 Nov 5, 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

3 participants