CrealityOfficial / CrealityPrint-build

3 stars 5 forks source link

你好,cmake 报错 __cc_find must use conan, cc is abandoned #1

Open rushairer opened 11 months ago

rushairer commented 11 months ago
image

报错信息和环境版本如图

rushairer commented 11 months ago

if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/spdlog/CMakeLists.txt)

没有找到这个文件

rushairer commented 11 months ago

可能和 https://github.com/CrealityOfficial/conan_build/issues/1 这个问题有关联

我加上了 -u False 参数再次编译 就报错 ERROR: Duplicated requirement cxbin/0.0.4@opensource/mac != cxbin/0.0.3@opensource/mac

完整如下

python3 cmake/ci/conan-cmake.py -t opensource-mac

[cmake/ci] working path :/Users/abenx/Works/Git/3dprint/CrealityPrint/
getopt.getopt -> :[('-t', 'opensource-mac')]
[cmake/ci] mac project path :/Users/abenx/Works/Git/3dprint/CrealityPrint//mac-build/build/
create_conan_file_from_graph -> ['cxlog/0.0.2', 'cxbin/0.0.4', 'osswrapper/0.0.2', 'thumbnail/0.0.3', 'libnest2d/0.0.3', 'nestplacer/0.0.6', 'qhullwrapper/0.0.4', 'quazip/0.0.2', 'enchase/0.0.3', 'clipper/0.0.2', 'clipper3r/0.0.2', 'polyclipping/0.0.1', 'sensors_analytics_sdk/0.0.1', 'splitslot/0.0.4', 'ffmpeglib/0.0.2', 'libqrencode/0.0.1', 'cpr/0.0.2', 'glew/0.0.2', 'qrlib/0.0.2', 'cereal/0.0.1', 'stb/0.0.2', 'fmt/0.0.1', 'ovdbutil/0.0.3', 'aliyunoss/0.0.2', 'eigen/0.0.2', 'admesh/0.0.1', 'clipper2/0.0.1', 'opencascade/0.0.3', 'freetype/0.0.2', 'tbb/0.0.2', 'libtess2/0.0.1', 'mmesh/0.0.3', 'colladadom/0.0.2', 'tinyxml/0.0.2', 'zip/0.0.2', 'lib3mf/0.0.2', 'stringutil/0.0.2', 'imageproc/0.0.3', 'png/0.0.2', 'cxbin/0.0.3', 'glm/0.0.1', 'nlopt/0.0.2', 'boost/0.0.2', 'trimesh2/0.0.3', 'curl/0.0.2', 'zlib/0.0.2', 'fmesh/0.0.4', 'minizip/0.0.2', 'libxml/0.0.2', 'pcre/0.0.2', 'freeimage/0.0.2', 'potrace/0.0.2', 'zstd/0.0.1', 'openssl/0.0.2', 'cmesh/0.0.3', 'dxflib/0.0.2', 'librevenge/0.0.2', 'rapidjson/1.0.0', 'tinyxml/0.0.3', 'openjpeg/0.0.2', 'cgal/0.0.2', 'gmp/0.0.1', 'mpfr/0.0.1']
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=apple-clang
compiler.libcxx=libc++
compiler.version=14
os=Macos
os_build=Macos
[options]
[build_requires]
[env]

ERROR: Duplicated requirement cxbin/0.0.4@opensource/mac != cxbin/0.0.3@opensource/mac
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=apple-clang
compiler.libcxx=libc++
compiler.version=14
os=Macos
os_build=Macos
[options]
[build_requires]
[env]

ERROR: Duplicated requirement cxbin/0.0.4@opensource/mac != cxbin/0.0.3@opensource/mac
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- The CXX compiler identification is AppleClang 14.0.3.14030022
-- The C compiler identification is AppleClang 14.0.3.14030022
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- CMAKE_SYSTEM_NAME ---> Darwin
-- CC Build Case [ MAC ]
-- Disable Conan
-- CMAKE_USE_CONAN, But Disabled
-- bin : /Users/abenx/Works/Git/3dprint/CrealityPrint/mac-build/build/../bin
-- lib : /Users/abenx/Works/Git/3dprint/CrealityPrint/mac-build/build/../lib
-- 0.0.1
-- CMAKE_INSTALL_PREFIX Default.
-- CMAKE INSTALL PREFIX /Users/abenx/Works/Git/3dprint/CrealityPrint/mac-build/build/install/
-- CMAKE_OSX_DEPLOYMENT_TARGET -> 10.12
-- Default Build Type Release
-- Performing Test _cpp_14_flag_supported
-- Performing Test _cpp_14_flag_supported - Success
-- include collect/CollectEntry.cmake
-- include qt/QtEntry.cmake
-- include render/RenderEntry.cmake
-- Found Python3: /usr/local/Frameworks/Python.framework/Versions/3.9/bin/python3.9 (found version "3.9.17") found components: Interpreter Development Development.Module Development.Embed
-- Find Python3 3.9.17
-- INCLUDES : /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9
-- LIBRARIES : /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib
-- LIBRARY DIRS : /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib
-- Python3_EXECUTABLE : /usr/local/Frameworks/Python.framework/Versions/3.9/bin/python3.9
-- Python3 Debug LIBRARIES : /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib
-- Python3 Release LIBRARIES : /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib
CMake Error at cmake/cc.cmake:8 (message):
  __cc_find must use conan, cc is abandoned.
