php-opencv
php-opencv copied to clipboard
After compile dll error
When i cheked .dll file in php i get error
Warning: PHP Startup: Unable to load dynamic library 'opencv' (tried: C:\www\php-sdk-binary-tools\phpdev\vc15\x64\php\x64\Debug_TS\opencv (═х эрщфхэ єърчрээ√щ ьюфєы№.), C:\www\php-sdk-binary-tools\phpdev\vc15\x64\php\x64\Debug_TS\php_opencv.dll (═х эрщфхэ єърчрээ√щ ьюфєы№.)) in Unknown on line 0 But file exists.
Do you use compiled PHP references or other PHP on your system?
I use compiled php which is compiled with opencv. I use this manual - https://hihozhou.com/blog/2018/09/27/window-compile-php-extensions.html. I get error when check - php -m. Can you share .dll library?
@tarasfrompir Attempt to add enable-debug
when using the configure
command
buildconf
configure --disable-all --enable-debug --enable-cli --with-opencv=shared
nmake
I found compilation errors without adding the --enable-debug
parameter, and I'm trying to fix this problem.
Спасибо. Жду.
I found the same build problem. https://github.com/phpv8/v8js/issues/325
need to edit 3 files in MVStudio. This is i do. but i have a error. when compile File needs to edit - C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\chrono, C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\complex, C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\string
How to edit, I don't understand what you mean.
I found the difference between debug
and non-debug
when compiling configure
@tarasfrompir Look here., he can make string
error correction.But I still don't understand the error. Do you know the reason?
https://github.com/phpv8/v8js/blob/php7/config.w32#L53
ADD_FLAG("CFLAGS_OPENCV", "/D _STRING_");
before:
after:
https://drive.google.com/file/d/196rdzUDf7wa5-pg9L-voFivLLcW0n4q2/view?usp=sharing replace this files in path - C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include i edit his and delete the blocks from files
when i correct the files - i found a problem in files // files need to chek #include "source\opencv2\core\opencv_persistence.h" #include "source\opencv2\opencv_objdetect.h" #include "source\opencv2\opencv_videoio.h" #include "source\opencv2\opencv_ml.h" #include "source\opencv2\core\opencv_type.h" #include "source\opencv2\core\opencv_mat.h" whot a problem - i dont know