bytedeco / javacv

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

sbt-javacv failed with javacv-1.5 #1194

Open sometao opened 5 years ago

sometao commented 5 years ago

sbt project.

in plugin.sbt file:

addSbtPlugin("org.bytedeco" % "sbt-javacv" % "1.17")

Everything goes well with version 1.4.4.

in build.sbt file:

name := "HelloJavaCV"

version := "0.1"

scalaVersion := "2.12.8"

javaCVVersion := "1.4.4"

javaCppVersion := "1.4.4"

javaCppPlatform := Seq("windows-x86_64", "linux-x86_64")

javaCppPresetLibs := Seq("opencv" -> "4.0.1", "ffmpeg" -> "4.1")

But, when i change build.sbt file to:

name := "HelloJavaCV"

version := "0.1"

scalaVersion := "2.12.8"

javaCVVersion := "1.5"

javaCppVersion := "1.5"

javaCppPlatform := Seq("windows-x86_64", "linux-x86_64")

javaCppPresetLibs := Seq("opencv" -> "4.0.1", "ffmpeg" -> "4.1.3")

compile in sbt shell, I will get errors:

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.bytedeco.javacpp-presets#opencv;4.0.1-1.5: not found
[warn]  :: org.bytedeco.javacpp-presets#ffmpeg;4.1.3-1.5: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
.
.
sbt:HelloJavaCV> [error] (update) sbt.librarymanagement.ResolveException: unresolved dependency: org.bytedeco.javacpp-preset
s#opencv;4.0.1-1.5: not found
[error] unresolved dependency: org.bytedeco.javacpp-presets#ffmpeg;4.1.3-1.5: not found

Anything i missing?

Thank you.

saudet commented 5 years ago

Right, I'm pretty sure sbt-javacpp and sbt-javacv will need to be updated.

@lloydmeta Check the latest post about what changed: http://bytedeco.org/news/2019/04/11/beyond-java-and-cpp/

sometao commented 5 years ago

Right, I'm pretty sure sbt-javacpp and sbt-javacv will need to be updated.

@lloydmeta Check the latest post about what changed: http://bytedeco.org/news/2019/04/11/beyond-java-and-cpp/

thanks for your reply.

When do you plan to deal with updating sbt-javacv and sbt-javacpp? And, is there any workaround I can do before you updating?

jpsacha commented 5 years ago

@sometao As a workaround you can setup your project without sbt-javacv, using just SBT there is an example here: https://github.com/bytedeco/javacv-examples/blob/master/OpenCV_Cookbook/build.sbt

sometao commented 5 years ago

@jpsacha Thank you. It works very well.

aashishamrute commented 3 years ago

Hi, this issue is open quite long, I could see sbt-javacpp updated, but sbt-javacv not, it would be nice if someone can update this plugin as well.

saudet commented 3 years ago

/cc @sbrunk