Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to compile PHP DLL extension x86 x64

I am trying to set up some sort of a nightly build environment that would compile both a x64 and x86 version of a PHP DLL extension.

I have followed this guide to set up the environment and build the extension and it works fine.

At the moment I have two virtual machines, one with x86 and one with x64 versions of Windows (XP and 7).

Is there a way to build both DLLs (32 and 64 bit) in the same virtual machine (I presume this would be the Windows 7 one) using a batch file?

My goal is to set a nightly build "server" but also be able to compile DLLs with the push of a button.

Thanks for any pointers.

The machines that compile the DLLs have Visual Studio 2008 Express and Windows SDK 6 (for the x86) and 7 (for the x64)

like image 665
Nikolaos Dimopoulos Avatar asked Oct 20 '12 13:10

Nikolaos Dimopoulos


1 Answers

In Visual Studio under project properties you fill find Build tab. Clicking on Build tab will show you a dropdown with label Platform target. You can set it to x86 and give it a try. If that fails then you may try with the other option Any CPU..

like image 97
000 Avatar answered Nov 10 '22 01:11

000