Laex / Delphi-OpenCV

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

Some compiler switch variables could not be found #162

Open Mr-Tata opened 1 year ago

Mr-Tata commented 1 year ago

Some compiler switch variables could not be found. For example, DELPHIXE6_UP,DELPHIXE7_UP.. I modified Opencv.inc to make the compilation work. I added the following code in Opencv.inc ` {$IF CompilerVersion >= 14}{ Delphi 6.x } {$DEFINE DELPHI6_UP} {$IFEND}

{$IF CompilerVersion >= 23} {$DEFINE DELPHIXE2_UP} {$IFEND}

{$IF CompilerVersion >= 26} {$DEFINE DELPHIXE5_UP} {$IFEND}

{$IF CompilerVersion >= 27} {$DEFINE DELPHIXE6_UP} {$IFEND}

{$IF CompilerVersion >= 28} //ocv.comp.ViewFMX {$DEFINE DELPHI28_UP} => {$DEFINE DELPHIXE7_UP} {$DEFINE DELPHIXE7_UP} {$IFEND}

{$DEFINE DelphiOCVVersion_29} {$DEFINE HAS_UNITSCOPE} ` Then, import the unit that reported the error into Opencv.inc