cannot execute test cpp. Error:line 1: //: Is a directory [closed]
I hope I installed OpenCV on Debian-8 from the Git Repository as prescribed at https://docs.opencv.org/2.4/doc/tutor...
As a result I got the following folders in my home directory:
/home/a/opencv/
/home/a/opencv/build/
/home/a/opencv/build/bin/
/home/a/opencv/samples/
/home/a/opencv/samples/cpp/
As prescribed, I moved to /home/a/opencv/build/bin/ and from there executed the following command:
../../samples/cpp/opencv_version.cpp
opencv_version.cpp is sitting in /home/a/opencv/samples/cpp/
At first I got "Permission denied" although I was logged in as su.
This was corrected using chmod u+x opencv_version.cpp
Yet it replies with several errors. The first one being:
line 1: //: Is a directory
Indeed, the 1st line of opencv_version.cp starts with comments // . This indicates that I am doing something fundamentally wrong and even stupid as this is my first encounter with openCV. What is wrong?
opencv version ?
opencv version - I have no idea. I installed it as shown at https://docs.opencv.org/2.4/doc/tutor...:
Launch Git client and clone OpenCV repository In Linux it can be achieved with the following command in Terminal: cd ~/<my_working _directory=""> git clone https://github.com/opencv/opencv.git</my_working>
It does not say which version. It only says that it is Cutting-edge OpenCV ;) That's why I tried to start using it by executing opencv_version.cpp
if you use
git clone https://github.com/opencv/opencv.git
you'll get the master branch (4.2.0-dev as of today) (have to update the answer, then !)and you did run
cmake && make && make install
, did you ? ;)yes I did PS. My answers keep disappearing so I have to repeat them