Skip to content

Cant compile examples with MinGW-64 due to calls to linux speciffic "sed" and "cut" #78

@DiegoJArg

Description

@DiegoJArg

Hi people.

With MinGW from CMD, compiling libhttp works producing civetweb.exe which has a >7Mb memory footprint with a task-panel-app. I recently compiled mongoose's 'http-server' example which has 864kb memory footprint, now I am trying to test examples of libhttp but they wont compile neither with MinGW nor MSYS. ¿Is libhttp's 'ws_server' equivalent to mongoose's 'http-server' example?

I don't see the error calls on the example's Makefile, so my guess is that is linked to some other.

With MinGW

C:\Users\Note13\Downloads\libhttp-1.8\examples\hello>make
make -C ../.. clean lib
make[1]: Entering directory 'C:/Users/Note13/Downloads/libhttp-1.8'
process_begin: CreateProcess(NULL, cc -dumpmachine, ...) failed.
make[1]: Makefile:154: pipe: No error
"sed" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
"cut" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
rmdir /s /q out
El sistema no puede encontrar el archivo especificado.
make[1]: *** [Makefile:249: clean] Error 2
make[1]: Leaving directory 'C:/Users/Note13/Downloads/libhttp-1.8'
make: *** [Makefile:30: libcivetweb.a] Error 2

C:\Users\Note13\Downloads\libhttp-1.8\examples\hello>

With MSYS

Note13@Note13 MINGW32 ~/libhttp-1.8/examples/hello
$ make
C:/msys64/mingw32/bin/make.exe -C ../.. clean lib
make[1]: Entering directory 'C:/msys64/home/Note13/libhttp-1.8'
rmdir /s /q out
rmdir: failed to remove '/s': No such file or directory
rmdir: failed to remove '/q': No such file or directory
rmdir: failed to remove 'out': No such file or directory
make[1]: *** [Makefile:249: clean] Error 1
make[1]: Leaving directory 'C:/msys64/home/Note13/libhttp-1.8'
make: *** [Makefile:30: libcivetweb.a] Error 2

My original quest was to have a veryminimalistic webserver that I could just copy into a folder to serve them. Idea started to try to serve "mdwiki" locally, just to learn new things. I found mongoose, and then found libhttp as a MIT-licensed fork of mongoose, and I suspect that this basic goal can be achieved.

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions