Skip to content

Windows Build #33

@Vitch612

Description

@Vitch612

Compiling on windows does not work when done using the lz4 library source code. This can probably be fixed by producing the proper nmake makefiles for it. A quicker workaround is to compile the liblz4 visual studio project, take the produced library liblz4_static.lib rename it to liblz4.lib and put it in the folder:
<php source root>\no\lib\
Also copy the header files lz4.h and lz4hc.h to the folder
<php source root>\no\include\
If the desired outcome is an extension dll edit config.w32 in the lz4 extension folder and replace the EXTENSION lines with:
EXTENSION("lz4", "lz4.c", true, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
This last step is only necessary if someone like myself does not know how to get the PHP_LZ4_SHARED variable to have true as a value and a dll is preferred to a monolitic php build.

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