bytedeco / javacv

Java interface to OpenCV, FFmpeg, and more
Other
7.45k stars 1.57k forks source link

<classifier>macosx-x86_64</classifier> is not work for me #2029

Closed jurimengs closed 1 year ago

jurimengs commented 1 year ago

i learned some issues like [https://github.com/bytedeco/javacv/issues/1493], but it's not work for me

image

saudet commented 1 year ago

Please upgrade to the latest version.

jurimengs commented 1 year ago

thank you ..but , it's still not working,

image
jurimengs commented 1 year ago

more information , I try to use javacv only , so I import something like :

    <javacv.version>1.5.8</javacv.version>
    <javacpp.version>${javacv.version}</javacpp.version>

    <dependency>
        <groupId>org.bytedeco</groupId>
        <artifactId>javacpp</artifactId>
        <version>${javacpp.version}</version>
    </dependency>

    <dependency>
        <groupId>org.bytedeco</groupId>
        <artifactId>openblas</artifactId>
        <version>0.3.21-${javacpp.version}</version>
    </dependency>

    <dependency>
        <groupId>org.bytedeco</groupId>
        <artifactId>opencv</artifactId>
        <version>4.6.0-${javacpp.version}</version>
        <!--            <classifier>${javacpp.platform.windows-x86_64}</classifier>-->
    </dependency>

    <dependency>
        <groupId>org.bytedeco</groupId>
        <artifactId>javacv</artifactId>
        <version>${javacv.version}</version>
    </dependency>
    <dependency>

        <groupId>org.bytedeco</groupId>
        <artifactId>ffmpeg-platform</artifactId>
        <version>5.1.2-${javacpp.version}</version>
        <!--            <classifier>macosx-x86_64</classifier>-->
        <!--            <classifier>linux-arm64</classifier>-->
    </dependency>
saudet commented 1 year ago

Yes, that should work. What kind of error are you getting in that case?

jurimengs commented 1 year ago

the keyword is : "macosx-x86_64"

without this classifier it works well like :

image

but wrong when I use it like :

image

IDE show me : "Cannot resolve org.bytedeco:ffmpeg-platform:5.1.2-1.5.8 "

jurimengs commented 1 year ago

and I tried remove maven repository many times and reload all maven projects , yet it's still not work

saudet commented 1 year ago

That's a problem with your IDE. Try to purge all caches: https://www.jetbrains.com/help/idea/invalidate-caches.html

saudet commented 1 year ago

And remove the classifier, it works fine without it.

jurimengs commented 1 year ago

ok , tks