Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
david-bakin opened this issue Mar 22, 2022 · 0 comments
Open

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

david-bakin opened this issue Mar 22, 2022 · 0 comments

Comments

@david-bakin
Copy link

david-bakin commented Mar 22, 2022

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".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant