Skip to content

Some compiler switch variables could not be found #162

@Mr-Tata

Description

@Mr-Tata

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions