Page 1 of 1

trying to build static library: nothing happens

Posted: Fri Dec 06, 2019 4:51 pm
by mzimmers
Hi all -

I'm trying to create a static library for use with various ESP-IDF projects. I've done a lot of web searching, but haven't found exactly the instructions I was hoping to find. (Maybe what I'm trying to do doesn't make sense for the ESP/FreeRTOS environment.)

I created a project, modified the CMakeLists.txt file to include component.cmake (instead of project.cmake). When I run "idf.py build" it says "Project build complete" but I can't find any library file. I notice it recommends a flash command that includes build\rtp.bin (rtp is my project name) but no such file exists.

So, a couple questions:

1. is what I'm trying to do (create an .a file) the right approach?
2. if so, any ideas what I'm missing in my build setup to get a library created?

Thanks...

Re: trying to build static library: nothing happens

Posted: Fri Dec 06, 2019 8:35 pm
by txrossi
Try to add the .h and .c files in src folder.

Re: trying to build static library: nothing happens

Posted: Sun Dec 08, 2019 6:22 pm
by mzimmers
Add them to what, exactly?

It appears that everything compiled fine; it's just not creating a library. It's as though it doesn't think it needs to perform that step.