php-opencv icon indicating copy to clipboard operation
php-opencv copied to clipboard

Dll release for windows

Open ghostjat opened this issue 6 years ago • 29 comments

Hi, Would you please release the dll for windows I tried to compile it but failed If u can it will b highly appreciated by all php windows developers

ghostjat avatar Sep 22 '18 19:09 ghostjat

I'm trying, but I haven't succeeded yet.

hihozhou avatar Nov 23 '18 11:11 hihozhou

please share dll library fow windows....

tarasfrompir avatar Feb 25 '19 15:02 tarasfrompir

I'm trying, but I haven't succeeded yet.

I already did it, just check it on my profile.

SlardarZhang avatar Feb 09 '20 19:02 SlardarZhang

Did not start with apache 2.4 - just crash...

tarasfrompir avatar Feb 10 '20 10:02 tarasfrompir

Did not start with apache 2.4 - just crash...

PHP version should be 7.4.2, then you should put "opencv_world420.dll" in the same folder as php.exe< then put the "php_opencv.dll" in the extension folder, it should be run. If you want to determine its apache problem or installation problem, you can use the command line "php.exe -m" to print the loaded modules list. If opencv in the list, then the problem should be caused by apache. BTW: You MUST use php 7.4.2 TS version. Good Luck

SlardarZhang avatar Feb 10 '20 16:02 SlardarZhang

PHP Warning: PHP Startup: Unable to load dynamic library 'opencv' (tried: C:\xampp\php\ext\opencv (\xd0\x9d\xd0\xb5 \xd0\xbd\xd0\xb0\xd0\xb9\xd0\xb4\xd0\xb5\xd0\xbd \xd1\x83\xd0\xba\xd0\xb0\xd0\xb7\xd0\xb0\xd0\xbd\xd0\xbd\xd1\x8b\xd0\xb9 \xd0\xbc\xd0\xbe\xd0\xb4\xd1\x83\xd0\xbb\xd1\x8c.), C:\xampp\php\ext\php_opencv.dll (\xd0\x9d\xd0\xb5 \xd0\xbd\xd0\xb0\xd0\xb9\xd0\xb4\xd0\xb5\xd0\xbd \xd1\x83\xd0\xba\xd0\xb0\xd0\xb7\xd0\xb0\xd0\xbd\xd0\xbd\xd1\x8b\xd0\xb9 \xd0\xbc\xd0\xbe\xd0\xb4\xd1\x83\xd0\xbb\xd1\x8c.)) in Unknown on line 0

I try all version x64 and x86 -php version 7.4.2

My config extension=bz2 extension=curl ;extension=ffi extension=fileinfo extension=gd2 extension=gettext ;extension=gmp ;extension=intl ;extension=imap ;extension=ldap extension=opencv extension=mbstring extension=exif ; Must be after mbstring as it depends on it extension=mysqli ;extension=oci8_12c ; Use with Oracle Database 12c Instant Client ;extension=odbc ;extension=openssl ;extension=pdo_firebird extension=pdo_mysql ;extension=pdo_oci ;extension=pdo_odbc ;extension=pdo_pgsql extension=pdo_sqlite ;extension=pgsql ;extension=shmop

tarasfrompir avatar Feb 10 '20 18:02 tarasfrompir

Looks like you need put opencv_world420.dll at the folder as php.exe. Otherwise, it may cause this problem. BTW, the x86 version has some problem, please use x64 version.

SlardarZhang avatar Feb 10 '20 20:02 SlardarZhang

I try all version - php and opencv. I put files -php_opencv.dll and opencv_world420.dll - at the folder php and folder php/ext/ .

But still getting the same error

tarasfrompir avatar Feb 11 '20 05:02 tarasfrompir

Describe your compilation process on Windows

tarasfrompir avatar Feb 11 '20 05:02 tarasfrompir

Describe your compilation process on Windows

https://windows.php.net/downloads/releases/php-devel-pack-7.4.2-Win32-vc15-x64.zip Download this dev-pack, use the phpize.bat to compile it. I uploaded the Tester, you can test the opencv_world420.dll by this tool. I think this problem caused by opencv_world420.dll.

SlardarZhang avatar Feb 12 '20 08:02 SlardarZhang

Describe your compilation process on Windows

I try all version - php and opencv. I put files -php_opencv.dll and opencv_world420.dll - at the folder php and folder php/ext/ .

But still getting the same error

Did the problem solve?

SlardarZhang avatar Feb 13 '20 09:02 SlardarZhang

sorry - have not time to try... Mi work is mi house...

tarasfrompir avatar Feb 13 '20 15:02 tarasfrompir

