- Thu Jul 23, 2015 9:41 am
#24017
eriksl wrote:Can you compile an earlier release?
Can you show some errors (in English please )
Are you using the latest opensdk (from sdk 1.2.0)?
I am thinking of the bunch of warnings I enabled and that are now generating errors; maybe you have a compiler version that's too old and doesn't understand these options. What gcc are you using, xtensa-lx106-elf-gcc -v. Did you include this gcc into your PATH? Unfortunately some other tools (like esptool.py) also rely on the bin tools being in the PATH so you must set it anyway: export PATH=$PATH:<path to opensdk>/xtensa-lx106-elf/bin
Thanks for your fast reply!
- I´m using esp_iot_sdk_v1.2.0
- My gcc version: 4.8.2 (crosstool-NG 1.20.0)
- concerning PATH should all be right as you mentioned
her are errors I get:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
esp8266@esp8266-VirtualBox:/opt/Espressif/New/esp8266-universal-io-bridge-8$ make clean
CLEAN
esp8266@esp8266-VirtualBox:/opt/Espressif/New/esp8266-universal-io-bridge-8$ make
CC application.c
In file included from util.h:8:0,
from gpios.h:5,
from config.h:5,
from application.h:4,
from application.c:1:
/opt/Espressif/New/esp-open-sdk/sdk/include/c_types.h:15:29: error: conflicting types for 'uint32_t'
typedef unsigned long uint32_t;
^
In file included from uart.h:4:0,
from config.h:4,
from application.h:4,
from application.c:1:
/opt/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.2/include/stdint.h:85:22: note: previous declaration of 'uint32_t' was here
typedef unsigned int uint32_t;
^
In file included from util.h:8:0,
from gpios.h:5,
from config.h:5,
from application.h:4,
from application.c:1:
/opt/Espressif/New/esp-open-sdk/sdk/include/c_types.h:17:29: error: conflicting types for 'int32_t'
typedef signed long int32_t;
^
In file included from uart.h:4:0,
from config.h:4,
from application.h:4,
from application.c:1:
/opt/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.2/include/stdint.h:84:20: note: previous declaration of 'int32_t' was here
typedef signed int int32_t;
^
In file included from gpios.h:5:0,
from config.h:5,
from application.h:4,
from application.c:1:
util.h:9:19: fatal error: osapi.h: No such file or directory
#include <osapi.h>
^
compilation terminated.
make: *** [application.o] Error 1
esp8266@esp8266-VirtualBox:/opt/Espressif/New/esp8266-universal-io-bridge-8$
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Thank you for your help!