ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By alinleonard
#31720 Updated the sdk , and esphttpd.

/opt/esp-open-sdk/esphttpd/libesphttpd
make

Code: Select allCC espfs/espfs.c
In file included from ./include/esp8266.h:11:0,
                 from espfs/espfs.c:23:
opt/esp-open-sdk/sdk/include/ets_sys.h:14:1: error: unknown type name 'uint32_t'
 typedef uint32_t ETSSignal;
In file included from ./include/esp8266.h:16:0,
                 from espfs/espfs.c:23:
/opt/esp-open-sdk/sdk/include/user_interface.h:328:1: error: unknown type name 'uint8_t'
 void wifi_promiscuous_set_mac(const uint8_t *address);
 ^
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 */
espfs/espfs.c: In function 'espFsInit':
espfs/espfs.c:77:6: error: 'uint32_t' undeclared (first use in this function)
  if((uint32_t)flashAddress > 0x40200000) {
cc1: all warnings being treated as errors
Makefile:155: recipe for target 'build/espfs/espfs.o' failed
make: *** [build/espfs/espfs.o] Error 1



note I can make sources like source-code-examples
:cry:
User avatar
By alinleonard
#31810
vnarmy wrote:You should then modify the file lib/heatshrink/heatshrink_decoder.h and change line 4 from
#include <stdint.h>
to
//#include <stdint.h>


did that , same error :

Code: Select allCC espfs/espfs.c
In file included from ./include/esp8266.h:11:0,
                 from espfs/espfs.c:23:
/opt/esp-open-sdk/sdk/include/ets_sys.h:14:1: error: unknown type name 'uint32_t'
 typedef uint32_t ETSSignal;
 ^
/opt/esp-open-sdk/sdk/include/ets_sys.h:15:1: error: unknown type name 'uint32_t'
 typedef uint32_t ETSParam;
n file included from ./include/esp8266.h:16:0,
                 from espfs/espfs.c:23:
/opt/esp-open-sdk/sdk/include/user_interface.h:328: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;
  ^
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 */
     ^
cc1: all warnings being treated as errors
Makefile:155: recipe for target 'build/espfs/espfs.o' failed
make: *** [build/espfs/espfs.o] Error 1





/opt/esp-open-sdk/esphttpd/libesphttpd/lib/heatshrink/heatshrink_decoder.h

Code: Select all#ifndef HEATSHRINK_DECODER_H
#define HEATSHRINK_DECODER_H

//#include <stdint.h>
#include <stddef.h>
#include "heatshrink_common.h"
#include "heatshrink_config.h"
User avatar
By alinleonard
#31818 Solved myself , tested and it did work.

For who wants to compile and has the error:

in /opt/esp-open-sdk/sdk/include/c_types.h

Change #if 0 to #if 1

For those who want more then that and want to know what #if 0 does , you can read here
http://stackoverflow.com/questions/2852913/what-exactly-does-an-if-0-endif-block-do