ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By HSOLO
#55388 Hi
I am trying to make themirobot-wifi using the esp tool chain to which I am new -- I run into build issues related to libesphttpd; clearly I am doing something wrong but I am afraid I havent figured out whats wrong despite several hours of trying various things and searches -- the main initial obstacle is the one related to c_types.h / stdint.h .. I would greatly appreciate if someone could point me to a place which I could use to start to fix the issue


Below is the make log.




make USE_OPENSDK=yes
Squash html/index.html
MAKE libesphttpd/libesphttpd.a
make[1]: Entering directory `/home/rve/src/mirobot-wifi/libesphttpd'
CC espfs/espfs.c
In file included from ./include/esp8266.h:11:0,
from espfs/espfs.c:23:
/home/rve/src/esp-open-sdk/sdk/include/ets_sys.h:14:1: error: unknown type name 'uint32_t'
typedef uint32_t ETSSignal;
^
/home/rve/src/esp-open-sdk/sdk/include/ets_sys.h:15:1: error: unknown type name 'uint32_t'
typedef uint32_t ETSParam;
^
/home/rve/src/esp-open-sdk/sdk/include/ets_sys.h:27:1: error: unknown type name 'uint32_t'
typedef uint32_t ETSHandle;
^
/home/rve/src/esp-open-sdk/sdk/include/ets_sys.h:32:5: error: unknown type name 'uint32_t'
uint32_t timer_expire;
^
/home/rve/src/esp-open-sdk/sdk/include/ets_sys.h:33:5: error: unknown type name 'uint32_t'
uint32_t timer_period;
^
In file included from ./include/esp8266.h:16:0,
from espfs/espfs.c:23:
/home/rve/src/esp-open-sdk/sdk/include/user_interface.h:337:1: error: unknown type name 'uint8_t'
void wifi_promiscuous_set_mac(const uint8_t *address);
^
In file included from espfs/espfs.c:40:0:
espfs/espfsformat.h:25:2: error: unknown type name 'int32_t'
int32_t magic;
^
espfs/espfsformat.h:26:2: error: unknown type name 'int8_t'
int8_t flags;
^
espfs/espfsformat.h:27:2: error: unknown type name 'int8_t'
int8_t compression;
^
espfs/espfsformat.h:28:2: error: unknown type name 'int16_t'
int16_t nameLen;
^
espfs/espfsformat.h:29:2: error: unknown type name 'int32_t'
int32_t fileLenComp;
^
espfs/espfsformat.h:30:2: error: unknown type name 'int32_t'
int32_t fileLenDecomp;
^
In file included from espfs/espfs.c:45:0:
lib/heatshrink/heatshrink_decoder.h:45:5: error: unknown type name 'uint16_t'
uint16_t input_size; /* bytes in input buffer */
^
lib/heatshrink/heatshrink_decoder.h:46:5: error: unknown type name 'uint16_t'
uint16_t input_index; /* offset to next unprocessed input byte */
^
lib/heatshrink/heatshrink_decoder.h:47:5: error: unknown type name 'uint16_t'
uint16_t output_count; /* how many bytes to output */
^
lib/heatshrink/heatshrink_decoder.h:48:5: error: unknown type name 'uint16_t'
uint16_t output_index; /* index for bytes to output */
^
lib/heatshrink/heatshrink_decoder.h:49:5: error: unknown type name 'uint16_t'
uint16_t head_index; /* head of window buffer */
^
lib/heatshrink/heatshrink_decoder.h:50:5: error: unknown type name 'uint16_t'
uint16_t bit_accumulator;
^
lib/heatshrink/heatshrink_decoder.h:51:5: error: unknown type name 'uint8_t'
uint8_t state; /* current state machine node */
^
lib/heatshrink/heatshrink_decoder.h:52:5: error: unknown type name 'uint8_t'
uint8_t current_byte; /* current byte of input */
^
lib/heatshrink/heatshrink_decoder.h:53:5: error: unknown type name 'uint8_t'
uint8_t bit_index; /* current bit index */
^
lib/heatshrink/heatshrink_decoder.h:57:5: error: unknown type name 'uint8_t'
uint8_t window_sz2; /* window buffer bits */
^
lib/heatshrink/heatshrink_decoder.h:58:5: error: unknown type name 'uint8_t'
uint8_t lookahead_sz2; /* lookahead bits */
^
lib/heatshrink/heatshrink_decoder.h:59:5: error: unknown type name 'uint16_t'
uint16_t input_buffer_size; /* input buffer size */
^
lib/heatshrink/heatshrink_decoder.h:62:5: error: unknown type name 'uint8_t'
uint8_t buffers[];
^
lib/heatshrink/heatshrink_decoder.h:76:46: error: unknown type name 'uint16_t'
heatshrink_decoder *heatshrink_decoder_alloc(uint16_t input_buffer_size,
^
lib/heatshrink/heatshrink_decoder.h:77:5: error: unknown type name 'uint8_t'
uint8_t expansion_buffer_sz2, uint8_t lookahead_sz2);
^
lib/heatshrink/heatshrink_decoder.h:77:35: error: unknown type name 'uint8_t'
uint8_t expansion_buffer_sz2, uint8_t lookahead_sz2);
^
lib/heatshrink/heatshrink_decoder.h:89:5: error: unknown type name 'uint8_t'
uint8_t *in_buf, size_t size, size_t *input_size);
^
lib/heatshrink/heatshrink_decoder.h:94:5: error: unknown type name 'uint8_t'
uint8_t *out_buf, size_t out_buf_size, size_t *output_size);
^
espfs/espfs.c:54:2: error: unknown type name 'int32_t'
int32_t posDecomp;
^
espfs/espfs.c: In function 'espFsFlags':
espfs/espfs.c:122:2: error: unknown type name 'int8_t'
int8_t flags;
^
espfs/espfs.c: In function 'espFsOpen':
espfs/espfs.c:161:4: error: too many arguments to function 'pvPortMalloc'
r=(EspFsFile *)os_malloc(sizeof(EspFsFile)); //Alloc file desc mem
^
In file included from ./include/esp8266.h:18:0,
from espfs/espfs.c:23:
./include/espmissingincludes.h:37:7: note: declared here
void *pvPortMalloc(size_t xWantedSize);
^
espfs/espfs.c:180:5: error: implicit declaration of function 'heatshrink_decoder_alloc' [-Werror=implicit-function-declaration]
dec=heatshrink_decoder_alloc(16, (parm>>4)&0xf, parm&0xf);
^
espfs/espfs.c:180:8: error: assignment makes pointer from integer without a cast [-Werror]
dec=heatshrink_decoder_alloc(16, (parm>>4)&0xf, parm&0xf);
^
espfs/espfs.c: In function 'espFsRead':
espfs/espfs.c:234:5: error: implicit declaration of function 'heatshrink_decoder_sink' [-Werror=implicit-function-declaration]
heatshrink_decoder_sink(dec, (uint8_t *)ebuff, (elen>16)?16:elen, &rlen);
^
espfs/espfs.c:234:35: error: 'uint8_t' undeclared (first use in this function)
heatshrink_decoder_sink(dec, (uint8_t *)ebuff, (elen>16)?16:elen, &rlen);
^
espfs/espfs.c:234:35: note: each undeclared identifier is reported only once for each function it appears in
espfs/espfs.c:234:44: error: expected expression before ')' token
heatshrink_decoder_sink(dec, (uint8_t *)ebuff, (elen>16)?16:elen, &rlen);
^
espfs/espfs.c:238:4: error: implicit declaration of function 'heatshrink_decoder_poll' [-Werror=implicit-function-declaration]
heatshrink_decoder_poll(dec, (uint8_t *)buff, len-decoded, &rlen);
^
espfs/espfs.c:238:43: error: expected expression before ')' token
heatshrink_decoder_poll(dec, (uint8_t *)buff, len-decoded, &rlen);
^
espfs/espfs.c: In function 'espFsClose':
espfs/espfs.c:270:2: error: too many arguments to function 'vPortFree'
os_free(fh);
^
In file included from ./include/esp8266.h:18:0,
from espfs/espfs.c:23:
./include/espmissingincludes.h:40:6: note: declared here
void vPortFree(void *ptr);
^
cc1: all warnings being treated as errors
make[1]: *** [build/espfs/espfs.o] Error 1
make[1]: Leaving directory `/home/rve/src/mirobot-wifi/libesphttpd'
make: *** [libesphttpd/libesphttpd.a] Error 2
[/size]