Ask Your Question
0

I'm having lots of trouble with the OpenCV intro tutorial, mainly the SBT part

asked 2013-06-22 02:13:19 -0600

updated 2013-06-22 03:49:37 -0600

berak gravatar image

I've managed to get past running the first program using the OpenCV library, but after that it asks that I install SBT and from this point on we ignore Eclipse entirely and are now (i suppose) writing code in the console?

I'm not really following what the tutorial is asking of me, I have never used OpenCV and I have never used SBT (and being honest, I'm not entirely sure what it even is or how to use it) but this tutorial expects me to know this already.

The tutorial asks to install SBT (did, seems fine).

Then run the following code in the command line:

cd JavaSample
mkdir -p src/main/java # This is where SBT expects to find Java sources
mkdir project # This is where the build definitions live

I made the JavaSample directory, got the error: "The syntax of this command is incorrect" when tryin to run the second line of that.

Skipping down it asks that we open project/build.scala and change some of the confusing contents of that file. I don't have a build.scala file anywhere on my system.

I believe I am doing something fundamentally wrong but I don't know if this is because I'm installing OpenCV wrong or if I'm installing SBT wrong.

Any help would be great. I basically just want to use the OpenCV library to make a program utilizing the screen capturing capabilities, but the tutorial makes it seem like SBT is required for openCV to work.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-06-22 03:44:50 -0600

berak gravatar image

sbt is only an alternative way to build programs, it's not a mandatory part of opencv-java.

if you're already happy with eclipse, you can just ignore it.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-06-22 02:13:19 -0600

Seen: 191 times

Last updated: Jun 22 '13