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 #85

Open
boyanio opened this issue Oct 30, 2019 · 5 comments
Open

Windows build #85

boyanio opened this issue Oct 30, 2019 · 5 comments
Assignees
Labels
❓ question Further information is requested

Comments

@boyanio
Copy link

boyanio commented Oct 30, 2019

Has anyone succeeded in building it for Windows? I have VC++ 2017 and what I did was:

  • Downloaded the SDK tools for PHP 7.1
  • Ran phpize.bat in the src folder to generate configure.bat
  • Ran configure.bat
  • Ran nmake, but got I lot of compilation errors like:
...\src\wasm.cc(124): warning C4003: not enough arguments for function-like macro invocation 'ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX'
...\src\wasm.cc(124): error C2059: syntax error: ','
...\src\wasm.cc(124): error C2143: syntax error: missing ';' before '}'
...\src\wasm.cc(124): error C2059: syntax error: '}'
...\src\wasm.cc(125): error C2059: syntax error: '}'
...\src\wasm.cc(125): error C2143: syntax error: missing ';'

I tried adding /std:c++14 to the cl.exe args, but to no avail. Any tips would be appreciated :)

@boyanio boyanio added the ❓ question Further information is requested label Oct 30, 2019
@Hywan
Copy link
Contributor

Hywan commented Nov 6, 2019

We are going to migrate our CI to include Windows. I'm likely to face the same issue, and I'll try to fix it :-).

@Hywan Hywan self-assigned this Nov 6, 2019
@boyanio
Copy link
Author

boyanio commented Nov 6, 2019

This sounds promising. I created a VM with Ubuntu for now, where I can do the compilation and test things. It works awesome btw - you check out my playground.

@Hywan
Copy link
Contributor

Hywan commented Nov 18, 2019

Thanks for your patience, it's appreciated!

@demurgos
Copy link

I just wanted to voice my support for this issue. I'd like to use Wasm in a PHP project but some contributors use Windows. Until wasm-php supports Windows, I can't use it unfortunately.

@mvorisek
Copy link

Is there any progress for Windows support?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants