Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some compiler switch variables could not be found #162

Open
Mr-Tata opened this issue Jul 10, 2023 · 0 comments
Open

Some compiler switch variables could not be found #162

Mr-Tata opened this issue Jul 10, 2023 · 0 comments

Comments

@Mr-Tata
Copy link

Mr-Tata commented Jul 10, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant