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

Fix PHP MapScript build on Windows with CMake and Visual Studio 2012 Express #5346


Copy link

@AlexanderGabriel AlexanderGabriel commented Nov 9, 2016


i compiled php mapscript on Windows with Visual Studio 2012 Express and PHP-5.6.27. I used CMake, not the stuff from the documentation (i think, this is really outdated).
I'm not new to Mapserver and MapScript but new to github and not really experienced in this Windows-compiling stuff. I'm not quite sure if i'm doing this right but i'm looking forward to get feedback ;)

I had some Problems but i think i found good solutions for it. It compiles now on Windows with PHP-5.6.26-ts-x86-vc11. I'd like to provide some patches to improve the build-process for other Windows users in the future.

There is already a pull-request for the patch from tbonfort but it is not merged yet. i included it, because building will not work without.

I tested on linux. phpinfo() shows the extension so it seams i didn't break anything in the build system. maybe there are better tests to do before merging.

Thank you.

Kind regards,

Copy link

tbonfort commented Nov 22, 2016

Looks good to me, thanks @AlexanderGabriel. It would be really cool if you could create a wiki page here on github explaining the detailed steps you undertook to compile mapserver from source under windows, that we could send windows users to if/when they need to test a fix/patch on their own.

Copy link
Contributor Author

AlexanderGabriel commented Nov 26, 2016

That is a good Idea. I can do that. But wouldn't it be better to first merge this pull-request? Or should i point to my rep and the commits in the wiki-page until this got merged?
I've updated "README.WIN32" in / and at /mapscript/php (branch-7-0-UpdateWin32BuildInstructions in my rep) a few minutes ago. The content of the new readmes can be used for the wiki-page.
Should I open a new pull request for just updating docs or make a new pull-request for both, docs and patches to build on windows and we throw away this pull-request?

tbonfort pushed a commit that referenced this pull request Dec 5, 2016
Fixes error in maphttp.c.obj LNK2019  unresolved external symbol
"__imp__select@20" in function "_msHTTPExecuteRequests"
@tbonfort tbonfort added this to the 7.0.3 Release milestone Dec 5, 2016
Copy link

tbonfort commented Dec 5, 2016

Fixes applied to branch-7-0, thanks @AlexanderGabriel. Documentation updates can go in a new PR

@tbonfort tbonfort closed this Dec 5, 2016
@AlexanderGabriel AlexanderGabriel deleted the branch-7-0-fixphpmapscriptwin32buildwithcmake branch Dec 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants