gui_starter_template icon indicating copy to clipboard operation
gui_starter_template copied to clipboard

Conan error sdl/2.0.20

Open FillePiano opened this issue 1 year ago • 0 comments

On a fresh clone I get the following error:

 Developer mode is ON. For production, use `-DENABLE_DEVELOPER_MODE:BOOL=OFF`. Building the project for the
 developer...
 The default CMAKE_C_STANDARD used by external targets and tools is not set yet. Using the latest supported C
 standard that is 17
 Interprocedural optimization is enabled. In other projects, linking with the compiled libraries of this
 project might require `set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)`
 /usr/bin/ccache found and enabled
 Conan: Adding cci remote repository (https://center.conan.io) verify ssl (True)
 Conan: Adding bincrafters remote repository (https://bincrafters.jfrog.io/artifactory/api/conan/public-conan)
 verify ssl (True)
 Single configuration build!
 Running Conan for build type 'RelWithDebInfo'
 Conan: checking conan executable
 Conan: Found program /usr/bin/conan
 Conan: Version found Conan version 1.50.0
 Conan executing: /usr/bin/conan install /home/obm/programs/setgamus --build missing --env CC=/usr/bin/cc
 --env CXX=/usr/bin/c++ --settings build_type=RelWithDebInfo --settings compiler=gcc --settings
 compiler.version=12 --settings compiler.libcxx=libstdc++11 --settings compiler.cppstd=20
 ERROR: sdl/2.0.20: Cannot load recipe.
 Error loading conanfile at '/home/obm/.conan/data/sdl/2.0.20/_/_/export/conanfile.py': Unable to load
 conanfile in /home/obm/.conan/data/sdl/2.0.20/_/_/export/conanfile.py
   File "/usr/lib/python3.10/imp.py", line 172, in load_source
     module = _load(spec)
   File "<frozen importlib._bootstrap>", line 719, in _load
   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
   File "<frozen importlib._bootstrap_external>", line 883, in exec_module
   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
   File "/home/obm/.conan/data/sdl/2.0.20/_/_/export/conanfile.py", line 3, in <module>
     from conan.tools.apple import is_apple_os
 ImportError: cannot import name 'is_apple_os' from 'conan.tools.apple'
 (/usr/lib/python3.10/site-packages/conan/tools/apple/__init__.py)

 CMake Error at build/conan.cmake:638 (message):
   Conan install failed='1'
 Call Stack (most recent call first):
   build/_deps/_project_options-src/src/Conan.cmake:61 (conan_cmake_install)
   build/_deps/_project_options-src/src/Index.cmake:212 (run_conan)
   build/_deps/_project_options-src/src/DynamicProjectOptions.cmake:147 (project_options)
   CMakeLists.txt:100 (dynamic_project_options)

 Configuring incomplete, errors occurred!
 See also "/home/obm/programs/setgamus/build/CMakeFiles/CMakeOutput.log".

Any ideas? It works if I delete all references to sdl (also in the conanfile).

FillePiano avatar Sep 10 '22 09:09 FillePiano