pico-w-webserver-example icon indicating copy to clipboard operation
pico-w-webserver-example copied to clipboard

makefsdata - PERL program doesn't find any file inside fs folder

Open cmarcante opened this issue 2 years ago • 1 comments

Thanks, your example is very good and unique. I'm working with pi pico with C and Windows 10 (Spanish version).

I have problems with the file "my_fsdata.c" the the content is #define FS_ROOT file #define FS_NUMFILES 0

It means, no file was found and an error was reported by the cmake. ->FIND: formato de parámetros incorrecto<- or "FIND wrong parameter format".

I have the files from your example, into the project. \src\fs\index.html \src\fs\ssi.shtml The Perl file is running from \src\external

The PERL version is : This is perl 5, version 32, subversion 1 (v5.32.1) built for MSWin32-x64-multi-thread

The find line is: chdir("fs"); open(FILES, "find . -type f |");

Please, do you know which can be the problem into this PERL file ? Thanks Carlos

cmarcante avatar Sep 22 '22 18:09 cmarcante

Hi Carlos! Thank you for the interest in the project! Your problems are connected to the makefsdata script not being compatible with windows. You can see #1 for more details about it. You can try using @rspeir fork and the python script, or run this project inside Windows subsystem for Linux. I'm planning to publish a pull request for the lwIP project making the perl script platform agnostic, but haven't found the time to do that yet...

krzmaz avatar Sep 23 '22 05:09 krzmaz