-
Notifications
You must be signed in to change notification settings - Fork 23
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
Compile in windows #16
Comments
Nevermind, kinda fixed it. Just remove the |
It still wont compile...
|
@Sandbird, did you successed? |
Unfortunately not. I ended up using the linux version for my testing platform which compiled just fine. Unfortunately my hoster would not help out and install the .so file though....so i decided to abandon the project. |
You use ARG_WITH in your config.w32; then you need to use |
I have created
Example of run configure: Then edited libpostal.h include path in And edited And this solved your problem, but now I have this:
Any suggestions? |
I think as quick fix, you can replace all occurrences of |
Thanks for the answer, it helped, it seems the extension was compiled. But now PHP cannot load it. |
First, you need the same build type for the extension and for PHP (NTS/ZTS has to match, same VC version, x86/x64 has to match). Then you have to make sure that all dependencies are available. You can check with |
Same( Tried different versions. Output:
|
deplister output looks good; maybe an issue because libpostal.dll has been compiled/link with MinGW? Did you try to build libpostal as a static lib, and use this? |
where do you got the libpostal.dll? have you tried to download the prebuild version from libpostal's build server? |
Thank you for answers, I tried with compiled libpostal.dll, and now I tried prebuild and it help to solve one more step, but again an error occurs: Seems that extension doesn't see libpostal data dir and I have no idea where I have to setup it. |
@hsh01 i got it compiled and up and running. had the same my solution:
test script works now but is really slow. many php operations like |
Thanks, it finally works. Indeed php has become slower. In any case, this is faster than using WSL. |
I am trying to compile this in Win10x64 but i am getting ''PHP_POSTAL' is undefined' when i do
configure.bat --disable-all --enable-cli --enable-php-postal
I think its because my config.w32 is wrong.
Anyone figured out how to compile this in windows ? I want to create a .dll version for php7.0
-Thanks
The text was updated successfully, but these errors were encountered: