how to generate a httpd_fsdata.c

yyang2000 wrote on Friday, January 29, 2010:

Hi,

I wonder if any one can tell me how to generate a httpd_fsdata.c and httpd_strings.c files from  the shtml files if they are modified. I saw there are two files, makefsdata and makefsstrings, under the webserver subdirectory, but I don’t have idea how to use them.  What is the command syntax or usage?

I am using the demo project of CORTEX_LM3Sxxxx_IAR_Keil from FreeRTOS v5.03.

Thanks,
Bill

davedoors wrote on Saturday, January 30, 2010:

makefsdata is a perl script so you need to have perl installed to use it. If you are using Linux you can probably just type “makefsdata”. If you are using windows then you will have to type “perl makefsdata”.

yyang2000 wrote on Monday, February 01, 2010:

Hi Davedoors,

Thank you for your help, but I wonder if there is any option associated with this makefsdata command. I also curious why FREERTOS put this webserver sample in to the demo without any description of how to use/modify the webserver, for example, a README file. I saw Luminary StellarisWare demo that there is a makefsdata file with usages to explain how to use it. I wonder if they (from FREERTOS and Luminary) are the similar to or comparable, so I just use it to generate a http_fsdata.c?

Regards,
Bill

rtel wrote on Monday, February 01, 2010:

Take a look at the uIP WEB site - they have the documentation there.

Regards.

stf12 wrote on Tuesday, February 02, 2010:

Hi Bill,
I make a simple Windows GUI to generate the read-only file system image suitable with lwIP web server.
Launch it and then press the Open button, select the root_folder of your web server files and then select the output C source file. That’s all. It should work.
If you want to try, you find it (Make_fsdata) as attachment at the bottom of the following web page: http://developers.stf12.net/Ethernet-demo

Regards,
Stefano