sorry - have not time to try... Mi work is mi house...

Okay, no worries.

SlardarZhang avatar Feb 14 '20 08:02 SlardarZhang

Thanks for your improvements dear SlardarZhang. But the test script doesn't work. The library has loaded, but no one of the functions work. Including a test script. The file path was specified explicit. What could be the problem ?

//Obama.php
echo "ЕУІЕ" ;
use function CV\{ imread, imshow, waitkey, namedWindow};

 if ($im = imread("http://smarthome.glory.pw/Obama.png")) {
 echo "LOADED" ;
 } else {
 echo "NOLOADED";
 }
 namedWindow('This is Obama id card',WINDOW_FULLSCREEN);//create window
imshow('This is Obama id card',$im);//show image on window

waitkey(0);

PHP 7.4 image

tarasfrompir avatar Sep 16 '20 13:09 tarasfrompir

Thanks for your improvements dear SlardarZhang. But the test script doesn't work. The library has loaded, but no one of the functions work. Including a test script. The file path was specified explicit. What could be the problem ?

//Obama.php
echo "ЕУІЕ" ;
use function CV\{ imread, imshow, waitkey, namedWindow};

 if ($im = imread("http://smarthome.glory.pw/Obama.png")) {
 echo "LOADED" ;
 } else {
 echo "NOLOADED";
 }
 namedWindow('This is Obama id card',WINDOW_FULLSCREEN);//create window
imshow('This is Obama id card',$im);//show image on window

waitkey(0);

PHP 7.4 image

I will push a new version for PHP 7.4.10, please wait for a couple of weeks.

SlardarZhang avatar Sep 16 '20 15:09 SlardarZhang

"I will push a new version for PHP 7.4.10, please wait for a couple of weeks.

" Some one change ?

tarasfrompir avatar Oct 06 '20 11:10 tarasfrompir

"I will push a new version for PHP 7.4.10, please wait for a couple of weeks.

" Some one change ?

Yes, the php_opencv.dll have problem to call opencv_world420, BTW, I will compile OpenCV4.4 for the next version

SlardarZhang avatar Oct 06 '20 16:10 SlardarZhang

Thanks i am wayting

tarasfrompir avatar Oct 06 '20 16:10 tarasfrompir

"I will push a new version for PHP 7.4.10, please wait for a couple of weeks. " Some one change ?

Yes, the php_opencv.dll have problem to call opencv_world420, BTW, I will compile OpenCV4.4 for the next version

Hi SlardarZhang... How affairs with next version ?

tarasfrompir avatar Nov 03 '20 12:11 tarasfrompir

I am waiting for PHP 8.0 release, currently, MS published a piece of news, they will not support PHP8.0, what do you think of it?

SlardarZhang avatar Nov 04 '20 11:11 SlardarZhang

I am cry - wheare my PHPopencv - i dont lacky human......

tarasfrompir avatar Nov 04 '20 13:11 tarasfrompir

I am cry - wheare my PHPopencv - i dont lacky human......

Because Microsoft will not support PHP 8.0, do you think we can create a repository of PHP 8.0 for Windows? BTW, I am thinking about the next version of OpenCV for PHP library, I should build 7.4.12 or 8.0, could you give me some suggestion? thanks a lot.

SlardarZhang avatar Nov 08 '20 06:11 SlardarZhang

I think - OpenCV for PHP 7.4.12. Windows - is all my life

tarasfrompir avatar Nov 11 '20 14:11 tarasfrompir

I think - OpenCV for PHP 7.4.12. Windows - is all my life

The new version is released, you can download it now, this version I build a smart installer, it may help you to install it easier. https://github.com/SlardarZhang/php-opencv/releases/tag/4.5.0%7C1.0.2

SlardarZhang avatar Nov 13 '20 22:11 SlardarZhang

Very COOL - i try in mondey... Thanks

tarasfrompir avatar Nov 15 '20 17:11 tarasfrompir

Very COOL - i try in mondey... Thanks

Use 1.0.3 please, 1.0.2 has a bug. https://github.com/SlardarZhang/php-opencv/releases/tag/4.5.0%7C1.0.3

SlardarZhang avatar Nov 16 '20 10:11 SlardarZhang

Thank you very much. We are waiting for version 8 PHP

tarasfrompir avatar Mar 03 '21 10:03 tarasfrompir

Thank you very much. We are waiting for version 8 PHP

PHP 8 compile have lots of problems, may need more time

SlardarZhang avatar Mar 03 '21 18:03 SlardarZhang

I see you try do that. so we are waiting...

tarasfrompir avatar Mar 03 '21 18:03 tarasfrompir