Call Stack (most recent call first):
  cmake/log.cmake:6 (__cc_find)
  CMakeLists.txt:59 (__enable_spdlog)
dct2012 commented 11 months ago

+1

♥  python3 cmake/ci/conan-cmake.py -t opensource-linux 
[cmake/ci] working path :/home/dct/Desktop/Computers/Creality/CrealityPrint/
getopt.getopt -> :[('-t', 'opensource-linux')]
[cmake/ci] project path :/home/dct/Desktop/Computers/Creality/CrealityPrint//linux-build/build/
create_conan_file_from_graph -> ['cxlog/0.0.2', 'cxbin/0.0.4', 'osswrapper/0.0.2', 'thumbnail/0.0.3', 'libnest2d/0.0.3', 'nestplacer/0.0.6', 'qhullwrapper/0.0.4', 'quazip/0.0.2', 'enchase/0.0.3', 'clipper/0.0.2', 'clipper3r/0.0.2', 'polyclipping/0.0.1', 'sensors_analytics_sdk/0.0.1', 'splitslot/0.0.4', 'ffmpeglib/0.0.2', 'libqrencode/0.0.1', 'cpr/0.0.2', 'glew/0.0.2', 'qrlib/0.0.2', 'cereal/0.0.1', 'stb/0.0.2', 'fmt/0.0.1', 'ovdbutil/0.0.3', 'aliyunoss/0.0.2', 'eigen/0.0.2', 'admesh/0.0.1', 'clipper2/0.0.1', 'opencascade/0.0.3', 'freetype/0.0.2', 'tbb/0.0.2', 'libtess2/0.0.1', 'mmesh/0.0.3', 'colladadom/0.0.2', 'tinyxml/0.0.2', 'zip/0.0.2', 'lib3mf/0.0.2', 'stringutil/0.0.2', 'imageproc/0.0.3', 'png/0.0.2', 'cxbin/0.0.3', 'glm/0.0.1', 'nlopt/0.0.2', 'boost/0.0.2', 'trimesh2/0.0.3', 'curl/0.0.2', 'zlib/0.0.2', 'fmesh/0.0.4', 'zlib_static/1.0.0', 'minizip/0.0.2', 'libxml/0.0.2', 'pcre/0.0.2', 'freeimage/0.0.2', 'potrace/0.0.2', 'zstd/0.0.1', 'openssl/0.0.2', 'cmesh/0.0.3', 'dxflib/0.0.2', 'librevenge/0.0.2', 'rapidjson/1.0.0', 'tinyxml/0.0.3', 'openjpeg/0.0.2', 'cgal/0.0.2', 'gmp/0.0.1', 'mpfr/0.0.1']
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=gcc
compiler.libcxx=libstdc++
compiler.version=11
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

ERROR: Duplicated requirement cxbin/0.0.4@opensource/linux != cxbin/0.0.3@opensource/linux
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++
compiler.version=11
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

ERROR: Duplicated requirement cxbin/0.0.4@opensource/linux != cxbin/0.0.3@opensource/linux
-- CMAKE_SYSTEM_NAME ---> Linux
-- CC Build Case [ LINUX ]
-- Disable Conan
-- CMAKE_USE_CONAN, But Disabled
-- bin : /home/dct/Desktop/Computers/Creality/CrealityPrint/linux-build/build/../bin
-- lib : /home/dct/Desktop/Computers/Creality/CrealityPrint/linux-build/build/../lib
-- 0.0.1
-- CMAKE INSTALL PREFIX /usr/local
-- Default Build Type Release
-- include collect/CollectEntry.cmake
-- include qt/QtEntry.cmake
-- include render/RenderEntry.cmake
-- Find Python3 3.10.12
-- INCLUDES : /usr/include/python3.10
-- LIBRARIES : /usr/lib/x86_64-linux-gnu/libpython3.10.so
-- LIBRARY DIRS : /usr/lib/x86_64-linux-gnu
-- Python3_EXECUTABLE : /usr/bin/python3.10
-- Python3 Debug LIBRARIES : /usr/lib/x86_64-linux-gnu/libpython3.10.so
-- Python3 Release LIBRARIES : /usr/lib/x86_64-linux-gnu/libpython3.10.so
CMake Error at cmake/cc.cmake:8 (message):
  __cc_find must use conan, cc is abandoned.
Call Stack (most recent call first):
  cmake/log.cmake:6 (__cc_find)
  CMakeLists.txt:59 (__enable_spdlog)

-- Configuring incomplete, errors occurred!
See also "/home/dct/Desktop/Computers/Creality/CrealityPrint/linux-build/build/CMakeFiles/CMakeOutput.log".
anoobzenggui commented 11 months ago

The project is fixed now. if you have install mostly conan_build libs. you can run

python3 create_subs.py -n opensource-mac -f patches/7a2112f891f498575e551240c80d6cb4c5a08dfb.patch -u False or python3 create_subs.py -n opensource-linux -f patches/7a2112f891f498575e551240c80d6cb4c5a08dfb.patch -u False or create_subs.py -n opensource-win -f patches/7a2112f891f498575e551240c80d6cb4c5a08dfb.patch -u False

to install cxbin/0.0.4 and thumbnail/0.0.4 only.