Error in cmake opencv: parsing error in command line argument: -D

I am trying to install opencv but every time I have problems with cmake config. this is the cmake i am trying to use:

cmake -D CMAKE_BUILD_TYPE=RELEASE -D BUILD_PYTHON_SUPPORT=ON 
-D WITH_XINE=ON -D WITH_OPENGL=ON -D INSTALL_C_EXAMPLES=ON 
-D INSTALL_PYTHON_EXAMPLES=ON -D WITH_TBB=ON -D BUILD_EXAMPLES=ON
-D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON 
-D CMAKE_INSTALL_PREFIX=/home/username/main-env/opencv3.0 
-D WITH_GTK = ON -D MATLAB_ROOT_DIR=/home/MATLAB/R2015a ..

      

but got this error

Parse error in command line argument: -D
Should be: VAR:type=value
CMake Error: No cmake script provided.
CMake Error: Problem processing arguments. Aborting.

      

PS I want to put it in the main-env folder, which is the virtual environment folder, to avoid problems with system files and less struggle with various errors that occurred in previous times. perhaps, perhaps, this is completely wrong. please let me know if you have any information about this.

+3


source to share


1 answer


all members must be separated by -D and must not be attached terms with -D



+1


source







All Articles