Page 1 of 1

create program from scratch without make

Posted: Thu Jan 03, 2019 2:42 pm
by joe@shkila.com
Hi,
I'm new to ESP32
i saw some examples that use make file to create a program

how can i built a program from scratch in eclipse? without the use of make?
for instance, blink project?

Re: create program from scratch without make

Posted: Fri Jan 04, 2019 4:13 pm
by fivdiAtESP32

Re: create program from scratch without make

Posted: Sun Jan 06, 2019 5:53 am
by joe@shkila.com
Hi,
Thank you for the reply
however, i've seen most of the examples and they using make files, and i don't know how to add another library
for instance, in the blink example i want to add esp_bt_dev_get_address which in bt/bluedroid/api/include but i can't

I want to start a new program in eclipse write the program i want, attach the includes myself and libraries
and then build and flush
Is it possible?

i know that the examples are build with make files.
It's fine for me the create make file from my program and then build and flush it with the make command.

Re: create program from scratch without make

Posted: Sun Jan 06, 2019 10:18 am
by fivdiAtESP32
Take a look at this video: https://www.youtube.com/watch?v=-ttiPfmrehU

At 4:08 the video describes how to configure where to look for header files, including those in components/bt/bluedroid/api/include.

The file used to import the include path settings in the video is part of ESP32 Snippets and can be found here: https://github.com/nkolban/esp32-snippe ... cludes.xml

Note that the video is about building a C++ application using Eclipse.

Re: create program from scratch without make

Posted: Mon Jan 07, 2019 5:38 am
by joe@shkila.com
Thank you for the link
i've watched the video
i've import the xml
i've encounter a problem: cygwin/types:no such file or directory
so i've creted one in newlib and pass the types.h from sys folder into cygwin folder (that i've created)

now it shows me another problem:
C:\esp-idf/components/freertos/include/freertos/FreeRTOSConfig.h:73:10: fatal error: sdkconfig.h: No such file or directory
the sdkconfig.h is inside the program folder and i've include it in the program, the program is the blink example, but without the make files, just the code

how can i make FreeRTOSConfig.h know sdkconfig.h?

Re: create program from scratch without make

Posted: Mon Jan 07, 2019 7:17 pm
by fivdiAtESP32
joe@shkila.com wrote:
Mon Jan 07, 2019 5:38 am
Thank you for the link
i've watched the video
i've import the xml
i've encounter a problem: cygwin/types:no such file or directory
so i've creted one in newlib and pass the types.h from sys folder into cygwin folder (that i've created)

now it shows me another problem:
C:\esp-idf/components/freertos/include/freertos/FreeRTOSConfig.h:73:10: fatal error: sdkconfig.h: No such file or directory
the sdkconfig.h is inside the program folder and i've include it in the program, the program is the blink example, but without the make files, just the code

how can i make FreeRTOSConfig.h know sdkconfig.h?

It looks like your system isn't configured correctly. Creating a directory called cygwin/types in newlib is almost certainly not the correct thing to do. I'm not sure what's going on.