Re: DLL build for PHP 7.2 and 7.3
| From: | Jan Ehrhardt | Date: | Fri, 04 Jan 2019 07:01:14 +0000 |
| Subject: | Re: DLL build for PHP 7.2 and 7.3 | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-15665@lists.php.net to get a copy of this message | ||
Jean-Baptiste Nahan in php.pecl.dev (Thu, 3 Jan 2019 15:59:25 +0100):
>I need the PHP amqp extension for PHP 7.2 and 7.3 but I have not found on pecl website :
>https://pecl.php.net/package/amqp/1.9.4/windows
Maybe Anatol can build https://github.com/alanxz/rabbitmq-c/releases/tag/v0.9.0
for VC15 x86 and x64. Then the extension could also be built for PHP 7.2 and
7.3. The PECL download stats indicate a high popularity of the extension.
Proof of concept:
https://phpdev.toolsforresearch.com/php-7.2.14RC1-nts-Win32-VC15-x64.htm
https://phpdev.toolsforresearch.com/php-7.2.14RC1-nts-Win32-VC15-x64.zip
https://phpdev.toolsforresearch.com/php-7.3.1RC1-nts-Win32-VC15-x64.htm
https://phpdev.toolsforresearch.com/php-7.3.1RC1-nts-Win32-VC15-x64.zip
The rabbitmq.4.dll is included in the zip-files. I do not have a running MQ
server, so I did not run the tests.
--
Jan
D:\rabbitmq-c-0.9.0\build>cmake -G "Visual Studio 15 2017 Win64" ..
-- The C compiler identification is MSVC 19.16.27025.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual
Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual
Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found C inline keyword: inline
-- Looking for poll
-- Looking for poll - not found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - not found
-- Looking for posix_spawnp in rt
-- Looking for posix_spawnp in rt - not found
-- Found OpenSSL:
C:/php-sdk/win64build/lib/libssl.lib;C:/php-sdk/win64build/lib/libcrypto.lib
(found suitable version "1.1.1a", minimum required is "0.9.8")
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Performing Test HAVE_GNU90
-- Performing Test HAVE_GNU90 - Failed
-- Performing Test HAVE_C90
-- Performing Test HAVE_C90 - Failed
-- Could NOT find POPT (missing: POPT_INCLUDE_DIR POPT_LIBRARY) (found version
"1.16")
-- Could NOT find XMLTO (missing: XMLTO_EXECUTABLE)
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Building rabbitmq as a shared library - yes
-- Building rabbitmq as a static library - yes
-- Configuring done
-- Generating done
-- Build files have been written to: D:/rabbitmq-c-0.9.0/build