Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cannot execute test cpp. Error:line 1: //: Is a directory

I hope I installed OpenCV on Debian-8 from the Git Repository as prescribed at https://docs.opencv.org/2.4/doc/tutorials/introduction/linux_install/linux_install.html

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/ (here there are test .cpp samples)

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?

cannot execute test cpp. Error:line 1: //: Is a directory

I hope I installed OpenCV on Debian-8 from the Git Repository as prescribed at https://docs.opencv.org/2.4/doc/tutorials/introduction/linux_install/linux_install.html

As a result I got the following folders in my home directory: directory:

/home/a/opencv/

/home/a/opencv/build/ /home/a/opencv/build/bin/

/home/a/opencv/samples/ /home/a/opencv/samples/cpp/ (here there are test .cpp samples)

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?

cannot execute test cpp. Error:line 1: //: Is a directory

I hope I installed OpenCV on Debian-8 from the Git Repository as prescribed at https://docs.opencv.org/2.4/doc/tutorials/introduction/linux_install/linux_install.html

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/

/home/a/opencv/build/ /home/a/opencv/build/bin/

/home/a/opencv/samples/ /home/a/opencv/samples/cpp/ (here there are test .cpp samples)

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?

cannot execute test cpp. Error:line 1: //: Is a directory

I hope I installed OpenCV on Debian-8 from the Git Repository as prescribed at https://docs.opencv.org/2.4/doc/tutorials/introduction/linux_install/linux_install.html

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 opencv_version.cpp is sitting in /home/a/opencv/samples/cpp/) /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?

cannot execute test cpp. Error:line 1: //: Is a directory

I hope I installed OpenCV on Debian-8 from the Git Repository as prescribed at https://docs.opencv.org/2.4/doc/tutorials/introduction/linux_install/linux_install.html

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: being:

line 1: //: Is a directory

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?