trying to build static library: nothing happens

User avatar
mzimmers
Posts: 643
Joined: Wed Mar 07, 2018 11:54 pm
Location: USA

trying to build static library: nothing happens

Postby mzimmers » Fri Dec 06, 2019 4:51 pm

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...

txrossi
Posts: 3
Joined: Tue Oct 29, 2019 6:06 pm

Re: trying to build static library: nothing happens

Postby txrossi » Fri Dec 06, 2019 8:35 pm

Try to add the .h and .c files in src folder.

User avatar
mzimmers
Posts: 643
Joined: Wed Mar 07, 2018 11:54 pm
Location: USA

Re: trying to build static library: nothing happens

Postby mzimmers » Sun Dec 08, 2019 6:22 pm

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.

Who is online

Users browsing this forum: Bing [Bot] and 158 guests