Getting error org.sikuli.script.SikuliXception: loadlib: libopencv_java481.dylib not in any libs folder

Asked by Zoheb Siddique

I have following dependencies on my Mac OS. I am using IntelliJ for integrating Playwright with Sikuli.
<dependency>
            <groupId>com.microsoft.playwright</groupId>
            <artifactId>playwright</artifactId>
            <version>1.44.0</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-java -->
        <dependency>
            <groupId>io.cucumber</groupId>
            <artifactId>cucumber-java</artifactId>
            <version>7.18.0</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-junit -->
        <dependency>
            <groupId>io.cucumber</groupId>
            <artifactId>cucumber-junit</artifactId>
            <version>7.18.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.sikulix</groupId>
            <artifactId>sikulixapi</artifactId>
            <version>2.0.5</version>
        </dependency>

While running the test. I am getting error:
[error] RunTime:loadLib: libopencv_java430.dylib (failed) probably dependent libs missing:
/Users/zsiddique/Library/Application Support/Sikulix/SikulixLibs/libopencv_java430.dylib: dlopen(/Users/zsiddique/Library/Application Support/Sikulix/SikulixLibs/libopencv_java430.dylib, 0x0001): tried: '/Users/zsiddique/Library/Application Support/Sikulix/SikulixLibs/libopencv_java430.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/zsiddique/Library/Application Support/Sikulix/SikulixLibs/libopencv_java430.dylib' (no such file), '/Users/zsiddique/Library/Application Support/Sikulix/SikulixLibs/libopencv_java430.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

I tried to manually install opencv manually using command: brew install opencv. However, this has not helped me in resolving the issue. Kindly advice.

Question information

Language:
English Edit question
Status:
Open
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

Can you help with this problem?

Provide an answer of your own, or ask Zoheb Siddique for more information if necessary.

To post a message you must log in.