Ask Your Question

Revision history [back]

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

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.

click to hide/show revision 2
No.2 Revision

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

berak gravatar image

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

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.