Search found 474 matches

by mzimmers
Wed Jul 01, 2020 3:28 pm
Forum: ESP32 IDF
Topic: Called idf_component_register from a non-component directory.
Replies: 0
Views: 85

Called idf_component_register from a non-component directory.

Hi all - I'm trying to get my project to build from an IDE (Qt Creator). I'm new to CMake, so this is a slow process. Currently, my error is: "Called idf_component_register from a non-component directory." I'm getting this error on line 1 of my main/CMakeLists.txt file. My top-level file contains th...
by mzimmers
Tue Jun 23, 2020 4:14 am
Forum: ESP32 IDF
Topic: building a 3rd party library
Replies: 23
Views: 1031

Re: building a 3rd party library

I'm currently using the ESP32-WROVER-E. I increased the flash size to 8MB and that eliminated the error. The IDE I'm using is Qt Creator. It's a wonderful code browser and editor, even if you can't use it to build. I'll look into this error tomorrow. So, I guess the next logical step would be to add...
by mzimmers
Tue Jun 23, 2020 2:06 am
Forum: ESP32 IDF
Topic: building a 3rd party library
Replies: 23
Views: 1031

Re: building a 3rd party library

I am guessing you didn't read any of the two (2) README files. :? Not carefully enough...mea culpa. I went ahead and copied the library under your project structure (I'm running on Windows and links/shortcuts don't always do what I want them to). It now builds and runs. Very nice work on your part....
by mzimmers
Mon Jun 22, 2020 2:27 pm
Forum: ESP32 IDF
Topic: building a 3rd party library
Replies: 23
Views: 1031

Re: building a 3rd party library

Hi nvannote - I tried building your repo, and got this error: CMake Error at C:/esp-idf/tools/cmake/component.cmake:283 (message): Include directory 'C:/esp32-projects/esp_ports/esp_srtp/components/srtp/libsrtp/include' is not a directory. Was I supposed to copy the Cisco library into my local copy ...
by mzimmers
Sun Jun 21, 2020 2:02 am
Forum: ESP32 IDF
Topic: building a 3rd party library
Replies: 23
Views: 1031

Re: building a 3rd party library

Thank you for all you're doing on this. At some time, I'd appreciate seeing your work in more detail. I'm still quite new to CMake and its nuances.
by mzimmers
Fri Jun 19, 2020 7:02 pm
Forum: ESP32 IDF
Topic: building a 3rd party library
Replies: 23
Views: 1031

Re: building a 3rd party library

So, I went ahead and created a components directory: Directory of C:\esp32-projects\wifi_libsrtp 06/19/2020 11:40 AM <DIR> . 06/19/2020 11:40 AM <DIR> .. 06/19/2020 11:51 AM <DIR> build 06/19/2020 10:45 AM 247 CMakeLists.txt 06/19/2020 10:33 AM <DIR> components 06/19/2020 11:13 AM <DIR> main 06/04/2...
by mzimmers
Fri Jun 19, 2020 4:20 pm
Forum: ESP32 IDF
Topic: building a 3rd party library
Replies: 23
Views: 1031

Re: building a 3rd party library

Thank you both. If I understand correctly, the term "library" as used in the ESP world doesn't refer to a pre-built .a file, but rather a collection of sources and build instructions. So, if I begin with, say, the Wifi example in the IDF, where in that directory structure should I place the code for...
by mzimmers
Fri Jun 19, 2020 12:52 pm
Forum: ESP32 IDF
Topic: (answered) Questions about OTA/bootloader
Replies: 7
Views: 1617

Re: (answered) Questions about OTA/bootloader

Hi Alex - in my case, I just used the NVS. My app maintains a circular buffer of 1024 entries of the following format: typedef int32_t ENTRY_INDEX; struct LogEntry { ENTRY_ID id; // unique number to identify entry. time_t timestamp; // unix time. uint8_t msgLength; // 0-255 bytes char msg[MAX_LOGMSG...
by mzimmers
Fri Jun 19, 2020 4:57 am
Forum: ESP32 IDF
Topic: building a 3rd party library
Replies: 23
Views: 1031

Re: building a 3rd party library

It doesn't sound like you're describing building a library -- maybe I'm misunderstanding something.

Do any of the examples show how to build a library? I'd really like to start with that.

Thanks...
by mzimmers
Thu Jun 18, 2020 2:33 pm
Forum: ESP32 IDF
Topic: building a 3rd party library
Replies: 23
Views: 1031

Re: building a 3rd party library

BTT...anyone have any advice here?

Go to advanced search