Skip to content

How to run conan given a pmm-managed repo? #56

@david-bakin

Description

@david-bakin

I'm trying to get the pitchfork repo to build. It is using conan. Apparentliy it's conanfile.py is way out of date. I don't understand conan yet, but I see the following error and:

  • I don't know how to run conan though it says "you may need to run conan manually (from the build directory)". No conan is found anywhere (i.e., using which). (or Conan)
    • For example, I'd like to add a remote using conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
-- [pmm] Installing Conan requirements from /mnt/r/BBits/pitchfork/conanfile.py
Configuration:
[settings]
arch=x86
build_type=Debug
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=9
cppstd=17
os=Linux
[options]
[build_requires]
[env]
CC=/usr/bin/cc
CXX=/usr/bin/c++
Catch2/2.13.8@catchorg/stable: Not found in local cache, looking in remotes...
Catch2/2.13.8@catchorg/stable: Trying with 'conancenter'...
ERROR: Failed requirement 'Catch2/2.13.8@catchorg/stable' from 'conanfile.py (pf/0.1.0)'
ERROR: Unable to find 'Catch2/2.13.8@catchorg/stable' in remotes
CMake Error at build/_pmm/1.3.1/conan.cmake:470 (message):
  Conan install failed [1]:

Call Stack (most recent call first):
  build/_pmm/1.3.1/conan.cmake:495 (_pmm_conan_install_1)
  build/_pmm/1.3.1/conan.cmake:643 (_pmm_conan_install)
  build/_pmm/1.3.1/main.cmake:32 (_pmm_conan)
  build/_pmm/1.3.1/main.cmake:47 (_pmm_project_fn)
  CMakeLists.txt:32 (pmm)


CMake Error at build/_pmm/1.3.1/conan.cmake:500 (message):
  Conan dependencies were not imported (Expected file
  /mnt/r/BBits/pitchfork/build/conanbuildinfo.cmake).  You may need to run
  Conan manually (from the build directory).  Ensure you are using the
  'cmake' generator.
Call Stack (most recent call first):
  build/_pmm/1.3.1/conan.cmake:643 (_pmm_conan_install)
  build/_pmm/1.3.1/main.cmake:32 (_pmm_conan)
  build/_pmm/1.3.1/main.cmake:47 (_pmm_project_fn)
  CMakeLists.txt:32 (pmm)


CMake Error at CMakeLists.txt:33 (conan_set_find_paths):
  Unknown CMake command "conan_set_find_paths".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions