Re: Building PHP, questions
| From: | Kevin Ingwersen | Date: | Thu, 13 Mar 2014 19:34:27 +0000 |
| Subject: | Re: Building PHP, questions | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-73121@lists.php.net to get a copy of this message | ||
The main platforms are supposed to be Windows, Linux and Mac. The largest problem that I am
encountering is with the varity of compilers and build systems. The build system I am working has an
auto-detect feature for compilers, and can handle compiling in a rather fast way (its about to learn
parallel building by default). Building PHP on Windows is a pita, if you cant use Visual Studio’s
command line - I am usualy building with mingw, but trying to make mingw portable, is problematic.
In the end, the project will be capable of packing userdata into its binary, by creating a zip file,
converting it into a C string (char array) and then running it. But most users won’t have a build
system or such, so I am trying to create some kind of „automatic build“ - which can easily be
achieved with the build system that I am using. Once it’s few files are compiled, it works cross
platform and can handle anything from selecting compilers to generating files. Its less of a hassle
than letting people set up mingw first - cause I can just ship a portable version of MinGW that can
do the job.
It probably sounds much like gibberish, because I am kind of sleepy too. But in general, I want to
avoid making even more dependencies. Theo the rlibrarys in use were ported from CMake and are
relatively small. So I wanted to port PHP to that build system to keep things in one place.
Am 13.03.2014 um 19:59 schrieb Johannes Schlüter <johannes@schlueters.de>:
> On Thu, 2014-03-13 at 19:50 +0100, Kevin Ingwersen wrote:
>> Hey.
>>
>> Yes, all dependencies are being ported to that build system. PHP is
>> the biggest dependency though. There are many scripting languages I
>> like, that are even small (ph7, objectscript) - but I trust the
>> original PHP the most - so I wish to use it in my project. Hence, to
>> make it compatible with my project, I also need to make it build-able
>> in my project.
>
> what kind of platform/system is that, that not even cross-compiling
> (which isn't fully supported but still simpler than recreating a build
> system) and statically linking won't work?
>
> johannes
>