Page 2 of 2

Re: ESP-IDF include additional paths

Posted: Sun Mar 11, 2018 10:21 pm
by kolban
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?

Re: ESP-IDF include additional paths

Posted: Tue Mar 13, 2018 9:23 am
by snahmad75
Can Anyone answer my query. I am waiting for reply.

Re: ESP-IDF include additional paths

Posted: Tue Mar 13, 2018 10:08 am
by snahmad75
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

Re: ESP-IDF include additional paths

Posted: Tue Mar 13, 2018 12:12 pm
by snahmad75
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

Re: ESP-IDF include additional paths

Posted: Tue Mar 13, 2018 8:48 pm
by snahmad75
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