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

User avatar
By CheapB
#1923 Official GCC + official SDK = all good :-)

I have generated the bins, but i have not flashed them yet.

Win7 host. Only problem was i had named my host share for 'share' and that gave me a protocol error as I was trying to mount the shared folder in the guest environment. Changing the name to 'Share' on the host side fixed the problem.
User avatar
By chris
#1944 Official VM and SDK to work indeed (OS X host). I compiled the AT and the IoT_Demo example without errors.

I also flashed the demos with esptool.py:
edit: this might be faulty though. Later I got the chip into loopy crashes.
Code: Select all./esptool.py --port /dev/ttyUSB0 write_flash 0x00000 bin/eagle.app.v6.flash.bin
./esptool.py --port /dev/ttyUSB0 write_flash 0x40000 bin/eagle.app.v6.irom0text.bin


I'll try that incredible Minecraft / Dumbcraft server next since I cannot get code cobbled together which lets me connect to a SOFTAP on my own yet. It times out or gives authorization errors. Probably my bad though, did not read enough code yet to understand how the ESP8266 actually works ;-)
User avatar
By gerardwr
#2092
chris wrote:Official VM and SDK to work indeed (OS X host). I compiled the AT and the IoT_Demo example without errors.

Hi,

I could really use some help in getting the make to run under OSX.

I have installed the VM (from Google Drive) under VirtualBox (4.3.10) acc. to the README on Google Drive. All is well until 'make" (step 6 in the Compile section). It results into a „permission denied” error.

I have downloaded the latest esp_iot_sdk_v0.9.2 dated 24-20-2014.

Below output from 'ls' and 'make'. I also tried "sudo make", but that results in another error :-(

Would appreciate some help, because I have spent many hours reading the forum and testing, so I’m really stuck here.

Kind regards,
Gerard.

===================================

Code: Select allesp8266@esp8266-VirtualBox:~/Share/esp_iot_sdk_v0.9.2/app$ ls -al
total 16
drwxr-xr-x 1 root root  408 10月 31 18:58 .
drwxr-xr-x 1 root root  408 10月 31 18:31 ..
drwxr-xr-x 1 root root  340 10月 24 23:45 driver
-rwxr-xr-x 1 root root  931 10月 23 01:10 gen_misc.bat
-rwxr-xr-x 1 root root  730 10月 22 23:23 gen_misc_plus.bat
-rwxr-xr-x 1 root root  865 10月 23 00:48 gen_misc.sh
drwxr-xr-x 1 root root  646 10月 24 23:52 include
drwxr-xr-x 1 root root  170 10月 24 23:45 json
drwxr-xr-x 1 root root  238 10月 24 23:45 lwip
-rwxr-xr-x 1 root root 3450 10月 24 23:51 Makefile
drwxr-xr-x 1 root root  204 10月 24 23:45 ssl
drwxr-xr-x 1 root root  442 10月 31 18:32 user
esp8266@esp8266-VirtualBox:~/Share/esp_iot_sdk_v0.9.2/app$



Code: Select allesp8266@esp8266-VirtualBox:~/Share/esp_iot_sdk_v0.9.2/app$ make
make[1]: Entering directory `/mnt/Share/esp_iot_sdk_v0.9.2/app/user'
DEPEND: xt-xcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -I include -I ./ -I ../../include/ets -I ../include -I ./ -I ../../include -I ../../include/eagle user_webserver.c
/bin/sh: 2: cannot create .output/eagle/debug/obj/user_webserver.d.5290: Permission denied
DEPEND: xt-xcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -I include -I ./ -I ../../include/ets -I ../include -I ./ -I ../../include -I ../../include/eagle user_sensor.c
<snip>


Code: Select allesp8266@esp8266-VirtualBox:~/Share/esp_iot_sdk_v0.9.2/app$ sudo make
make[1]: Entering directory `/mnt/Share/esp_iot_sdk_v0.9.2/app/user'
DEPEND: xt-xcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -I include -I ./ -I ../../include/ets -I ../include -I ./ -I ../../include -I ../../include/eagle user_webserver.c
/bin/sh: 2: xt-xcc: not found
DEPEND: xt-xcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -I include -I ./ -I ../../include/ets -I ../include -I ./ -I ../../include -I ../../include/eagle user_sensor.c
/bin/sh: 2: xt-xcc: not found
<snip>