build_tools_version是 ext 定义的吗?

本文详细介绍了如何在顶级构建文件中设置通用配置选项,适用于所有子项目/模块。包括支持版本、构建工具版本、最小SDK版本的设定,以及添加依赖和仓库的策略。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

build_tools_version是 ext 定义的吗?

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext.support_version = "26"
    ext.build_tools_version = "27.0.3"
    ext.min_sdk_version = 24


    repositories {
        jcenter()
        google()
        flatDir {
            dirs 'src/main/libs'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.4'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        google()
        flatDir {
            dirs 'src/main/libs'
        }
        maven {
            //this
            //url "https://oss.sonatype.org/content/repositories/snapshots"
            url "https://maven.google.com"
        }
    }
}

  

转载于:https://www.cnblogs.com/hoge66/p/11258634.html

#!/bin/bash # Logging functions with color-coded output function log_error() { local msg="$1" if [[ -n "${msg}" ]]; then echo -e "\033[31m[ERROR] ${msg}\033[0m" fi } function log_info() { local msg="$1" if [[ -n "${msg}" ]]; then echo -e "\033[32m[INFO] ${msg}\033[0m" fi } function log_warn() { local msg="$1" if [[ -n "${msg}" ]]; then echo -e "\033[33m[WARN] ${msg}\033[0m" fi } # Execute command with error checking function run_command() { local cmd="$@" log_warn "Executing: $cmd" time eval "$cmd" local retVal=$? if [ $retVal -ne 0 ]; then log_error "Command failed with exit code $retVal: $cmd" exit $retVal else log_info "Command succeeded: $cmd" fi } # Build Android QSSI function build_android_qssi() { if [ -d "${ANDROID_QSSI_DIR}" ]; then cd "${ANDROID_QSSI_DIR}" || exit 1 unset PATH || true export PATH="${ORIGIN_ENV}" log_info "build android_qssi start" run_command "source build/envsetup.sh" run_command "lunch ${ANDROID_QSSI_TARGET}-${AND_BUILD_VARIANT}" run_command "${BASH} build.sh dist -j${MAX_JOBS} --qssi_only" log_info "build android_qssi end" else log_warn "${ANDROID_QSSI_DIR} not found, skipping!" fi } # Build Android Vendor function build_android_vendor() { if [ -d "${ANDROID_VENDOR_DIR}" ]; then cd "${ANDROID_VENDOR_DIR}" || exit 1 unset PATH || true export PATH="${ORIGIN_ENV}" log_info "build android_vendor start" run_command "source build/envsetup.sh" run_command "lunch ${ANDROID_VENDOR_TARGET}-${AND_BUILD_VARIANT}" run_command "source kernel_platform/qcom/proprietary/prebuilt_HY11/vendorsetup.sh" run_command "bash kernel_platform/build/android/prepare_vendor.sh autogvm gki" run_command "${BASH} build.sh dist -j${MAX_JOBS} --target_only" # Generate super.img if [ ! -e "${ANDROID_QSSI_DIR}/out/target/product/${ANDROID_QSSI_TARGET}/system.img" ]; then log_error "system.img must exist when generating super.img" exit 1 fi run_command "${PYTHON} vendor/qcom/opensource/core-utils/build/build_image_standalone.py --image super \ --qssi_build_path ${ANDROID_QSSI_DIR} \ --target_build_path ${ANDROID_VENDOR_DIR} \ --merged_build_path ${ANDROID_VENDOR_DIR} \ --target_lunch ${ANDROID_VENDOR_TARGET} --output_ota --skip_qiifa" log_info "build android_vendor end" else log_warn "${ANDROID_VENDOR_DIR} not found, skipping!" fi } # Build Android OTA package function build_android_ota() { if [ -d "${ANDROID_VENDOR_DIR}" ]; then cd "${ANDROID_VENDOR_DIR}" || exit 1 unset PATH || true export PATH="${ORIGIN_ENV}" log_info "build android_ota start" run_command "source build/envsetup.sh" run_command "lunch ${ANDROID_VENDOR_TARGET}-${AND_BUILD_VARIANT}" run_command "${BASH} build.sh dist --merge_only" log_info "build android_ota end" else log_error "${ANDROID_VENDOR_DIR} not found, exiting!" exit 1 fi } # Build QCOM components function build_qcom_boot() { log_info "build qcom_boot start" cd "${TEST_DEVICE_DIR}/boot" || exit 1 run_command "${PYTHON} boot_images/boot_tools/buildex.py --variant AU -r RELEASE -t Makena,QcomToolsPkg" log_info "build qcom_boot end" } function build_qcom_tz() { log_info "build qcom_tz start" cd "${TEST_DEVICE_DIR}/tz/trustzone_images/build/ms/" || exit 1 run_command "python3 build_all.py -b TZ.XF.5.0 CHIPSET=makena" log_info "build qcom_tz end" } function build_qcom_sdsp() { log_info "build qcom_sdsp start" cd "${TEST_DEVICE_DIR}/sdsp/slpi_proc/build/ms/" || exit 1 run_command "${PYTHON} ./build_variant.py makena.slpi.prod2" log_info "build qcom_sdsp end" } function build_qcom_cdsp() { log_info "build qcom_cdsp start" cd "${TEST_DEVICE_DIR}/cdsp/cdsp_proc/build/ms/" || exit 1 run_command "${PYTHON} ./build_variant.py makena.cdsp0.prod" run_command "${PYTHON} ./build_variant.py makena.cdsp1.prod" log_info "build qcom_cdsp end" } function build_qcom_adsp() { log_info "build qcom_adsp start" cd "${TEST_DEVICE_DIR}/adsp/adsp_proc/build/ms/" || exit 1 run_command "${PYTHON} ./build_variant.py makena.adsp_au.prod2" log_info "build qcom_adsp end" } function build_qcom_aop() { log_info "build qcom_aop start" cd "${TEST_DEVICE_DIR}/aop/aop_proc/build/" || exit 1 run_command "${BASH} build_makenaau.sh" log_info "build qcom_aop end" } function build_qcom_bin() { log_info "build qcom_bin start" if [ ! -d "${TEST_DEVICE_DIR}" ]; then log_error "${TEST_DEVICE_DIR} not found, exiting!" exit 1 fi cd "${TEST_DEVICE_DIR}" || exit 1 run_command "source setenv.sh" build_qcom_aop build_qcom_adsp build_qcom_cdsp build_qcom_sdsp build_qcom_boot build_qcom_tz log_info "build qcom_bin end" } # Build Android (QSSI + Vendor) function build_android_all() { log_info "build android_all start" build_android_qssi build_android_vendor log_info "build android_all end" } # Build QNX function build_qnx_only() { log_info "build qnx_only start" if [ -d "${QNX_DIR}" ]; then unset PATH || true export PATH="${ORIGIN_ENV}" cd "${QNX_DIR}/workspace/modules/bsp/apps/qnx_ap" || exit 1 run_command "source setenv_hyp710.sh --external $(pwd)/../../../../../external/sdk/qualcomm/qnx710_host -p 3R425" run_command "make" else log_warn "no qnx code found, skipping!" fi log_info "build qnx_only end" } # Build meta function build_meta() { log_info "build meta start" cd "${TEST_DEVICE_DIR}" || exit 1 if [ ! -d "${ANDROID_QSSI_DIR}" ]; then log_error "${ANDROID_QSSI_DIR} not found, exiting!" exit 1 fi if [ ! -d "${ANDROID_VENDOR_DIR}" ]; then log_error "${ANDROID_VENDOR_DIR} not found, exiting!" exit 1 fi if [ ! -d "${TEST_DEVICE_DIR}/apps_kernel" ]; then mkdir "${TEST_DEVICE_DIR}/apps_kernel" || exit 1 fi ln -fs "$(dirname "$(dirname "${ANDROID_QSSI_DIR}")")" . ln -fs "$(dirname "$(dirname "${ANDROID_VENDOR_DIR}")")" . ln -fs "${QNX_DIR}/workspace/modules/bsp/apps" . ln -fs "${KERNEL_PLATFORM_DIR}" "${TEST_DEVICE_DIR}/apps_kernel" cd "${TEST_DEVICE_DIR}/common/build" || exit 1 if [ "${GWM_V4_DV}" == "true" ]; then sed -i 's/<file_name>cluster.img<\/file_name>/<file_name><\/file_name>/g' "${TEST_DEVICE_DIR}/common/config/contents_${VARIANT}.xml" sed -i 's/<file_name>qnxres.img<\/file_name>/<file_name><\/file_name>/g' "${TEST_DEVICE_DIR}/common/config/contents_${VARIANT}.xml" sed -i 's/<file_name>vr.img<\/file_name>/<file_name><\/file_name>/g' "${TEST_DEVICE_DIR}/common/config/contents_${VARIANT}.xml" sed -i 's/<file_name>navi_buffer.img<\/file_name>/<file_name><\/file_name>/g' "${TEST_DEVICE_DIR}/common/config/contents_${VARIANT}.xml" sed -i 's/<file_name>appres.img<\/file_name>/<file_name><\/file_name>/g' "${TEST_DEVICE_DIR}/common/config/contents_${VARIANT}.xml" sed -i 's/filename=\"qnxres.img\"/filename=\"\"/g' "${TEST_DEVICE_DIR}/common/config/ufs/partition_la_ext.xml" sed -i 's/filename=\"cluster.img\"/filename=\"\"/g' "${TEST_DEVICE_DIR}/common/config/ufs/partition_la_ext.xml" sed -i 's/filename=\"navi_buffer.img\"/filename=\"\"/g' "${TEST_DEVICE_DIR}/common/config/ufs/partition_la_ext.xml" sed -i 's/filename=\"vr.img\"/filename=\"\"/g' "${TEST_DEVICE_DIR}/common/config/ufs/partition_la_ext.xml" sed -i 's/filename=\"appres.img\"/filename=\"\"/g' "${TEST_DEVICE_DIR}/common/config/ufs/partition_la_ext.xml" fi run_command "${PYTHON} build.py --flavors=${FLAVOR} --variant=${VARIANT} --st=${STORAGE}" log_info "build meta end" } # Pack qfile function pack_qfile() { log_info "build pack_qfile start" cd "${SCRIPTS_DIR}" || exit 1 run_command "${PYTHON} copy_meta_data.py --rootdir ${TOP_CODE_DIR} --output ${TOP_CODE_DIR} --variant ${VARIANT} --flavor ${FLAVOR} --storage ${STORAGE}" log_info "please get the flash img in ${TOP_CODE_DIR}/output" log_info "build pack_qfile end" } # Build userdebug (full build including QCOM, QNX, meta, and OTA) function build_userdebug() { log_info "build userdebug start" AND_BUILD_VARIANT="userdebug" build_android_all build_qnx_only build_qcom_bin build_meta build_android_ota log_info "build userdebug end" } # Build user (release version) function build_user() { log_info "build user start" unset AND_BUILD_VARIANT || true export AND_BUILD_VARIANT="user" build_android_all build_qnx_only build_qcom_bin build_meta build_android_ota log_info "build user end" } # Print help message function print_help() { log_warn "Android and QNX project paths must be replaced with actual project info!" log_info "build android qssi:\nbash build_all.sh --android_qssi" log_info "build android vendor:\nbash build_all.sh --android_vendor" log_info "build android all:\nbash build_all.sh --android_all" log_info "build qnx:\nbash build_all.sh --qnx_only" log_info "build android+qnx:\nbash build_all.sh --android_qnx" log_info "build qcom bin:\nbash build_all.sh --qcom_bin" log_info "build android ota:\nbash build_all.sh --ota\nWarning: run this after compiling all code once" log_info "build userdebug version:\nbash build_all.sh --userdebug" log_info "build user release version:\nbash build_all.sh --user" log_info "pack qfile img:\nbash build_all.sh --pack_qfile" } # Main function function main() { if [ $# -eq 0 ]; then print_help exit 0 fi # Parse arguments ARGS=$(getopt -o h --long help,pack_qfile,android_all,qcom_bin,ota,userdebug,user,android_qssi,android_vendor,qnx_only,android_qnx,dv,recompile_kernel,android_vendor_pro:,qnx_pro:,variant:,storage:,flavor:,jobs: -n "$0" -- "$@") if [ $? -ne 0 ]; then log_error "Invalid arguments. Terminating..." exit 1 fi eval set -- "${ARGS}" # Initialize flags declare -A BUILD_FLAGS while true; do case "$1" in -h|--help) print_help exit 0 ;; --android_all) BUILD_FLAGS[ANDROID_ALL]=1; shift ;; --android_qssi) BUILD_FLAGS[ANDROID_QSSI]=1; shift ;; --android_vendor) BUILD_FLAGS[ANDROID_VENDOR]=1; shift ;; --qcom_bin) BUILD_FLAGS[QCOM_BIN]=1; shift ;; --ota) BUILD_FLAGS[ANDROID_OTA]=1; shift ;; --qnx_only) BUILD_FLAGS[QNX]=1; shift ;; --recompile_kernel) export RECOMPILE_KERNEL=1; shift ;; --android_qnx) BUILD_FLAGS[ANDROID_QNX]=1; shift ;; --userdebug) BUILD_FLAGS[USERDEBUG]=1; shift ;; --user) BUILD_FLAGS[USER]=1; shift ;; --pack_qfile) BUILD_FLAGS[PACK_QFILE]=1; shift ;; --dv) export GWM_V4_DV=true; shift ;; --android_vendor_pro) ANDROID_VENDOR_TARGET="$2"; shift 2 ;; --qnx_pro) QNX_TARGET="$2"; shift 2 ;; --variant) VARIANT="$2"; shift 2 ;; --storage) STORAGE="$2"; shift 2 ;; --flavor) FLAVOR="$2"; shift 2 ;; --jobs) MAX_JOBS="$2"; shift 2 ;; --) shift; break ;; *) log_error "Unknown option: $1"; exit 1 ;; esac done # Global settings TOP_CODE_DIR=$(dirname "$(pwd)") QFILE_DIR="${TOP_CODE_DIR}/pack/qfile" FASTBOOT_DIR="${TOP_CODE_DIR}/pack/fastboot" ANDROID_QSSI_DIR="${TOP_CODE_DIR}/lagvm_qssi/LINUX/android" ANDROID_VENDOR_DIR="${TOP_CODE_DIR}/lagvm/LINUX/android" KERNEL_PLATFORM_DIR="${TOP_CODE_DIR}/lagvm_qssi/LINUX/android/kernel_platform" QNX_DIR="${TOP_CODE_DIR}/qnx" TEST_DEVICE_DIR="${TOP_CODE_DIR}/test_device" SCRIPTS_DIR="${TOP_CODE_DIR}/integration" ORIGIN_ENV="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ANDROID_QSSI_TARGET=${ANDROID_QSSI_TARGET:-'qssi_au'} ANDROID_VENDOR_TARGET=${ANDROID_VENDOR_TARGET:-'msmnile_gvmq'} MAX_JOBS=${MAX_JOBS:-24} RECOMPILE_KERNEL=${RECOMPILE_KERNEL:-0} VARIANT=${VARIANT:-'8888la'} STORAGE=${STORAGE:-'ufs'} FLAVOR=${FLAVOR:-'8888_la'} PYTHON=${PYTHON:-'python'} BASH=${BASH:-'/bin/bash'} AND_BUILD_VARIANT=${AND_BUILD_VARIANT:-'userdebug'} # Execute builds based on flags if [ "${BUILD_FLAGS[USERDEBUG]}" == 1 ]; then build_userdebug elif [ "${BUILD_FLAGS[USER]}" == 1 ]; then build_user else if [ "${BUILD_FLAGS[ANDROID_ALL]}" == 1 ]; then build_android_all fi if [ "${BUILD_FLAGS[ANDROID_QSSI]}" == 1 ]; then build_android_qssi fi if [ "${BUILD_FLAGS[ANDROID_VENDOR]}" == 1 ]; then build_android_vendor fi if [ "${BUILD_FLAGS[ANDROID_OTA]}" == 1 ]; then build_android_ota fi if [ "${BUILD_FLAGS[QNX]}" == 1 ]; then build_qnx_only fi if [ "${BUILD_FLAGS[ANDROID_QNX]}" == 1 ]; then build_android_all build_qnx_only fi if [ "${BUILD_FLAGS[QCOM_BIN]}" == 1 ]; then build_qcom_bin fi if [ "${BUILD_FLAGS[PACK_QFILE]}" == 1 ]; then build_meta pack_qfile fi fi } # Run main main "$@" 请优化此代码实现,执行bash build_all.sh --userdebug或bash build_all.sh --user可以编译,且函数build_qcom_bin和build_meta也可以执行,且满足代码规范
06-06
(torch) E:\2-三维点云课程\PersFormer_3DLane-main (1)\PersFormer_3DLane-main\models\ops>python setup.py build_ext --inplace running build_ext D:\anaconda3\envs\torch\lib\site-packages\torch\utils\cpp_extension.py:380: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 warnings.warn(f'Error checking compiler version for {compiler}: {error}') building 'MultiScaleDeformableAttention' extension creating E:\2-三维点云课程\PersFormer_3DLane-main (1)\PersFormer_3DLane-main\models\ops\build\temp.win-amd64-cpython-38\Release\2-三维点云课程\PersFormer_3DLane-main (1)\PersFormer_3DLane-main\models\ops\src\cpu creating E:\2-三维点云课程\PersFormer_3DLane-main (1)\PersFormer_3DLane-main\models\ops\build\temp.win-amd64-cpython-38\Release\2-三维点云课程\PersFormer_3DLane-main (1)\PersFormer_3DLane-main\models\ops\src\cuda D:\anaconda3\envs\torch\lib\site-packages\torch\utils\cpp_extension.py:1965: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation. If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST']. warnings.warn( Emitting ninja build file E:\2-三维点云课程\PersFormer_3DLane-main (1)\PersFormer_3DLane-main\models\ops\build\temp.win-amd64-cpython-38\Release\build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) ninja: error: 'E:/2-三维点云课程/PersFormer_3DLane-main (1)/PersFormer_3DLane-main/models/ops/src/cpu/ms_deform_attn_cpu.cpp', needed by 'E:/2-三维点云课程/PersFormer_3DLane-main (1)/PersFormer_3DLane-main/models/ops/build/temp.win-amd64-cpython-38/Release/2-三维点云课程/PersFormer_3DLane-main (1)/PersFormer_3DLane-main/models/ops/src/cpu/ms_deform_attn_cpu.obj', missing and no known rule to make it Traceback (most recent call last): File "D:\anaconda3\envs\torch\lib\site-packages\torch\utils\cpp_extension.py", line 2105, in _run_ninja_build subprocess.run( File "D:\anaconda3\envs\torch\lib\subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "setup.py", line 79, in <module> setup( File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\__init__.py", line 117, in setup return distutils.core.setup(**attrs) File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\_distutils\core.py", line 183, in setup return run_commands(dist) File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\_distutils\core.py", line 199, in run_commands dist.run_commands() File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\_distutils\dist.py", line 954, in run_commands self.run_command(cmd) File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\dist.py", line 950, in run_command super().run_command(command) File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command cmd_obj.run() File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\command\build_ext.py", line 98, in run _build_ext.run(self) File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 359, in run self.build_extensions() File "D:\anaconda3\envs\torch\lib\site-packages\torch\utils\cpp_extension.py", line 866, in build_extensions build_ext.build_extensions(self) File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 476, in build_extensions self._build_extensions_serial() File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 502, in _build_extensions_serial self.build_extension(ext) File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\command\build_ext.py", line 263, in build_extension _build_ext.build_extension(self, ext) File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 557, in build_extension objects = self.compiler.compile( File "D:\anaconda3\envs\torch\lib\site-packages\torch\utils\cpp_extension.py", line 838, in win_wrap_ninja_compile _write_ninja_file_and_compile_objects( File "D:\anaconda3\envs\torch\lib\site-packages\torch\utils\cpp_extension.py", line 1785, in _write_ninja_file_and_compile_objects _run_ninja_build( File "D:\anaconda3\envs\torch\lib\site-packages\torch\utils\cpp_extension.py", line 2121, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension (torch) E:\2-三维点云课程\PersFormer_3DLane-main (1)\PersFormer_3DLane-main\models\ops>python setup.py build_ext --inplace running build_ext D:\anaconda3\envs\torch\lib\site-packages\torch\utils\cpp_extension.py:380: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 warnings.warn(f'Error checking compiler version for {compiler}: {error}') building 'MultiScaleDeformableAttention' extension D:\anaconda3\envs\torch\lib\site-packages\torch\utils\cpp_extension.py:1965: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation. If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST']. warnings.warn( Emitting ninja build file E:\2-三维点云课程\PersFormer_3DLane-main (1)\PersFormer_3DLane-main\models\ops\build\temp.win-amd64-cpython-38\Release\build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) ninja: error: 'E:/2-三维点云课程/PersFormer_3DLane-main (1)/PersFormer_3DLane-main/models/ops/src/cpu/ms_deform_attn_cpu.cpp', needed by 'E:/2-三维点云课程/PersFormer_3DLane-main (1)/PersFormer_3DLane-main/models/ops/build/temp.win-amd64-cpython-38/Release/2-三维点云课程/PersFormer_3DLane-main (1)/PersFormer_3DLane-main/models/ops/src/cpu/ms_deform_attn_cpu.obj', missing and no known rule to make it Traceback (most recent call last): File "D:\anaconda3\envs\torch\lib\site-packages\torch\utils\cpp_extension.py", line 2105, in _run_ninja_build subprocess.run( File "D:\anaconda3\envs\torch\lib\subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "setup.py", line 79, in <module> setup( File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\__init__.py", line 117, in setup return distutils.core.setup(**attrs) File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\_distutils\core.py", line 183, in setup return run_commands(dist) File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\_distutils\core.py", line 199, in run_commands dist.run_commands() File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\_distutils\dist.py", line 954, in run_commands self.run_command(cmd) File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\dist.py", line 950, in run_command super().run_command(command) File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command cmd_obj.run() File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\command\build_ext.py", line 98, in run _build_ext.run(self) File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 359, in run self.build_extensions() File "D:\anaconda3\envs\torch\lib\site-packages\torch\utils\cpp_extension.py", line 866, in build_extensions build_ext.build_extensions(self) File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 476, in build_extensions self._build_extensions_serial() File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 502, in _build_extensions_serial self.build_extension(ext) File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\command\build_ext.py", line 263, in build_extension _build_ext.build_extension(self, ext) File "D:\anaconda3\envs\torch\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 557, in build_extension objects = self.compiler.compile( File "D:\anaconda3\envs\torch\lib\site-packages\torch\utils\cpp_extension.py", line 838, in win_wrap_ninja_compile _write_ninja_file_and_compile_objects( File "D:\anaconda3\envs\torch\lib\site-packages\torch\utils\cpp_extension.py", line 1785, in _write_ninja_file_and_compile_objects _run_ninja_build( File "D:\anaconda3\envs\torch\lib\site-packages\torch\utils\cpp_extension.py", line 2121, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension
07-02
self.run_command("build") File "C:\Users\Dell\.conda\envs\VP2P\lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command self.distribution.run_command(command) File "C:\Users\Dell\.conda\envs\VP2P\lib\site-packages\setuptools\dist.py", line 999, in run_command super().run_command(command) File "C:\Users\Dell\.conda\envs\VP2P\lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command cmd_obj.run() File "C:\Users\Dell\.conda\envs\VP2P\lib\site-packages\setuptools\_distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "C:\Users\Dell\.conda\envs\VP2P\lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command self.distribution.run_command(command) File "C:\Users\Dell\.conda\envs\VP2P\lib\site-packages\setuptools\dist.py", line 999, in run_command super().run_command(command) File "C:\Users\Dell\.conda\envs\VP2P\lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command cmd_obj.run() File "C:\Users\Dell\.conda\envs\VP2P\lib\site-packages\setuptools\command\build_ext.py", line 98, in run _build_ext.run(self) File "C:\Users\Dell\.conda\envs\VP2P\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 359, in run self.build_extensions() File "C:\Users\Dell\.conda\envs\VP2P\lib\site-packages\torch\utils\cpp_extension.py", line 735, in build_extensions build_ext.build_extensions(self) File "C:\Users\Dell\.conda\envs\VP2P\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 476, in build_extensions self._build_extensions_serial() File "C:\Users\Dell\.conda\envs\VP2P\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 502, in _build_extensions_serial self.build_extension(ext) File "C:\Users\Dell\.conda\envs\VP2P\lib\site-packages\setuptools\command\build_ext.py", line 263, in build_extension _build_ext.build_extension(self, ext) File "C:\Users\Dell\.conda\envs\VP2P\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 557, in build_extension objects = self.compiler.compile( File "C:\Users\Dell\.conda\envs\VP2P\lib\site-packages\torch\utils\cpp_extension.py", line 708, in win_wrap_ninja_compile _write_ninja_file_and_compile_objects( File "C:\Users\Dell\.conda\envs\VP2P\lib\site-packages\torch\utils\cpp_extension.py", line 1399, in _write_ninja_file_and_compile_objects _run_ninja_build( File "C:\Users\Dell\.conda\envs\VP2P\lib\site-packages\torch\utils\cpp_extension.py", line 1733, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for torchsparse Running setup.py clean for torchsparse Failed to build torchsparse ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (torchsparse)
最新发布
07-17
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值