root@orangepi:/home/orangepi/classic# cmake ../classic -DCMAKE_INSTALL_PREFIX=../classic/build -DPCH=1 -DDEBUG=0
CMake Error at CMakeLists.txt:33 (message):
This project requires an out of source build. Remove the file
'CMakeCache.txt' found in this directory before continuing, create a
separate build directory and run 'cmake <srcs> [options]' from there.
-- Configuring incomplete, errors occurred!
See also "/home/orangepi/classic/CMakeFiles/CMakeOutput.log".
Всё правильно: вы запускаете cmake в том же каталоге, что и дерево исходников. Cmake такое не позволяет. Сделайте то, что он написал: удалите CMakeCache.txt, создайте каталог сборки, перейдите в него и оттуда запустите cmake, указав ему нужный каталог с исходниками.
root@orangepi:/home/orangepi/classic/build# cmake -DCMAKE_INSTALL_PREFIX=../build -DPCH=1 -DDEBUG=0
CMake Error: The source directory "/home/orangepi/classic/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
root@orangepi:/home/orangepi/classic/build# cmake ../classic -DCMAKE_INSTALL_PREFIX=../build -DPCH=1 -DDEBUG=0
CMake Error: The source directory "/home/orangepi/classic/classic" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
root@orangepi:/home/orangepi/classic/build#
root@orangepi:/home/orangepi/classic/build# cmake ../ -DCMAKE_INSTALL_PREFIX=../build -DPCH=1 -DDEBUG=0
CMake Error at CMakeLists.txt:33 (message):
This project requires an out of source build. Remove the file
'CMakeCache.txt' found in this directory before continuing, create a
separate build directory and run 'cmake <srcs> [options]' from there.
-- Configuring incomplete, errors occurred!
See also "/home/orangepi/classic/CMakeFiles/CMakeOutput.log".
root@orangepi:/home/orangepi/classic/build#
root@orangepi:/home/orangepi/classic/build# cmake /home/orangepi/classic/ -DCMAKE_INSTALL_PREFIX=../build -DPCH=1 -DDEBUG=0
CMake Error at CMakeLists.txt:33 (message):
This project requires an out of source build. Remove the file
'CMakeCache.txt' found in this directory before continuing, create a
separate build directory and run 'cmake <srcs> [options]' from there.
-- Configuring incomplete, errors occurred!
See also "/home/orangepi/classic/CMakeFiles/CMakeOutput.log".
root@orangepi:/home/orangepi/classic/build#