Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By jjshortcut
#7902
ulko wrote:
esphttpd.zip
Hi CHERTS,
I think there are still problems with generating webpages.espfs.
I have modified example esphttpd, adding dht22-part. Compile+flash without errors.
In browser calling index.tpl and led.tpl is OK. Calling dht22.tpl and wifi/wifi.tpl obviously style.css is not found
and website is not correctly built.
Using target htmlflash, all elements incl. style.css are processed. And led.tpl also uses style.css - and that website is OK!!??
In attachment you find the example - perhaps you could have a look at it?
Kind regards
ulko


Hi, how did you managed it to generate webpages.espfs? When I compile the project webpages.espfs is not generated at all in the esphttpd folder..?
User avatar
By Alex_S
#7923
jjshortcut wrote:Hi, how did you managed it to generate webpages.espfs? When I compile the project webpages.espfs is not generated at all in the esphttpd folder..?

There is special target: htmlFlash. The new webpages.espfs is generated before flashing.
If it is not generated:
1. Try to delete it before starting this target.
2. If it is still not generated - show us what is written in the console.
User avatar
By jjshortcut
#7926
Alex_S wrote:
jjshortcut wrote:Hi, how did you managed it to generate webpages.espfs? When I compile the project webpages.espfs is not generated at all in the esphttpd folder..?

There is special target: htmlFlash. The new webpages.espfs is generated before flashing.
If it is not generated:
1. Try to delete it before starting this target.
2. If it is still not generated - show us what is written in the console.


The console only shows:
08:46:59 **** Build of configuration Default for project esphttpd ****
mingw32-make.exe -f C:/Espressif/examples/esphttpd/Makefile all
CC user/httpd.c
CC user/heatshrink_decoder.c
CC user/cgiwifi.c
CC user/espfs.c
CC user/base64.c
CC user/wifi.c
CC user/auth.c
CC user/user_main.c
CC user/httpdespfs.c
CC user/cgi.c
CC user/io.c
CC user/stdout.c
AR build/httpd_app.a
LD build/httpd.out
FW firmware/0x00000.bin
FW firmware/0x40000.bin

08:47:05 Build Finished (took 6s.813ms)


I did a clean build and build the project, but the file is not generated. I'm running windows.

How (or when) do I run the htmlFlash? Is it not run during the build in eclipse? And I used to flash the chip using XTCOM..
User avatar
By Alex_S
#7932 Your log shows that you performed build all, not build htmlFlash.

"htmlFlash" is a separate target. It is placed near tragets "all" and "clean".
The build target "all" does not include generating of the webpages.espfs. So you need to make it by the htmlFlash target.

Which version of kit do you use? As I remember, his target was introduced in the kit version 1.05.