failed to run cmake
cmake failed,CMake Error at CMakeLists.txt:187 (ADD_SUBDIRECTORY):, The source directory, /home/miniob/miniob_test/players/miniob/deps/3rd/replxx, does not contain a CMakeLists.txt file.,
我尝试直接使用https://github.com/oceanbase/miniob提交,同样不能运行
报错信息为:
failed to run cmake
cmake failed,CMake Error at CMakeLists.txt:177 (FIND_PACKAGE):, By not providing “Findreplxx.cmake” in CMAKE_MODULE_PATH this project has, asked CMake to find a package configuration file provided by “replxx”, but, CMake did not find one., Could not find a package configuration file provided by “replxx” with any, of the following names:, replxxConfig.cmake, replxx-config.cmake, Add the installation prefix of “replxx” to CMAKE_PREFIX_PATH or set, “replxx_DIR” to a directory containing one of the above files. If “replxx”, provides a separate development package or SDK, be sure it has been, installed.,
我最初将其clone到本地,执行bash build.sh后报错:
╰─# bash build.sh
THIRD_PARTY_INSTALL_PREFIX is /root/miniob/deps/3rd/usr/local
build.sh
Build type: debug
rm: cannot remove 'build': Is a directory
create soft link for build_debug, linked by directory named build
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 --log-level=STATUS /root/miniob -DCMAKE_BUILD_TYPE=debug
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- This is Project source dir /root/miniob
-- This is PROJECT_BINARY_DIR dir /root/miniob/build_debug
-- Using build type: debug
-- HOME dir: /root
-- This is UNIX
-- CMAKE_CXX_COMPILER_ID is GNU
-- Instrumenting with Address Sanitizer
-- CMAKE_INSTALL_PREFIX has been set as /usr/local
-- Install target dir is /usr/local
Add LD_LIBRARY_PATH to -L flags /usr/local/lib64/usr/local/lib64
-- CMAKE_CXX_FLAGS is -Wall -Werror -Wno-error=sign-compare -DDEBUG -g -O0 -fno-omit-frame-pointer -fsanitize=address -fsanitize-address-use-after-scope
-- Using replxx for line reading
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
CMake Error at CMakeLists.txt:177 (FIND_PACKAGE):
By not providing "Findreplxx.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "replxx", but
CMake did not find one.
Could not find a package configuration file provided by "replxx" with any
of the following names:
replxxConfig.cmake
replxx-config.cmake
Add the installation prefix of "replxx" to CMAKE_PREFIX_PATH or set
"replxx_DIR" to a directory containing one of the above files. If "replxx"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found. Stop.
make: *** No targets specified and no makefile found. Stop.