Giter VIP home page Giter VIP logo

Comments (11)

C47D avatar C47D commented on August 25, 2024

I have the same issue when trying to build the alink_smart_device_demo, but this repo seems to be in dead silence. Have you come out with a solution for this?

Just found out the command idf_set_global_variables was added on the ESP-IDF version 4 (source here). So you can eighter use the make based build system or update to esp-idf 4.0 to use the CMake based one (idf.py is based on CMake).

Here's what i did to update the esp-idf submodule of this repo:
First I checked the status of the git submodules:

esp-iot-solutions $ git submodule status
84781c62c2a8291aacdc7abd6ae54e64a2b6b72b components/hmi/lvgl_gui/lvgl (v5.3)
 835f0f197f7fc7eecf5dcd36892987c71caa5caa components/hmi/ugfx_gui/ugfx (v2.7-196-g835f0f19)
 51a5ca026f0bafe0a3f2084b9177cc9d48994fb6 components/network/mqtt/espmqtt (ESP-MQTT_FOR_IDF_3.1-1-g51a5ca0)
 c1284d48b2ea9b8cc92926e5e3fe9708ae80c61a components/platforms/alink/esp32-alink (heads/master)
 7d73ae821439f62a8f332cc67e2c1ce2455f073c components/spi_devices/lcd/Adafruit-GFX-Library (v1.2.3)
 055943e29346e77c50589c61a8a26101a8b35d7b submodule/esp-idf (v3.2.2)

You can see esp-idf is in version 3.2.2.

Then i went to the esp-idf directory and pulled master

esp-iot-solutions $ cd submodule/esp-idf
esp-idf $ git pull origin master
...

Went back to the root directory of esp-iot-solutions and checked the submodules status again

esp-iot-solutions $ git submodule status
84781c62c2a8291aacdc7abd6ae54e64a2b6b72b components/hmi/lvgl_gui/lvgl (v5.3)
 835f0f197f7fc7eecf5dcd36892987c71caa5caa components/hmi/ugfx_gui/ugfx (v2.7-196-g835f0f19)
 51a5ca026f0bafe0a3f2084b9177cc9d48994fb6 components/network/mqtt/espmqtt (ESP-MQTT_FOR_IDF_3.1-1-g51a5ca0)
 c1284d48b2ea9b8cc92926e5e3fe9708ae80c61a components/platforms/alink/esp32-alink (heads/master)
 7d73ae821439f62a8f332cc67e2c1ce2455f073c components/spi_devices/lcd/Adafruit-GFX-Library (v1.2.3)
+93a8603c545fb8e54741d6685146e2f3b874378d submodule/esp-idf (v4.1-dev-1086-g93a8603c5)

from esp-iot-solution.

InfiniteYuan avatar InfiniteYuan commented on August 25, 2024

@brownx Please refer to perpare

from esp-iot-solution.

InfiniteYuan avatar InfiniteYuan commented on August 25, 2024

@C47D This may be encounter problem that other example can't complie in esp-iot-solution.

from esp-iot-solution.

wolfeidau avatar wolfeidau commented on August 25, 2024

I was looking to try even bumping esp-idf up to 3.2.3 but alas I get the same idf_set_global_variables issue when building 😢

from esp-iot-solution.

InfiniteYuan avatar InfiniteYuan commented on August 25, 2024

idf_set_global_variables this is located in idf 3.2.2

from esp-iot-solution.

wolfeidau avatar wolfeidau commented on August 25, 2024

@InfiniteYuan1 thanks, I figured out how to get idf 3.2.3 working.

after the initial clone of esp-iot-solution.

git submodule update --init --recursive
cd submodule/esp-idf
git checkout v3.2.3
git submodule update --init --recursive

And then I navigate to examples/esp32_azure_iot_kit and the project builds with make 👍

Note also works with v3.3.1 tag as well.

Cheers

from esp-iot-solution.

Alexlizx avatar Alexlizx commented on August 25, 2024

Then i went to the esp-idf directory and pulled master

esp-iot-solutions $ cd submodule/esp-idf
esp-idf $ git pull origin master
...

@C47D I tried your solution to update the esp-idf submodule, but encountered the following errors:
Unlink of file 'components/micro-ecc/micro-ecc' failed. Should I try again? (y/n) y
Unlink of file 'components/micro-ecc/micro-ecc' failed. Should I try again? (y/n) n
Unlink of file 'components/aws_iot/aws-iot-device-sdk-embedded-C' failed. Should I try again? (y/n) y
Unlink of file 'components/aws_iot/aws-iot-device-sdk-embedded-C' failed. Should I try again? (y/n) n

There are hundreds of CONFLICT messages after this, so I'm not going to post them all here. An example is CONFLICT (content): Merge conflict in tools/unit-test-app/unit_test.py.

@InfiniteYuan1 The esp-idf submodule branch in esp-iot-solution is v3.2.2, which does not recognize "idf_set_global_variables". git submodule update --init --recursive does not help me at all because it just reverts the idf to 3.2.2. Is there another way to update it to 4.0? I tried to do a straight forward git clone of the esp-idf repository but then cmake failed.

from esp-iot-solution.

C47D avatar C47D commented on August 25, 2024

@Alexlizx Hi, I haven't been able to work on this repo since I posted my proposal, but if you are trying to get a quick demo of LVGL running on the ESP32 we are working on this repo. Hope it helps!.

from esp-iot-solution.

Alexlizx avatar Alexlizx commented on August 25, 2024

@C47D Thank you for the quick reply. I am working to get the aws_iot_demo example running on my board but I keep running into Unknown CMake command "idf_set_global_variables" like the OP. Just curious about how you were able to update the idf submodule.

from esp-iot-solution.

leeebo avatar leeebo commented on August 25, 2024

New esp-iot-solution/tree/release/v1.1 branch based on esp-idf v4.0.1 becomes available now.

from esp-iot-solution.

leeebo avatar leeebo commented on August 25, 2024

The ESP-IDF has integrated LVGL from v5.0, please use the component https://components.espressif.com/components/espressif/esp_lvgl_port instead, and you can find more examples in https://github.com/espressif/esp-idf/tree/master/examples/peripherals/lcd and https://github.com/espressif/esp-bsp/tree/master/esp32_s3_lcd_ev_board

from esp-iot-solution.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.