CMakeLists.txt:359 (ocv_include_directories)
-- Detected version of GNU GCC: 48 (408)
RegularExpression::compile(): Nested *?+.
RegularExpression::compile(): Error in compile.
CMake Error at cmake/OpenCVUtils.cmake:42 (if):
if given arguments:
"~/opencv-2.4.9/build" "MATCHES" "^~/opencv-2.4.9" "OR" "~/opencv-2.4.9/build" "MATCHES" "^~/opencv-2.4.9/build"
Regular expression "^~/opencv-2.4.9" cannot compile
Call Stack (most recent call first):
CMakeLists.txt:359 (ocv_include_directories)
-- Configuring incomplete, errors occurred!
See also "~/opencv-2.4.9/build/CMakeFiles/CMakeOutput.log".
that is what I got after run
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..
I'm running Ubuntu 14.04 x64
I have same problem