-->
Page 1 of 1

Can't get it to compile - idiocy on my part, no doubt...

PostPosted: Tue Apr 28, 2015 11:13 pm
by LEDAero
I am on a Mac OS X system - 10.10.3 (Yosemite)

I installed the toolchain and tried a couple of compiles of other stuff.

Then I git cloned and followed the instructions in the README - including setting up heatshrink.

But when I went to make, I got this:

http://pastebin.com/C0KsNjz4

Re: Can't get it to compile - idiocy on my part, no doubt...

PostPosted: Wed Apr 29, 2015 2:06 am
by Sprite_tm
That's a bit of weirdness in the SDK... basically, there's some futzing around wit stdint.h if you use the SDK in some way.

Could you try editing the Makefile of esphttpd and removing -D_STDINT_H from the CFLAGS?

Re: Can't get it to compile - idiocy on my part, no doubt...

PostPosted: Tue May 26, 2015 10:46 pm
by piperpilot
I tried this, and it seems to get past that error, now I get:

make
CC espfs/espfs.c
In file included from include/esp8266.h:17:0,
from espfs/espfs.c:23:
include/espmissingincludes.h:43:5: error: conflicting types for 'os_random'
int os_random();
^
In file included from include/esp8266.h:14:0,
from espfs/espfs.c:23:
/Volumes/esp-open-sdk/esp-open-sdk/sdk/include/osapi.h:45:15: note: previous declaration of 'os_random' was here
unsigned long os_random(void);
^
make: *** [build/espfs/espfs.o] Error 1

Any thoughts?

Re: Can't get it to compile - idiocy on my part, no doubt...

PostPosted: Fri May 29, 2015 9:33 am
by Sprite_tm
Yep. In include/espmissingincludes.h, remove the offending os_random line and you should be fine. I'll try and patch it out asap.