我在和柯南一起创作我的权术家时遇到了一些问题。我只是遵循官方的例子,但这对我不起作用.
这是我的Cmakefiles.txt:
cmake_minimum_required(VERSION 2.8)
project(UDP_Server)
set(CMAKE_BUILD_TYPE Release)
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
message(STATUS "Downloading conan.cmake from
https://github.com/conan-io/cmake-conan")
file(DOWNLOAD "https://raw.githubusercontent.com/conan-io/cmake-
conan/master/conan.cmake"
"${CMAKE_BINARY_DIR}/conan.cmake")
endif()
include(${CMAKE_BINARY_DIR}/conan.cmake)
conan_cmake_run(REQUIRES Hello/0.1@memsharded/testing
BASIC_SETUP
BUILD missing)
add_executable(server server/server.cpp)
add_executable(client client/client.cpp)
target_link_libraries(main ${CONAN_LIBS})我的错误是:
ERROR: Failed requirement 'Hello/0.1@memsharded/testing' from 'PROJECT'
ERROR: Unable to find 'Hello/0.1@memsharded/testing' in remotes
CMake Error at conan.cmake:368 (message):
Conan install failed='1'
Call Stack (most recent call first):
conan.cmake:448 (conan_cmake_install)
CMakeLists.txt:14 (conan_cmake_run)
-- Configuring incomplete, errors occurred!发布于 2019-02-05 18:25:59
程序包Hello/0.1@Memsharded/ The仅在Memsharded的远程中可用
因此,您需要在构建项目之前添加远程:
conan remote add memsharded https://api.bintray.com/conan/memsharded/conan-common 否则就找不到那个包裹了。
另一个选项是下载该项目并构建它:
git clone https://github.com/memsharded/conan-hello.git
cd conan-hello
conan create . memsharded/testinghttps://stackoverflow.com/questions/53428536
复制相似问题