Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Build #33

Open
Vitch612 opened this issue Jul 25, 2024 · 0 comments
Open

Windows Build #33

Vitch612 opened this issue Jul 25, 2024 · 0 comments

Comments

@Vitch612
Copy link

Vitch612 commented Jul 25, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant