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

espressif/esp_lvgl_port keeps forcing LVGL v9.1 to be installed with ESP-IDF v5.3 on Windows (BSP-533) #365

Closed
1 task done
joulupukki opened this issue Aug 8, 2024 · 16 comments
Labels

Comments

@joulupukki
Copy link

Board

ESP32-S3

Hardware Description

Using a Heltec ESP32 WiFi Kit v3, but the build isn't making it far enough to be able to build successfully on Windows 10.

IDE Name

VSCode

Operating System

Windows 10

Description

I'm trying to build an ESP-IDF v5.3 project. I'm using VS Code and have it working properly on Windows 11, and also my Mac. But, if I try to have a colleague build it using his Windows 10 machine (he's tried multiple) he gets this strange problem where the component manager will load in LVGL v9.1.

I believe it's happening because of espressif/esp_lvgl_port. If he temporarily comments out the espressif/esp_lgvl_port from our idf_component.yml file, the build system will properly pull in LVGL v8.4.0. But, as soon as we introduce esp_lvgl_port, it installs LVGL v9.1.

Sketch

Here's our idf_component.yml file:

dependencies:
  espressif/esp_lvgl_port: "^2.3.0"
  lvgl/lvgl: "^8.4.0"
  ## Required IDF version
  idf:
    version: ">=4.1.0"

Other Steps to Reproduce

No response

I have checked existing issues, README.md and ESP32 Forum

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@joulupukki joulupukki added Status: Awaiting triage Type: Bug Something isn't working labels Aug 8, 2024
@github-actions github-actions bot changed the title espressif/esp_lvgl_port keeps forcing LVGL v9.1 to be installed with ESP-IDF v5.3 on Windows espressif/esp_lvgl_port keeps forcing LVGL v9.1 to be installed with ESP-IDF v5.3 on Windows (BSP-533) Aug 8, 2024
@rpschultz13
Copy link

If I try:
lvgl/lvgl:
version: "^8"
espressif/esp_lvgl_port: "^1"

This outputs:
espressif/esp_lvgl_port: 1.4.0
lvgl/lvgl: 8.4.0

And it builds.

Would be nice to get lvgl/lvgl: 8.4.0 and espressif/esp_lvgl_port: 2.x

@tore-espressif
Copy link
Collaborator

Hi guys,
this seems to be a bug in the component version solving. This should work just right

dependencies:
  espressif/esp_lvgl_port: "^2.3.0"
  lvgl/lvgl: "^8.4.0"
  ## Required IDF version
  idf:
    version: ">=4.1.0"

Could you try updating the idf-component-manager pip install idf-component-manager --upgrade and try again?

@rpschultz13
Copy link

rpschultz13 commented Aug 9, 2024

updating the component manager appeared to work. But it still forced lvgl/lvgl to v9.1 when espressif/esp_lvgl_port: 2.3.0.

Successfully installed cachecontrol-0.14.0 certifi-2024.7.4 charset-normalizer-3.3.2 click-8.1.7 colorama-0.4.6 contextlib2-21.6.0 filelock-3.15.4 idf-component-manager-1.5.3 idna-3.7 msgpack-1.0.8 packaging-24.1 pyparsing-3.1.2 pyyaml-6.0.2 requests-2.32.3 requests-file-1.5.1 requests-toolbelt-1.0.0 schema-0.7.5 six-1.16.0 tqdm-4.66.5 urllib3-1.26.19

@tore-espressif
Copy link
Collaborator

Could you please provide your idf_component.yml of your main component? And also provide a full log of idf.py reconfigure?

@joulupukki
Copy link
Author

The idf_component.yml file is available here: https://github.com/joulupukki/esp32-chromatic-tuner/blob/main/main/idf_component.yml

Hopefully @rpschultz13 can get you the full log of the idf.py reconfigure command. We’ve been using Visual Studio Code with the ESP-IDF extension to do all the building.

@tore-espressif
Copy link
Collaborator

I checked out your project and LVGL got correctly resolved to v8.4.0.

I tried with IDF component manager v1.5.3 and also latest v2.0.3.

Please let me know if there is anything else, or we can close this issue

@joulupukki
Copy link
Author

joulupukki commented Aug 26, 2024

@tore-espressif what operating system are you using? It also works for me on MacOS, but on Windows 10 it has not been working for @rpschultz13.

@tore-espressif
Copy link
Collaborator

@tore-espressif what operating system are you using? It also works for me on MacOS, but on Windows 10 it has not been working for @rpschultz13.

I'm on Windows 10. (64bit, version 22H2 build 19045.4780)

@rpschultz13
Copy link

idf_py_stdout_output_23624.txt

Is this what you're looking for? If not, please specify.
Thanks!

@hfudev
Copy link
Member

hfudev commented Aug 29, 2024

Hi @joulupukki, thanks for reporting the issue. I could reproduce the issue with idf-component-manager 1.5.3 with esp-idf 5.3.

Could you try to unset the environment variable IDF_COMPONENT_STORAGE_URL and run idf.py build again? This environment variable shall be set by our offline installer.

@rpschultz13
Copy link

@hfudev , thanks for chiming in. I am willing, but lack the knowledge to do what you ask. Can you provide more detailed instructions.
Thanks!

@hfudev
Copy link
Member

hfudev commented Aug 30, 2024

no worries. @rpschultz13 here's a guide on how to set it. https://superuser.com/a/1528432/1924620.

To unset an environment variable, simply select it and click the "Delete" button.

Also, remember to restart your terminal or application (e.g., vscode) you're using after making changes to the environment variables -- otherwise the changes won't take effect.

@rpschultz13
Copy link

Hey that worked. Thanks for the help!

@joulupukki
Copy link
Author

Glad that worked @rpschultz13 ! @hfudev is this something that needs to be fixed/adjusted in the IDF Component Manager or maybe one of the ESP-IDF-related VS Code extensions?

@hfudev
Copy link
Member

hfudev commented Sep 3, 2024

We’ve identified the cause and are actively working on a solution. A new release of the offline installer will be available soon, which will address this issue.

@hfudev
Copy link
Member

hfudev commented Sep 26, 2024

I'll close the issue. The offline installer issue has been fixed. Thanks for reporting :)


ah... no access to esp-bsp project. @tore-espressif I think it's okay to close this issue. Thanks!

@espzav espzav closed this as completed Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants