ESP-IDF include additional paths

User avatar
kolban
Posts: 1517
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: ESP-IDF include additional paths

Postby kolban » Sun Mar 11, 2018 10:21 pm

In your story, it looks like the root of your project is C:\Work\Actisense\http_server2

beneath this will be your components. These are the source files that should be compiled and linked together to build your application. It further seems that you have source files in a distinct directory called C:\Work\\LibDev\CommonLib ... which by location, appears not to be a component in your project.

It is common for me to see all components living under the <Project>/components directory structure.

When you compile the source in CommonLib, what is the final output? Perhaps libCommonLib.a or something similar?
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Available for ESP32 consulting.

snahmad75
Posts: 159
Joined: Wed Jan 24, 2018 6:32 pm

Re: ESP-IDF include additional paths

Postby snahmad75 » Tue Mar 13, 2018 9:23 am

Can Anyone answer my query. I am waiting for reply.

snahmad75
Posts: 159
Joined: Wed Jan 24, 2018 6:32 pm

Re: ESP-IDF include additional paths

Postby snahmad75 » Tue Mar 13, 2018 10:08 am

Hi,

Yes Location of my CommonLib is not under C:\msys32\home\naeem\esp\esp-idf\components.

Our current code base is different folder structure.

C:\Work\LibDev\CommonLib has component.mk.

It is not generating libCommonLib.a static library. I need to specify correct rules to generate static library using GNU make. I am looking at this issue. any help will be appreciated.

Thanks,
Naeem

snahmad75
Posts: 159
Joined: Wed Jan 24, 2018 6:32 pm

Re: ESP-IDF include additional paths

Postby snahmad75 » Tue Mar 13, 2018 12:12 pm

Hi,

It looks like for all static libraries expected under esp-idf\components by find script in esp-idf\make\project.mk

COMPONENT_DIRS := $(PROJECT_PATH)/components $(EXTRA_COMPONENT_DIRS) $(IDF_PATH)/components $(PROJECT_PATH)/main

My component/library is in different folder. I guess I can add my path to above script line?

Thanks,
Naeem

snahmad75
Posts: 159
Joined: Wed Jan 24, 2018 6:32 pm

Re: ESP-IDF include additional paths

Postby snahmad75 » Tue Mar 13, 2018 8:48 pm

My issue is sorted

Adding my path to this line.
COMPONENT_DIRS := $(PROJECT_PATH)/components $(EXTRA_COMPONENT_DIRS) $(IDF_PATH)/components $(PROJECT_PATH)/main $(IDF_PATH)/LibDev

My IDF_PATH = c:\Work

Who is online

Users browsing this forum: No registered users and 3 guests