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

Compiling in and for windows platform #90

Open
apnakahata opened this issue May 8, 2023 · 3 comments
Open

Compiling in and for windows platform #90

apnakahata opened this issue May 8, 2023 · 3 comments

Comments

@apnakahata
Copy link

Hi!,

I am just a newbie to PHP. It look like that this library is for Linux. But I want to test this library in windows platform (Currently using Windows 11, PHP version - 7.4.33, and VS Code as a PHP Editor) and want to compile it as php-sweph.dll.
Will you please guide or help me (Step by step if possible) in this regard.

@kevindecapite
Copy link
Collaborator

I haven't tried building the extension on Windows but I know that it works. Please see this thread and see if it helps you:

#79

@apnakahata
Copy link
Author

apnakahata commented May 9, 2023

Thanks for your response. I have already gone through these. As per I know, to build a PHP extension in Windows, a configuration file named config.w32 is needed in the root folder, but this repo doesn't have one and unfortunately I am unable to generate a correct config.w32.

I will be really grateful if anyone provide me precompiled windows builds (php_swephp.dll) just like swephp.so is available to download

@kevindecapite
Copy link
Collaborator

kevindecapite commented May 10, 2023

Have you read through these docs?

https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2

Edit:
Ignore this comment. The link is already referenced in #79 which you stated you worked through already.

It looks like we need to create a config.w32 file to support compiling this extension in Windows. Unfortunately, I don't have the time to work on this right now. I also don't have a good Windows machine setup for testing.

My best suggestion is to encourage you to find a Linux-based environment to use this extension on; or if you are able to begin working on the config.w32 file yourself, I would be happy to help test and troubleshoot if you can take the lead writing it.

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

2 participants