ESP Insight not recognized by Compiler

Vaibhav Singh
Posts: 8
Joined: Wed Jan 18, 2023 5:25 am

ESP Insight not recognized by Compiler

Postby Vaibhav Singh » Tue Mar 14, 2023 11:40 am

Hello All,

I am trying to integrate the ESP Insight feature into one of my projects but apparently whenever I am building the project it never recognizes the Insight header file esp_insight.h file I have made all the necessary addition in my root cmake file and my env variable and downloaded the necessary repo but I am unable to build my code

Code: Untitled.cmake Select all

[code]cmake_minimum_required(VERSION 3.16)


if(DEFINED ENV{INSIGHTS_PATH})
set(INSIGHTS_PATH $ENV{INSIGHTS_PATH})
else()
set(INSIGHTS_PATH ${CMAKE_CURRENT_LIST_DIR}/../..)
endif(DEFINED ENV{INSIGHTS_PATH})

# Add RainMaker components
set(EXTRA_COMPONENT_DIRS ${INSIGHTS_PATH}/components ${INSIGHTS_PATH}/examples/common)

set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/protocols/modbus/mb_example_common)



include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(Feb_RS485)[/code]

Can anyone Help me in identifying the problems ??
Attachments
Screenshot (31).png
Screenshot (31).png (9.92 KiB) Viewed 1456 times

ESP_alisitsyn
Posts: 221
Joined: Fri Feb 01, 2019 4:02 pm
Contact:

Re: ESP Insight not recognized by Compiler

Postby ESP_alisitsyn » Thu Mar 16, 2023 8:38 am

Hello, @Vaibhav Singh,

In your cmake file you added the mb_example_common incorrectly through EXTRA_COMPONENT_DIRS and the previous value set for RainMaker is overwritten. Please change the last line as below:

Code: Select all

......  the above lines of cmake file
# Add RainMaker components
set(EXTRA_COMPONENT_DIRS ${INSIGHTS_PATH}/components ${INSIGHTS_PATH}/examples/common)
list(APPEND EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/examples/protocols/modbus/mb_example_common")

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(Feb_RS485)
[/code]

Who is online

Users browsing this forum: Bytespider, PetalBot, Qwantbot and 7 guests