ydb-platform / ydb

YDB is an open source Distributed SQL Database that combines high availability and scalability with strong consistency and ACID transactions
https://ydb.tech
Apache License 2.0
4k stars 565 forks source link

build guide: conan #335

Closed k-morozov closed 1 year ago

k-morozov commented 1 year ago

Hello everyone!

I try to build YDB project with using build guide in BUILD.md. Although I have done all prev steps I have an error here https://github.com/ydb-platform/ydb/blob/main/BUILD.md#configure

ERROR: No remote 'conancenter' defined in remotes

Maybe someone has idea how it fix?

(ve) ➜  build cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS_RELEASE="-O2 -UNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-O2 -UNDEBUG" -DCMAKE_TOOLCHAIN_FILE=../ydb/clang.toolchain ../ydb   

-- The C compiler identification is Clang 14.0.6
-- The CXX compiler identification is Clang 14.0.6
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /usr/bin/clang-14
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang-14 - 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/clang++-14 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:26 (cmake_policy):
  The OLD behavior for policy CMP0104 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.

-- Found Python3: /home/focus/dev/repo/opensource/ydbwork/ve/bin/python3.9 (found version "3.9.16") found components: Interpreter 
-- Using /usr/bin/clang++-14 for c++ to LLVM IR translation
-- Using /usr/bin/clang-14 for c++ to LLVM IR translation
-- Using /usr/bin/llvm-link-14 for LLVM IR linking
-- Using /usr/bin/opt-14 for LLVM IR optimization
-- Using /usr/bin/llc-14 for LLVM IR to binary code compilation
-- Conan: checking conan executable
-- Conan: Found program /usr/local/bin/conan
-- Conan: Version found Conan version 1.59.0
-- Conan executing: /usr/local/bin/conan install /home/focus/dev/repo/opensource/ydbwork/ydb --remote conancenter --install-folder /home/focus/dev/repo/opensource/ydbwork/build --build missing --env CONAN_CMAKE_GENERATOR=Ninja --settings build_type=Release --settings compiler=clang --settings compiler.version=14 --settings compiler.libcxx=libstdc++11 --settings compiler.cppstd=20 --conf tools.cmake.cmaketoolchain:generator=Ninja
ERROR: No remote 'conancenter' defined in remotes
CMake Error at cmake/conan.cmake:668 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  CMakeLists.txt:44 (conan_cmake_install)

-- Configuring incomplete, errors occurred!
k-morozov commented 1 year ago

I found a fix: https://docs.conan.io/1/uploading_packages/remotes.html#conancenter

conan remote add conancenter https://center.conan.io