-->
Page 1 of 1

problem with first setup

PostPosted: Thu Oct 09, 2014 6:42 am
by nicoverduin
No doubt my lack of experience with Ubuntu 14.04 ... I have tried to do the first setup displayed on http://nurdspace.nl/ESP8266/First_setup.
I managed to get up to step 4 but when I tried to compile AT, the compiler stops giving the following messages
Code: Select allnico@nico-ubuntu:~/esp_sources/at$ make
CC driver/uart.c
CC user/at_baseCmd.c
CC user/at_cmd.c
CC user/at_ipCmd.c
In file included from /usr/include/stdlib.h:314:0,
                 from user/at_ipCmd.c:9:
/usr/include/i386-linux-gnu/sys/types.h:188:15: error: conflicting types for 'int32_t'
   typedef int int##N##_t __attribute__ ((__mode__ (MODE)))
               ^
/usr/include/i386-linux-gnu/sys/types.h:196:1: note: in expansion of macro '__intN_t'
 __intN_t (32, __SI__);
 ^
In file included from user/at_ipCmd.c:1:0:
/opt/Espressif/ESP8266_SDK/include/c_types.h:17:29: note: previous declaration of 'int32_t' was here
 typedef signed long         int32_t;
                             ^
make: *** [build/user/at_ipCmd.o] Error 1


Seems to me I f.cked up somewhere :mrgreen: Any help would be appreciated. I did install Eclipse C/C++ as well but I am assuming (I know.. I know "the mother of all f.ckups :mrgreen: :mrgreen: ) that both C compilers would be installed without interference.

Regards
Nico Verduin
Netherlands

Re: problem with first setup

PostPosted: Thu Oct 09, 2014 7:11 am
by igrr
As mentioned here:
In /opt/Espressif/ESP8266_SDK/include/c_types.h I had to comment out
//typedef signed long int32_t;

Re: problem with first setup

PostPosted: Thu Oct 09, 2014 7:19 am
by nicoverduin
God... if you were a girl :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen: fixed it thanks
Regards
Nico