sbt project.
in plugin.sbt file:
addSbtPlugin("org.bytedeco" % "sbt-javacv" % "1.17")
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")
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.
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/
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?
@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
@jpsacha
Thank you.
It works very well.
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.
/cc @sbrunk