create program from scratch without make

joe@shkila.com
Posts: 6
Joined: Tue Nov 13, 2018 6:23 am

create program from scratch without make

Postby joe@shkila.com » Thu Jan 03, 2019 2:42 pm

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?

fivdiAtESP32
Posts: 47
Joined: Thu Dec 20, 2018 9:47 am

Re: create program from scratch without make

Postby fivdiAtESP32 » Fri Jan 04, 2019 4:13 pm


joe@shkila.com
Posts: 6
Joined: Tue Nov 13, 2018 6:23 am

Re: create program from scratch without make

Postby joe@shkila.com » Sun Jan 06, 2019 5:53 am

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.

fivdiAtESP32
Posts: 47
Joined: Thu Dec 20, 2018 9:47 am

Re: create program from scratch without make

Postby fivdiAtESP32 » Sun Jan 06, 2019 10:18 am

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.

joe@shkila.com
Posts: 6
Joined: Tue Nov 13, 2018 6:23 am

Re: create program from scratch without make

Postby joe@shkila.com » 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?

fivdiAtESP32
Posts: 47
Joined: Thu Dec 20, 2018 9:47 am

Re: create program from scratch without make

Postby fivdiAtESP32 » Mon Jan 07, 2019 7:17 pm

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.

Who is online

Users browsing this forum: MicroController and 116 guests