Can't compile esphttpd
Posted: Sun Aug 16, 2015 4:56 am
Hi,
Environment:
Ubuntu 14.04
Latest esp-open-sdk, compiled with STANDALONE=y
I tried
changing #if 0 to #if 1 in /opt/esp-open-sdk/sdk/include/c_types.h
commenting out #include <stdint.h>
with no success.
I'm including full console log below. Any help is appreciated. Thanks.
Environment:
Ubuntu 14.04
Latest esp-open-sdk, compiled with STANDALONE=y
I tried
changing #if 0 to #if 1 in /opt/esp-open-sdk/sdk/include/c_types.h
commenting out #include <stdint.h>
with no success.
I'm including full console log below. Any help is appreciated. Thanks.
Code: Select all
hazar@hazar-virtual-machine:~/Desktop/ESP/Eclipse$ git clone http://git.spritesserver.nl/esphttpd.git/
Cloning into 'esphttpd'...
Checking connectivity... done.
hazar@hazar-virtual-machine:~/Desktop/ESP/Eclipse$ cd esphttpd
hazar@hazar-virtual-machine:~/Desktop/ESP/Eclipse/esphttpd$ git submodule init
Submodule 'libesphttpd' (http://git.spritesserver.nl/libesphttpd.git/) registered for path 'libesphttpd'
hazar@hazar-virtual-machine:~/Desktop/ESP/Eclipse/esphttpd$ git submodule update
Cloning into 'libesphttpd'...
Checking connectivity... done.
Submodule path 'libesphttpd': checked out 'fc41eb64be45542943515d16cfaec73233c86e84'
hazar@hazar-virtual-machine:~/Desktop/ESP/Eclipse/esphttpd$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/esp-open-sdk/xtensa-lx106-elf/bin:/opt/esp-open-sdk/esptool:/opt/esp-open-sdk/xtensa-lx106-elf/bin:/opt/esp-open-sdk/esptool
hazar@hazar-virtual-machine:~/Desktop/ESP/Eclipse/esphttpd$ make
make[1]: Entering directory `/home/hazar/Desktop/ESP/Eclipse/esphttpd/libesphttpd'
Heatshrink isn't found. Checking out submodules to fetch it.
Submodule 'lib/heatshrink' (https://github.com/atomicobject/heatshrink.git) registered for path 'lib/heatshrink'
Cloning into 'lib/heatshrink'...
remote: Counting objects: 374, done.
remote: Total 374 (delta 0), reused 0 (delta 0), pack-reused 374
Receiving objects: 100% (374/374), 142.26 KiB | 0 bytes/s, done.
Resolving deltas: 100% (224/224), done.
Checking connectivity... done.
Submodule path 'lib/heatshrink': checked out '555f7cf0b0a508c2f804d4fdf6c1fd0d92f9a798'
CC espfs/espfs.c
In file included from ./include/esp8266.h:11:0,
from espfs/espfs.c:23:
/opt/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/include/ets_sys.h:14:1: error: unknown type name 'uint32_t'
typedef uint32_t ETSSignal;
^
/opt/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/include/ets_sys.h:15:1: error: unknown type name 'uint32_t'
typedef uint32_t ETSParam;
^
/opt/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/include/ets_sys.h:27:1: error: unknown type name 'uint32_t'
typedef uint32_t ETSHandle;
^
/opt/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/include/ets_sys.h:32:5: error: unknown type name 'uint32_t'
uint32_t timer_expire;
^
/opt/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/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:
/opt/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/include/user_interface.h:316: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: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);
^
cc1: all warnings being treated as errors
make[1]: *** [build/espfs/espfs.o] Error 1
make[1]: Leaving directory `/home/hazar/Desktop/ESP/Eclipse/esphttpd/libesphttpd'
make: *** [libesphttpd] Error 2