Example Code Not Working

sperrys
Posts: 1
Joined: Tue Jul 10, 2018 9:46 pm

Example Code Not Working

Postby sperrys » Tue Jul 10, 2018 11:02 pm

Hi all,

Sorry if this is the wrong place to ask, but i'm having some troubles getting some example code to compile correctly, specifically the openssl_server example in the protocol section.

I run "make flash" in the project directory and keep getting make issues with the certificate files?

Code: Select all

make[1]: *** No rule to make target `/Users/sperry/workbench/switch/physical/bare_bones/esp/esp32_mustard_1_0/components/openssl_server/certs/prvtkey.pem', needed by `embed_txt/prvtkey.pem'.  Stop.
I'm not sure what to make of this. Does COMPONENT_EMBED_TXTFILES need a file system mounted? How do people typically go about debugging these types of issues with esp-idf?

Trying esp-idf over mongoose os right now, could use some advice from someone in the know.

Thank you!

Spencer

chegewara
Posts: 2362
Joined: Wed Jun 14, 2017 9:00 pm

Re: Example Code Not Working

Postby chegewara » Wed Jul 11, 2018 1:27 am

Seems you are missing this file:
openssl_server/certs/prvtkey.pem

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Example Code Not Working

Postby ESP_Angus » Wed Jul 11, 2018 7:38 am

Hi Spencer,

What ESP-IDF version are you using? How are you building the example, in the ESP-IDF directory or have you copied it somewhere else?

In the openssl_server example (examples/protocols/openssl_server), the file main/component.mk should have a line which embeds prvtkey.pem. That file is located in the same "main" directory.

Your error seems to indicate a directory called .../components/openssl_server . This directory doesn't exist in ESP-IDF, have you moved or copied some files into this directory? If there is a component.mk file in this directory, any COMPONENT_EMBED_TXTFILES in that file will expect the path to be relative to the component path.

You can read some more about this, here:
https://docs.espressif.com/projects/esp ... inary-data

Who is online

Users browsing this forum: No registered users and 84 guests