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

Out of the box compilation error/solutions #321

Open
SolidStateLEDLighting opened this issue Jan 13, 2023 · 0 comments
Open

Out of the box compilation error/solutions #321

SolidStateLEDLighting opened this issue Jan 13, 2023 · 0 comments

Comments

@SolidStateLEDLighting
Copy link

SolidStateLEDLighting commented Jan 13, 2023

I attempted to build and run menuconfig for all the Mesh Example projects...

I think someone at Espressif is not doing their regression testing....

I'm new to Mesh Development Framework but not new to the IDF....

(machine/tools) Windows 10 / IDF 4.4.1 / VS Code / Espressif IDF Plug-in Extension 1.5.1

The MDF was installed side-by-side with the IDF.

The first thing I did was to make sure my window environment variables were set:

IDF_PATH C:\Users<user name>\esp\esp-idf
MDF_PATH C:\Users<user name>\esp\esp-mdf

(restarted Windows to make sure the variables were active.)

FIRST RUNNING EXAMPLES IN PLACE (within the MDF install/examples directory)

I made all the following corrections that are listed.

  1. development_kit

A) Buddy (Failed to resolve component 'led_strip') AND Menuconfig won't load

Buddy is looking for the led_strip in the wrong place.

Changed this: ${IDF_PATH}/examples/peripherals/rmt/led_strip/components
To this: ${IDF_PATH}/examples/common_components/led_strip

ALSO - There is no Kconfig file to set the configuration for WS2812 LED (not needed????)

B) Button (OK)

C) Light (OK)

D) Sense (Executable exceeds partition sizes)

Changed partition sizes to this:

factory, app, factory, 0x30000, 1700K
ota_0, app, ota_0, 0x1E0000, 1700K
ota_1, app, ota_1, 0x390000, 1700K

  1. function_demo

A) mcommon (OK)
B) mconfig (OK)
C) mdebug (OK)
D) mupgrade (OK)
E) mwifi
console_test (OK)
mqtt_example (OK)
no_router (OK)
root_on_eithernet (OK)
router (OK)

  1. get_started (Ok)

  2. mesh_lite

A)rainmaker/LED_Light (OK)
B)router (OK)

  1. wireless_debug (OK)

NEXT -- I COPIED THE EXAMPLES DIRECTORY TO MY DESKTOP to compile and run menuconfig again...

The docs say clearly that these examples should compile anywhere on your computer.

In my case, all project were not correctly getting the MDF path. That path looked like it was set to a repository
on my desktop where I cloned several versions of the MDF. I don't know how that path gets into
the system (Git?). My Windows MDF PATH variable was being ignored.

The work around that I used was to go to each project's root CMakeLists.txt file and redirect the MDF_PATH by adding this one line marked below:

if(NOT DEFINED $ENV{MDF_PATH})
set(ENV{MDF_PATH} ${CMAKE_CURRENT_LIST_DIR}/../../..)
endif()

set(ENV{MDF_PATH} C:/Users//esp/esp-mdf) <--- Add this line to take control of that path variable

At this point, I verified again that all projects compiled and menuconfig ran.

mesh_lite/rainmaker/LED_Light has additional path problems. Components can not be found. I think this is all CMake related errors.

IF ANYONE HAS A MORE CORRECT SOLUTION TO THESE PROBLEMS PLEASE COMMENT. THANKS.

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

1 participant