Giter Club home page Giter Club logo

Comments (11)

BenFrantzDale avatar BenFrantzDale commented on August 20, 2024 1

Ok, conan remove -f Catch2 seemed to do it for the name confusion, then removing the conan-center section from ~/.conan/remotes.json resolved the permission error, then cmake --build . worked. Sweet!

As for cmake/Conan.cmake, I did this:

diff --git a/cmake/Conan.cmake b/cmake/Conan.cmake
index f4d9205..fc69581 100644
--- a/cmake/Conan.cmake
+++ b/cmake/Conan.cmake
@@ -9,16 +9,11 @@ macro(run_conan)
   include(${CMAKE_BINARY_DIR}/conan.cmake)
 
   conan_add_remote(
-    NAME
-    conan-center
-    URL
-    https://api.bintray.com/conan/conan/conan-center)
-
-  conan_add_remote(
-    NAME
-    bincrafters
-    URL
-    https://bincrafters.jfrog.io/artifactory/api/conan/public-conan)
+          NAME
+          bincrafters
+          URL
+          https://bincrafters.jfrog.io/artifactory/api/conan/public-conan)
+  conan_add_remote(NAME cci URL https://center.conan.io INDEX 0)
 
   conan_cmake_run(
     REQUIRES

As for making this not happen to others.... I'm not sure how my Conan was introduced to Catch2...

from gui_starter_template.

BenFrantzDale avatar BenFrantzDale commented on August 20, 2024 1

It now is merged. I pulled master and mkdir build-cpp_starter_project && cd build-cpp_starter_project && cmake ../cpp_starter_project && cmake --build . succeeds.

from gui_starter_template.

akshit-sharma avatar akshit-sharma commented on August 20, 2024

Try updating conan to 1.22.0 or higher.

from gui_starter_template.

ddalcino avatar ddalcino commented on August 20, 2024

Given that @akshit-sharma 's response links to a believable explanation of what is happening here, and a working remedy, I think this issue is resolved. We never heard back from @BenFrantzDale , so we can't tell for certain that this solution worked in his case, but I think it's reasonable to believe that it did. Please reopen this issue if I am wrong.

from gui_starter_template.

BenFrantzDale avatar BenFrantzDale commented on August 20, 2024

I just tried again and now I'm getting ERROR: Permission denied for user: 'None'. [Remote: conan-center] I assume this is because https://api.bintray.com/conan/conan/conan-center is 403ing right now.

from gui_starter_template.

ddalcino avatar ddalcino commented on August 20, 2024

Ok, let's reopen this then. I think the conan-center remote problem is a separate issue; we're working on that now.

from gui_starter_template.

ddalcino avatar ddalcino commented on August 20, 2024

Can you try replacing the conan_add_remote calls in cmake/Conan.cmake with this?

  conan_add_remote(
          NAME
          bincrafters
          URL
          https://bincrafters.jfrog.io/artifactory/api/conan/public-conan)
  conan_add_remote(NAME cci URL https://center.conan.io INDEX 0)

I think https://center.conan.io is sufficient for most packages. You really only need the bintray urls for the GUI packages.

from gui_starter_template.

BenFrantzDale avatar BenFrantzDale commented on August 20, 2024

I tried that and with a clean build dir I get

build-cpp_starter_project % cmake ../cpp_starter_project
-- The CXX compiler identification is AppleClang 11.0.3.11030032
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting build type to 'RelWithDebInfo' as none was specified.
-- ccache found and enabled
-- Downloading conan.cmake from https://github.com/conan-io/cmake-conan
-- Conan: checking conan executable
-- Conan: Found program /usr/local/bin/conan
-- Conan: Version found Conan version 1.39.0

-- Conan: Adding bincrafters remote repository (https://bincrafters.jfrog.io/artifactory/api/conan/public-conan) verify ssl (True)
-- Conan: checking conan executable
-- Conan: Found program /usr/local/bin/conan
-- Conan: Version found Conan version 1.39.0

-- Conan: Adding cci remote repository (https://center.conan.io) verify ssl (True)
-- Conan: Automatic detection of conan settings from cmake
-- Conan: Settings= -s;build_type=RelWithDebInfo;-s;compiler=apple-clang;-s;compiler.version=11.0;-s;compiler.libcxx=libc++
-- Conan: checking conan executable
-- Conan: Found program /usr/local/bin/conan
-- Conan: Version found Conan version 1.39.0

-- Conan executing: /usr/local/bin/conan install . -s build_type=RelWithDebInfo -s compiler=apple-clang -s compiler.version=11.0 -s compiler.libcxx=libc++ -g=cmake --build=missing
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=RelWithDebInfo
compiler=apple-clang
compiler.libcxx=libc++
compiler.version=11.0
os=Macos
os_build=Macos
[options]
[build_requires]
[env]

ERROR: Requested 'catch2/2.13.3', but found case incompatible recipe with name 'Catch2' in the cache. Case insensitive filesystem can't manage this.
 Remove existing recipe 'Catch2' and try again.
CMake Error at /Users/benfrantzdale/code/other/build-cpp_starter_project/conan.cmake:522 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  /Users/benfrantzdale/code/other/build-cpp_starter_project/conan.cmake:759 (old_conan_cmake_install)
  cmake/Conan.cmake:18 (conan_cmake_run)
  CMakeLists.txt:80 (run_conan)


-- Configuring incomplete, errors occurred!
See also "/Users/benfrantzdale/code/other/build-cpp_starter_project/CMakeFiles/CMakeOutput.log".
build-cpp_starter_project % 

If I change the catch2 line in conan_cmake_run to be Catch2/2.13.2 (capital C) I get

...
os_build=Macos
[options]
[build_requires]
[env]

Catch2/2.13.3: Not found in local cache, looking in remotes...
Catch2/2.13.3: Trying with 'cci'...
Catch2/2.13.3: Trying with 'conan-center'...
ERROR: Permission denied for user: 'None'. [Remote: conan-center]
CMake Error at /Users/benfrantzdale/code/other/build-cpp_starter_project/conan.cmake:522 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  /Users/benfrantzdale/code/other/build-cpp_starter_project/conan.cmake:759 (old_conan_cmake_install)
  cmake/Conan.cmake:18 (conan_cmake_run)
  CMakeLists.txt:80 (run_conan)


-- Configuring incomplete, errors occurred!
See also "/Users/benfrantzdale/code/other/build-cpp_starter_project/CMakeFiles/CMakeOutput.log".
build-cpp_starter_project % 

from gui_starter_template.

BenFrantzDale avatar BenFrantzDale commented on August 20, 2024

If I remove ~/.conan/data/Catch2 and re-run with the original lower-case catch2/2.13.3 it looks about the same:

...
[build_requires]
[env]

ERROR: Permission denied for user: 'None'. [Remote: conan-center]
CMake Error at /Users/benfrantzdale/code/other/build-cpp_starter_project/conan.cmake:522 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  /Users/benfrantzdale/code/other/build-cpp_starter_project/conan.cmake:759 (old_conan_cmake_install)
  cmake/Conan.cmake:18 (conan_cmake_run)
  CMakeLists.txt:80 (run_conan)


-- Configuring incomplete, errors occurred!
See also "/Users/benfrantzdale/code/other/build-cpp_starter_project/CMakeFiles/CMakeOutput.log".
build-cpp_starter_project % 

(Same with capital-C).

from gui_starter_template.

ddalcino avatar ddalcino commented on August 20, 2024

I am seeing two problems here:

  1. There's a name collision between catch2 and Catch2:
    ERROR: Requested 'catch2/2.13.3', but found case incompatible recipe with name 'Catch2' in the cache.
    Case insensitive filesystem can't manage this.
    Remove existing recipe 'Catch2' and try again.

    The error message suggest what the remedy is (remove Catch2), but it doesn't tell you how to do it. I think this command should remove Catch2 (the -f flag removes the package without confirmation; you can omit it):

    conan remove -f Catch2

    If this doesn't work, you can try conan remove -f '*'; this will remove all packages.

  2. This error:
    Catch2/2.13.3: Not found in local cache, looking in remotes...
    Catch2/2.13.3: Trying with 'cci'...
    Catch2/2.13.3: Trying with 'conan-center'...
    ERROR: Permission denied for user: 'None'. [Remote: conan-center]

    This suggests that you still have a remote called conan-center configured. In the past, this project defined a remote for 'conan-center' as https://api.bintray.com/conan/conan/conan-center; this remote has been defunct for a long time now, and it looks like you need an account to use it. #145 replaced it with the current bincrafters url.

    Did you remove all of the conan_add_remote calls in cmake/Conan.cmake, and replace them with the new remotes, as suggested above?

from gui_starter_template.

ddalcino avatar ddalcino commented on August 20, 2024

Ok, cool. That change is roughly equivalent to the remote changes in #150. When that PR is merged (soon), we can close this issue.

from gui_starter_template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.