Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Trouble installing opencv 4.0.0 under linux

Hi, As far as I understand it, to install opencv 4.0.0 on a mint 18 linux, i need to build it from sources. So I tried (and failed).

The Website (https://docs.opencv.org/4.0.0/d7/d9f/tutorial_linux_install.html) informs:

cd ~/<my_working_directory> git clone https://github.com/opencv/opencv.git git clone https://github.com/opencv/opencv_contrib.git

cd ~/opencv mkdir build cd build

so far nothing exciting. Next:

cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..

which yields: CMake Error at CMakeLists.txt:11 (message):

FATAL: In-source builds are not allowed.

     You should create a separate directory for build files.

-- Configuring incomplete, errors occurred!

I tried to add -DCMAKE_SOURCE_DIR and/or -DMAKE_BINARY_DIR but more or less in vain.

Can someone help me?

Regards

Leo

Trouble installing opencv 4.0.0 under linux

Hi, As far as I understand it, to install opencv 4.0.0 on a mint 18 linux, i need to build it from sources. So I tried (and failed).

The Website (https://docs.opencv.org/4.0.0/d7/d9f/tutorial_linux_install.html) informs:

cd ~/<my_working_directory> ~/<my_working_directory>

git clone https://github.com/opencv/opencv.git https://github.com/opencv/opencv.git

git clone https://github.com/opencv/opencv_contrib.git

cd ~/opencv ~/opencv

mkdir build build

cd build

so far nothing exciting. Next:

cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..

which yields: CMake Error at CMakeLists.txt:11 (message):

FATAL: In-source builds are not allowed.

     You should create a separate directory for build files.

-- Configuring incomplete, errors occurred!

I tried to add -DCMAKE_SOURCE_DIR and/or -DMAKE_BINARY_DIR but more or less in vain.

Can someone help me?

Regards

Leo

Trouble installing opencv 4.0.0 under linux

Hi, As far as I understand it, to install opencv 4.0.0 on a mint 18 linux, i need to build it from sources. So I tried (and failed).

The Website (https://docs.opencv.org/4.0.0/d7/d9f/tutorial_linux_install.html) informs:

cd ~/<my_working_directory>

~/<my_working_directory> git clone https://github.com/opencv/opencv.git

https://github.com/opencv/opencv.git git clone https://github.com/opencv/opencv_contrib.git

https://github.com/opencv/opencv_contrib.git

cd ~/opencv

~/opencv mkdir build

build cd build

build

so far nothing exciting. Next:

cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..

..

which yields: yields:

CMake Error at CMakeLists.txt:11 (message):

(message):

FATAL: In-source builds are not allowed.

allowed.
      You should create a separate directory for build files.

-- Configuring incomplete, errors occurred!

occurred!

I tried to add -DCMAKE_SOURCE_DIR and/or -DMAKE_BINARY_DIR but more or less in vain.

Can someone help me?

Regards

Leo