4

I am new to this stuff and I have been trying to fix another issue:

Two OpenCV's are installed (with different versions) and I can't delete all traces of the past one

and I was suggested to do

cmake -D CMAKE_PREFIX_PATH = usr/local ..

which I did and cmake do not work now. When I try a simple "cmake .." I get

No current working directory
Aborted

How do I fix this? And how do I set cmake_prefix_path?

Community
  • 1
  • 1
ozgeneral
  • 6,079
  • 2
  • 30
  • 45
  • 1
    Check that you run `cmake` from existed directory (e.g., `cd .` should work). – Tsyvarev Dec 20 '15 at 07:42
  • Yeah that was it thanks a lot. I think I have deleted the current directory by accident via terminal, but I have no idea how. Anyway you can post your comment as answer so I can accept it :) – ozgeneral Dec 20 '15 at 08:27

1 Answers1

10

CMake 2.8.10 (and older) generates error

No current working directory

if current directory cannot be accessed(usually, deleted). This can be checked with command

cd .

Modern CMake (since 2.8.11) generates another error:

Current working directory cannot be established.

See also this bugreport.

Tsyvarev
  • 60,011
  • 17
  • 110
  • 153