<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Building / Compiling From Source</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="mysql-xdevapi.configuration.html">Runtime Configuration</a></div> <div class="next" style="text-align: right; float: right;"><a href="mysql-xdevapi.constants.html">Predefined Constants</a></div> <div class="up"><a href="mysql-xdevapi.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="mysql-xdevapi.build" class="section"> <h2 class="title">Building / Compiling From Source</h2> <p class="para"> Considerations for compiling this extension from source. </p> <ul class="itemizedlist"> <li class="listitem"> <p class="para"> The extension name is 'mysql_xdevapi', so use <em>--enable-mysql-xdevapi</em>. </p> </li> <li class="listitem"> <p class="para"> Boost: required, optionally use the --with-boost=DIR configure option or set the MYSQL_XDEVAPI_BOOST_ROOT environment variable. Only the boost header files are required; not the binaries. </p> </li> <li class="listitem"> <p class="para"> Google Protocol Buffers (protobuf): required, optionally use the --with-protobuf=DIR configure option or set the MYSQL_XDEVAPI_PROTOBUF_ROOT environment variable. </p> <p class="para"> Windows specific protobuf note: depending on your environment, the static library with a multi-threaded DLL runtime may be needed. To prepare, use the following options: <em class="emphasis">-Dprotobuf_MSVC_STATIC_RUNTIME=OFF -Dprotobuf_BUILD_SHARED_LIBS=OFF</em> </p> </li> <li class="listitem"> <p class="para"> Google Protocol Buffers / protocol compiler (protoc): required, ensure that proper 'protoc' is available in the PATH while building. It is especially important as Windows PHP SDK batch scripts may overwrite the environment. </p> </li> <li class="listitem"> <p class="para"> Bison: required, and available from the PATH. </p> <p class="para"> Windows specific bison note: we strongly recommended that bison delivered with the chosen PHP SDKis used else an error similar to "zend_globals_macros.h(39): error C2375: 'zendparse': redefinition; different linkage Zend/zend_language_parser.h(214): note: see declaration of 'zendparse'" may be the result. Also, Windows PHP SDK batch scripts may overwrite the environment. </p> </li> <li class="listitem"> <p class="para"> Windows Specific Notes: To prepare the environment, see the official Windows build documentation for either <a href="http://wiki.php.net/internals/windows/stepbystepbuild" class="link external">» the original SDK</a> (older, PHP-7.1 only) or <a href="http://wiki.php.net/internals/windows/stepbystepbuild_sdk_2" class="link external">» the current SDK</a> (PHP-7.1 or newer). </p> <p class="para"> We recommend using the backslash '\\' instead of a slash '/' for all paths. </p> </li> </ul> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="mysql-xdevapi.configuration.html">Runtime Configuration</a></div> <div class="next" style="text-align: right; float: right;"><a href="mysql-xdevapi.constants.html">Predefined Constants</a></div> <div class="up"><a href="mysql-xdevapi.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>