Ask Your Question
1

Compile issue - Ubuntu

asked 2013-01-29 23:11:11 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

I am new to Ubuntu and to Opencv. On attempting to install OpenCV-2.4.3 on Ubuntu 11.10 i get this :

 user@user-ThinkPad-T510:~/OpenCV-2.4.3$  cmake -D CMAKE_BUILD_TYPE=RELEASE 
            -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON

CMake Error:

The path to the source directory:
/home/user/OpenCV-2.4.3/BUILD_PYTHON_SUPPORT=ON

contains unsupported character '='.

Please use a different source directory name. Am i doing it wrong???

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2013-01-30 04:50:14 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

The last parameter of cmake command must be path to root CMakeLists.txt file. You need to create build folder, i.e. build and run from there:

$cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_PYTHON_SUPPORT=ON ..
edit flag offensive delete link more
0

answered 2013-04-03 13:20:59 -0600

Rui Marques gravatar image

updated 2013-04-03 13:22:10 -0600

Try to remove the space after the several -D

Like this:

-DBUILD_PYTHON_SUPPORT=ON

I had a similar problem to yours, and this worked. Have no idea why, though.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-01-29 23:11:11 -0600

Seen: 1,001 times

Last updated: Apr 03 '13