Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By elektronika_ba
#12549 I too am having problems with new SDK, it simply wouldn't compile. This is what I get when I try compiling their IoT_demo:

Code: Select allesp8266@esp8266-VirtualBox:~/Share/esp_iot_sdk_v1.0.0/examples/IoT_Demo$ ./gen_misc.sh Please follow below steps(1-5) to generate specific bin(s):
STEP 1: choose boot version(0=boot_v1.1, 1=boot_v1.2+, 2=none)
enter(0/1/2, default 2):

boot mode: none

STEP 2: choose bin generate(0=eagle.flash.bin+eagle.irom0text.bin, 1=user1.bin, 2=user2.bin)
enter (0/1/2, default 0):

generate bin: eagle.flash.bin+eagle.irom0text.bin

STEP 3: choose spi speed(0=20MHz, 1=26.7MHz, 2=40MHz, 3=80MHz)
enter (0/1/2/3, default 2):

spi speed: 40 MHz

STEP 4: choose spi mode(0=QIO, 1=QOUT, 2=DIO, 3=DOUT)
enter (0/1/2/3, default 0):

spi mode: QIO

STEP 5: choose spi size(0=256KB, 1=512KB, 2=1024KB, 3=2048KB, 4=4096KB)
enter (0/1/2/3/4, default 1):

spi size: 512 KB


start...

make: Nothing to be done for `FORCE'.
esp8266@esp8266-VirtualBox:~/Share/esp_iot_sdk_v1.0.0/examples/IoT_Demo$


I always get this "make: Nothing to be done for `FORCE'." message.

Anyone got any ideas?
User avatar
By elektronika_ba
#12553 I forgot that I had to copy project into root folder of SDK. Now it works!

Solution: Don't compile in this folder: esp_iot_sdk_v1.0.0\examples\IoT_Demo, instead copy IoT_Demo folder into esp_iot_sdk_v1.0.0\ and then compile it in esp_iot_sdk_v1.0.0\IoT_Demo.
User avatar
By zhivko
#12744
elektronika_ba wrote:I forgot that I had to copy project into root folder of SDK. Now it works!

Solution: Don't compile in this folder: esp_iot_sdk_v1.0.0\examples\IoT_Demo, instead copy IoT_Demo folder into esp_iot_sdk_v1.0.0\ and then compile it in esp_iot_sdk_v1.0.0\IoT_Demo.

I have same problem - can you be little more specific? What folder to copy where ?
User avatar
By paritosharya007
#19711 Did you ever manage to get around this problem? I have been struggling to get it working for last 2 days....I always either end up with

1) When the IoT_Demo is at the same level as esp-open-sdk folder.

make: Nothing to be done for `FORCE'.

or

2) When IoT_Demo is in esp-open-sdk-->esp_iot_sdk_v1.1.0--> sdk-->app folder

../../Makefile:229: warning: overriding commands for target `clean'
../Makefile:300: warning: ignoring old commands for target `clean'
You cloned without --recursive, fetching submodules for you.
git submodule update --init --recursive
make -C crosstool-NG -f ../Makefile _ct-ng
make: *** crosstool-NG: No such file or directory. Stop.
make: *** [crosstool-NG/ct-ng] Error 2

error.