Laex / Delphi-OpenCV

Project Delphi-OpenCV. Translation of OpenCV library header files in Delphi
500 stars 226 forks source link

May 8th 2022 - Does not compile - Delphi 10.4 - windows 32 target #148

Open HuguesDug opened 2 years ago

HuguesDug commented 2 years ago

Hello,

As I was facing some issues with cvcameracapture, I had the (bad) idea to upgrade the lib to the latest version.

Trying to compile on Delphi 10.4, target windows 32, it throw some errors.

1 - in the include file OpenCV.inc I had to delete the first line : {$i jedi.inc}

2 - in the unit ocv.core_c.pas, lines 2650 until 2700 Directive CPU32 and CPU64 are not recognized under delphi. I switched them to WIN32 and WIN64

Doing so, lib compiles again.

Laex commented 1 year ago

Directive CPU32 and CPU64 defined in {$i jedi.inc}