Javacv: sbt-javacv failed with javacv-1.5

Created on 24 Apr 2019  路  6Comments  路  Source: bytedeco/javacv

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.

enhancement help wanted

All 6 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Bahramudin picture Bahramudin  路  3Comments

newstarbka picture newstarbka  路  5Comments

SenudaJayalath picture SenudaJayalath  路  3Comments

chenhl05 picture chenhl05  路  4Comments

UpAndDownAgain picture UpAndDownAgain  路  3Comments