20241129解决在Ubuntu20.04下编译中科创达的CM6125的Android10出现找不到库文件libtinfo.so.5的问题

20241129解决在Ubuntu20.04下编译中科创达的CM6125的Android10出现找不到库文件libtinfo.so.5的问题
2024/11/29 20:41


缘起:中科创达的高通CM6125开发板的Android10的编译环境需要。


[ 11% 15993/135734] target Java source list: vr
[ 11% 15994/135734] target Java source list: appwidget
[ 11% 15995/135734] target Java source list: content
[ 11% 15996/135734] target Java source list: bu
[ 11% 15997/135734] Export SDK libs out/target/common/obj/APPS/AccentColorSpaceOverlay_intermediates/exported-sdk-libs
[ 11% 15998/135734] target Java source list: svclib
[ 11% 15999/135734] Export SDK libs out/target/common/obj/APPS/AccentColorPurpleOverlay_intermediates/exported-sdk-libs
[ 11% 16000/135734] Check module type: out/target/common/obj/APPS/DisplayCutoutEmulationCornerOverlay_intermediates/link_type
[ 11% 16001/135734] Check module type: out/target/common/obj/APPS/DisplayCutoutEmulationDoubleOverlay_intermediates/link_type
[ 11% 16002/135734] Check module type: out/target/common/obj/APPS/DisplayCutoutEmulationTallOverlay_intermediates/link_type
[ 11% 16003/135734] Export SDK libs out/target/common/obj/APPS/DisplayCutoutEmulationCornerOverlay_intermediates/exported-sdk-libs
[ 11% 16004/135734] Export SDK libs out/target/common/obj/APPS/DisplayCutoutEmulationTallOverlay_intermediates/exported-sdk-libs
[ 11% 16005/135734] Export SDK libs out/target/common/obj/APPS/DisplayCutoutEmulationDoubleOverlay_intermediates/exported-sdk-libs
[ 11% 16006/135734] Export SDK libs out/target/common/obj/APPS/FontNotoSerifSourceOverlay_intermediates/exported-sdk-libs
[ 11% 16007/135734] Check module type: out/target/product/qssi/obj/EXECUTABLES/antradio_app_intermediates/link_type
[ 11% 16008/135734] target  C: antradio_app <= external/ant-wireless/ant_native/app/ant_app.c
FAILED: out/target/product/qssi/obj/EXECUTABLES/antradio_app_intermediates/app/ant_app.o
/bin/bash -c "PWD=/proc/self/cwd vendor/qcom/proprietary/llvm-arm-toolchain-ship/8.0/bin/clang     -I external/ant-wireless/ant_native/src/common/inc -I external/ant-wireless/ant_native/app -I frameworks/base/core/jni/include -I external/ant-wireless/ant_native -I out/target/product/qssi/obj/EXECUTABLES/antradio_app_intermediates -I out/target/product/qssi/gen/EXECUTABLES/antradio_app_intermediates -I libnativehelper/include_jni \$(cat out/target/product/qssi/obj/EXECUTABLES/antradio_app_intermediates/import_includes)  -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c  -Werror=implicit-function-declaration -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -faddrsig -Wimplicit-fallthrough -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-zero-as-null-pointer-constant -Wno-sign-compare -Wno-defaulted-function-deleted -Wno-inconsistent-missing-override -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -Werror=format-security -nostdlibinc -march=armv8-a  -target aarch64-linux-android -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin   -std=gnu99    -Wall -Werror -g -c -W -Wall -O2 -fPIE -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointer-arithmetic -Wno-null-dereference -D_USING_LIBCXX   -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-tautological-type-limit-compare -Wno-tautological-unsigned-enum-zero-compare -Wno-tautological-unsigned-zero-compare -Wno-c++98-compat-extra-semi -Wno-return-std-move-in-c++11   -MD -MF out/target/product/qssi/obj/EXECUTABLES/antradio_app_intermediates/app/ant_app.d -o out/target/product/qssi/obj/EXECUTABLES/antradio_app_intermediates/app/ant_app.o external/ant-wireless/ant_native/app/ant_app.c"
vendor/qcom/proprietary/llvm-arm-toolchain-ship/8.0/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
[ 11% 16009/135734] Check module type: out/target/product/qssi/obj/SHARED_LIBRARIES/libaudiopolicymanager_intermediates/link_type
[ 11% 16010/135734] Fix manifest: out/target/common/obj/JAVA_LIBRARIES/SettingsLib-search_intermediates/manifest/AndroidManifest.xml
[ 11% 16011/135734] Fix manifest: out/target/common/obj/APPS/SimAppDialog_intermediates/manifest/AndroidManifest.xml.fixed
[ 11% 16012/135734] Fix manifest: out/target/common/obj/APPS/InputDevices_intermediates/manifest/AndroidManifest.xml
[ 11% 16013/135734] Fix manifest: out/target/common/obj/APPS/AccentColorCinnamonOverlay_intermediates/manifest/AndroidManifest.xml
[ 11% 16014/135734] Fix manifest: out/target/common/obj/APPS/AccentColorOceanOverlay_intermediates/manifest/AndroidManifest.xml
[ 11% 16015/135734] Fix manifest: out/target/common/obj/APPS/AccentColorGreenOverlay_intermediates/manifest/AndroidManifest.xml
[ 11% 16016/135734] Fix manifest: out/target/common/obj/APPS/AccentColorBlackOverlay_intermediates/manifest/AndroidManifest.xml
[ 11% 16017/135734] Fix manifest: out/target/common/obj/APPS/AccentColorOrchidOverlay_intermediates/manifest/AndroidManifest.xml
[ 11% 16018/135734] Fix manifest: out/target/common/obj/APPS/MtpDocumentsProvider_intermediates/manifest/AndroidManifest.xml
[ 11% 16019/135734] Fix manifest: out/target/common/obj/APPS/AntHalService_intermediates/manifest/AndroidManifest.xml
[ 11% 16020/135734] Fix manifest: out/target/common/obj/APPS/Shell_intermediates/manifest/AndroidManifest.xml.fixed
[ 11% 16021/135734] Fix manifest: out/target/common/obj/APPS/PrintRecommendationService_intermediates/manifest/AndroidManifest.xml.fixed
[ 11% 16022/135734] Fix manifest: out/target/common/obj/APPS/DynamicSystemInstallationService_intermediates/manifest/AndroidManifest.xml
[ 11% 16023/135734] Fix manifest: out/target/common/obj/APPS/ExtShared_intermediates/manifest/AndroidManifest.xml
[ 11% 16024/135734] build out/target/product/qssi/obj/kernel/msm-4.14/usr
make: Entering directory '/home/rootroot/cm6125q/LINUX/android/kernel/msm-4.14'
make[1]: Entering directory '/home/rootroot/cm6125q/LINUX/android/out/target/product/qssi/obj/kernel/msm-4.14'
  GEN     ./Makefile
  HOSTCC  scripts/basic/fixdep
  SHIPPED scripts/kconfig/zconf.tab.c
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.lex.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
drivers/input/touchscreen/Kconfig:1292:warning: leading whitespace ignored
#
# configuration written to .config
#
make[1]: Leaving directory '/home/rootroot/cm6125q/LINUX/android/out/target/product/qssi/obj/kernel/msm-4.14'
make: Leaving directory '/home/rootroot/cm6125q/LINUX/android/kernel/msm-4.14'
make: Entering directory '/home/rootroot/cm6125q/LINUX/android/kernel/msm-4.14'
make[1]: Entering directory '/home/rootroot/cm6125q/LINUX/android/out/target/product/qssi/obj/kernel/msm-4.14'
/home/rootroot/cm6125q/LINUX/android/vendor/qcom/proprietary/llvm-arm-toolchain-ship/8.0/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
/home/rootroot/cm6125q/LINUX/android/vendor/qcom/proprietary/llvm-arm-toolchain-ship/8.0/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
/home/rootroot/cm6125q/LINUX/android/vendor/qcom/proprietary/llvm-arm-toolchain-ship/8.0/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
/home/rootroot/cm6125q/LINUX/android/vendor/qcom/proprietary/llvm-arm-toolchain-ship/8.0/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
  CHK     include/generated/uapi/linux/version.h
  UPD     include/generated/uapi/linux/version.h
/home/rootroot/cm6125q/LINUX/android/vendor/qcom/proprietary/llvm-arm-toolchain-ship/8.0/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
/home/rootroot/cm6125q/LINUX/android/vendor/qcom/proprietary/llvm-arm-toolchain-ship/8.0/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

  WRAP    arch/arm64/include/generated/uapi/asm/errno.h
  WRAP    arch/arm64/include/generated/uapi/asm/ioctl.h
  WRAP    arch/arm64/include/generated/uapi/asm/ioctls.h
  WRAP    arch/arm64/include/generated/uapi/asm/ipcbuf.h
  WRAP    arch/arm64/include/generated/uapi/asm/kvm_para.h
  WRAP    arch/arm64/include/generated/uapi/asm/mman.h
  WRAP    arch/arm64/include/generated/uapi/asm/msgbuf.h
  WRAP    arch/arm64/include/generated/uapi/asm/poll.h
  WRAP    arch/arm64/include/generated/uapi/asm/resource.h
  WRAP    arch/arm64/include/generated/uapi/asm/sembuf.h
  WRAP    arch/arm64/include/generated/uapi/asm/shmbuf.h
  WRAP    arch/arm64/include/generated/uapi/asm/sockios.h
  WRAP    arch/arm64/include/generated/uapi/asm/socket.h
  WRAP    arch/arm64/include/generated/uapi/asm/swab.h
  WRAP    arch/arm64/include/generated/uapi/asm/termbits.h
  WRAP    arch/arm64/include/generated/uapi/asm/termios.h
  WRAP    arch/arm64/include/generated/uapi/asm/types.h
/home/rootroot/cm6125q/LINUX/android/vendor/qcom/proprietary/llvm-arm-toolchain-ship/8.0/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
  HOSTCC  scripts/unifdef
/home/rootroot/cm6125q/LINUX/android/vendor/qcom/proprietary/llvm-arm-toolchain-ship/8.0/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

  INSTALL usr/include/drm/ (27 files)
  INSTALL usr/include/asm-generic/ (36 files)
  INSTALL usr/include/xen/ (4 files)
  INSTALL usr/include/video/ (5 files)
  INSTALL usr/include/misc/ (1 file)
  INSTALL usr/include/mtd/ (5 files)
  INSTALL usr/include/sound/ (15 files)
  INSTALL usr/include/rdma/ (20 files)
  INSTALL usr/include/media/ (32 files)
  INSTALL usr/include/scsi/ (6 files)
  INSTALL usr/include/rdma/hfi/ (2 files)
  INSTALL usr/include/scsi/fc/ (4 files)
  INSTALL usr/include/linux/ (523 files)
  INSTALL usr/include/scsi/ufs/ (2 files)
  INSTALL usr/include/linux/android/ (1 file)
  INSTALL usr/include/linux/byteorder/ (2 files)
  INSTALL usr/include/linux/caif/ (2 files)
  INSTALL usr/include/linux/can/ (6 files)
  INSTALL usr/include/linux/cifs/ (1 file)
  INSTALL usr/include/linux/dvb/ (8 files)
  INSTALL usr/include/linux/genwqe/ (1 file)
  INSTALL usr/include/linux/hdlc/ (1 file)
  INSTALL usr/include/linux/hsi/ (2 files)
  INSTALL usr/include/linux/iio/ (2 files)
  INSTALL usr/include/linux/isdn/ (1 file)
  INSTALL usr/include/linux/mmc/ (3 files)
  INSTALL usr/include/linux/netfilter/ (88 files)
  INSTALL usr/include/linux/netfilter_arp/ (2 files)
  INSTALL usr/include/linux/netfilter/ipset/ (4 files)
  INSTALL usr/include/linux/netfilter_bridge/ (17 files)
  INSTALL usr/include/linux/netfilter_ipv6/ (12 files)
  INSTALL usr/include/linux/nfsd/ (5 files)
  INSTALL usr/include/linux/raid/ (2 files)
  INSTALL usr/include/linux/netfilter_ipv4/ (10 files)
  INSTALL usr/include/linux/nfc/ (2 files)
  INSTALL usr/include/linux/sched/ (1 file)
  INSTALL usr/include/linux/spi/ (1 file)
  INSTALL usr/include/linux/sunrpc/ (1 file)
  INSTALL usr/include/linux/tc_act/ (15 files)
  INSTALL usr/include/linux/tc_ematch/ (4 files)
  INSTALL usr/include/linux/wimax/ (1 file)
  INSTALL usr/include/linux/usb/ (15 files)
  INSTALL usr/include/asm/ (35 files)
make[1]: Leaving directory '/home/rootroot/cm6125q/LINUX/android/out/target/product/qssi/obj/kernel/msm-4.14'
make: Leaving directory '/home/rootroot/cm6125q/LINUX/android/kernel/msm-4.14'
ninja: build stopped: subcommand failed.
09:57:40 ninja failed with: exit status 1

#### failed to build some targets (03:03 (mm:ss)) ####


real    6m1.843s
user    19m58.515s
sys    2m58.714s
============================================
[build.sh]: FAILED: make -j36 dist ENABLE_AB=true BOARD_DYNAMIC_PARTITION_ENABLE=true SHIPPING_API_LEVEL=29
============================================
20241129_09:57:40 [TURBOX BUILD ERROR]: build_hlos Error****
rootroot@rootroot-X99-Turbo:~/cm6125q$ 
rootroot@rootroot-X99-Turbo:~/cm6125q$ 
rootroot@rootroot-X99-Turbo:~/cm6125q$ 
rootroot@rootroot-X99-Turbo:~/cm6125q$ 
rootroot@rootroot-X99-Turbo:~/cm6125q$ 
rootroot@rootroot-X99-Turbo:~/cm6125q$ sudo apt-get install libtinfo5
[sudo] password for rootroot: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi libgstreamer-plugins-bad1.0-0 libnvidia-cfg1-535 libnvidia-common-535 libnvidia-decode-535 libnvidia-encode-535 libnvidia-extra-535 libnvidia-fbc1-535
  libnvidia-gl-535 libva-wayland2 libx11-xcb1:i386 libxnvctrl0 nvidia-compute-utils-535 nvidia-kernel-source-535 nvidia-settings nvidia-utils-535 screen-resolution-extra xserver-xorg-video-nvidia-535
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  libtinfo5
0 upgraded, 1 newly installed, 0 to remove and 64 not upgraded.
Need to get 83.4 kB of archives.
After this operation, 535 kB of additional disk space will be used.
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates/universe amd64 libtinfo5 amd64 6.2-0ubuntu2.1 [83.4 kB]
Fetched 83.4 kB in 21s (4,015 B/s)
Selecting previously unselected package libtinfo5:amd64.
(Reading database ... 200104 files and directories currently installed.)
Preparing to unpack .../libtinfo5_6.2-0ubuntu2.1_amd64.deb ...
Unpacking libtinfo5:amd64 (6.2-0ubuntu2.1) ...
Setting up libtinfo5:amd64 (6.2-0ubuntu2.1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.16) ...
rootroot@rootroot-X99-Turbo:~/cm6125q$ 

rootroot@rootroot-X99-Turbo:~/cm6125q$ 


参考资料:
https://blog.csdn.net/weixin_41582781/article/details/125875268

clang --version clang: error while loading shared libraries: libtinfo.so.5: cannot open shared objec

wx最初的梦想 于 2022-07-19 16:37:06 发布

安装llvm时出现 clang --version
clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
解决方法:sudo apt-get install libtinfo5


已经安装了

还需要额外安装
net-tools
openssh-server
nethogs
pyton2【内置python3.8】
samba


$ sudo apt-get install android-tools-adb
$ sudo apt-get install android-tools-fastboot
$ sudo apt-get install openjdk-8-jdk
【异常了】
sudo apt-get install repo


sudo apt-get install bc
sudo apt-get install bison
sudo apt-get install build-essential
sudo apt-get install ccache
sudo apt-get install curl
sudo apt-get install flex
sudo apt-get install libxml-simple-perl

sudo apt-get install g++-multilib
sudo apt-get install gcc-multilib
sudo apt-get install git
sudo apt-get install gnupg
sudo apt-get install gperf
sudo apt-get install imagemagick

sudo apt-get install lib32ncurses5-dev
sudo apt-get install lib32readline-dev
sudo apt-get install lib32z1-dev
【需要更新源】
sudo apt-get install libesd0-dev

rootroot@rootroot-X99-Turbo:/etc/apt$ sudo cp sources.list.bak1 sources.list
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo echo "" >> sources.list
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo echo "" >> sources.list
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo echo "deb http://us.archive.ubuntu.com/ubuntu/ xenial main universe" >> sources.list
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo echo "deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main universe" >> sources.list
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo echo "" >> sources.list
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo echo "" >> sources.list

sudo apt-get install liblz4-tool
sudo apt-get install libncurses5-dev
sudo apt-get install libsdl1.2-dev
sudo apt-get install libssl-dev

【异常】
sudo apt-get install libwxgtk3.0-dev
【更新为】
sudo apt install libwxgtk3.0-gtk3-dev
sudo apt-get install libxml2
sudo apt-get install libxml2-utils
sudo apt-get install lzop
sudo apt-get install pngcrush
sudo apt-get install rsync

sudo apt-get install schedtool
sudo apt-get install squashfs-tools
sudo apt-get install xsltproc
sudo apt-get install zip
sudo apt-get install zlib1g-dev

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/diannao/63056.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

react 路由鉴权

权限路由一般两种 1中接口中返回菜单 2 接口中返回权限&#xff0c;前端做匹配 一般都是那种结合&#xff0c;react中没有vue那种钩子函数如何做&#xff1f; 在项目中写一个高阶函数&#xff0c;在高阶函数中判断权限、是否登录等操作app.tsx或者man.tsx中使用 《AuthRouter》…

k8s集群中金丝雀发布 + 声明式资源管理yaml

一、K8S常见的发布方式 旨在降低发布风险并提高发布速度 1、蓝绿发布 两套环境&#xff08;设备&#xff09;交替升级&#xff0c;旧版本保留一定时间便于回滚 优点&#xff1a;对用户无感&#xff0c;是最安全的发布方式&#xff0c;业务稳定 缺点&#xff1a;需要两套系统&…

openssl的运用

一、概述 Opssl是一个用于TLS/SSL协议的工具包&#xff0c;也是一个通用密码库。 包含了国密sm2 sm3 sm4&#xff0c;包含了对称加密&#xff0c;非对称加密&#xff0c;单项散列&#xff0c;伪随机、签名&#xff0c;密码交换&#xff0c;证书等一些算法库。 为了深层次的学习…

基于SpringBoot+Vue的靓车汽车销售网站-无偿分享 (附源码+LW+调试)

目录 1. 项目技术 2. 功能菜单 3. 部分功能截图 4. 研究背景 5. 研究目的 6. 可行性分析 6.1 技术可行性 6.2 经济可行性 6.3 操作可行性 7. 系统设计 7.1 概述 7.2 系统流程和逻辑 7.3 系统结构 8. 数据库设计 8.1 数据库ER图 &#xff08;1&#xff09;材料分…

基于飞腾S2500处理器的全国产加固服务器

近日&#xff0c;西安康德航测电子科技有限公司凭借其深厚的行业底蕴和创新精神&#xff0c;正式推出了基于飞腾S2500处理器的全国产加固服务器。这一产品的问世&#xff0c;不仅标志着我国在信息技术领域的自立自强迈出了坚实的一步&#xff0c;更以其卓越的性能、坚固的设计和…

OpenStack-Glance组件

Glance Glance使用磁盘格式和容器格式基础配置镜像转换 Glance 是 OpenStack 的镜像服务&#xff0c;负责存储、发现和管理虚拟机镜像。它允许用户创建和共享镜像&#xff0c;用于启动虚拟机实例。 Glance 的主要功能 &#xff08;1&#xff09;虚拟机镜像的管理 支持镜像的上…

求助——AssertionError: Attribute pipeline is missing from configuration.json.

我在本地运行Sunsimiao大模型的时候遇到了“AssertionError: Attribute pipeline is missing from configuration.json.”的问题。在网上找了很多问题都没有解决&#xff0c;求助一下广大网友。有什么好的解决方法吗&#xff1f; 本地环境如上所示&#xff0c;不知是哪里出…

2024年顶级小型语言模型前15名

本文&#xff0c;我们将深入了解2024年备受瞩目的十五款小型语言模型&#xff08;SLMs&#xff09;&#xff0c;它们分别是Llama 3.1 8B、Gemma2、Qwen 2、Mistral Nemo、Phi-3.5等。这些SLMs以其精巧的体积和高效率著称&#xff0c;它们不需要依赖庞大的服务器资源&#xff0c…

P3916 图的遍历(Tarjan缩点和反向建边)

P3916 图的遍历 - 洛谷 | 计算机科学教育新生态 写法一&#xff1a;Tarjan 思路&#xff1a;先运用Tarjan算法得到每个连通块中最大的编号&#xff0c;然后对每个连通块进行缩点重新建图&#xff0c;进行dfs&#xff0c;得到缩点后的连通块能够达到的最大编号。 Code: conste…

Android ConstraintLayout 约束布局的使用手册

目录 前言 一、ConstraintLayout基本介绍 二、ConstraintLayout使用步骤 1、引入库 2、基本使用&#xff0c;实现按钮居中。相对于父布局的约束。 3、A Button 居中展示&#xff0c;B Button展示在A Button正下方&#xff08;距离A 46dp&#xff09;。相对于兄弟控件的约束…

三步入门Log4J 的使用

本篇基于Maven 的Project项目&#xff0c; 快速演示Log4j 的导入和演示。 第一步&#xff1a; 导入Log4j依赖 <dependency><groupId>org.apache.logging.log4j</groupId><artifactId>log4j-api</artifactId><version>2.24.2</version&…

【强化学习入门笔记】1.5 贝尔曼最优公式

本系列为学习赵世钰老师的《强化学习的数学原理》所作的学习笔记. 课程视频网址&#xff1a;https://space.bilibili.com/2044042934 1.5.1 定义 1.5.1.1 Contraction mapping theorem (收缩映射定理) fixed point(不动点) 如果 x ∗ x^* x∗满足下式, x ∗ x^* x∗称之为…

Nmap脚本使用

Nmap是主机扫描工具&#xff0c;他的图形化界面是Zenmap&#xff0c;分布式框架为Dnamp。 Nmap可以完成以下任务&#xff1a; 主机探测端口扫描版本检测系统检测支持探测脚本的编写 Nmap在实际中应用场合如下&#xff1a;通过对设备或者防火墙的探测来审计它的安全性探测目标主…

python源码实例游戏开发小程序办公自动化网络爬虫项目开发源码(250+个项目、26.6GB)

文章目录 源代码下载地址项目介绍预览 项目备注源代码下载地址 源代码下载地址 点击这里下载源码 项目介绍 python源码实例游戏开发小程序办公自动化网络爬虫项目开发源码(250个项目、26.6GB) 预览 项目备注 1、该资源内项目代码都经过测试运行成功&#xff0c;功能ok的情…

MySql:理解数据库

目录 一、什么是数据库 第一层理解 第二层理解 第三层理解 二、Linux下的数据库 三、基本认识 登录数据库时&#xff0c; mysql -u root -h 127.0.0.1 -P 3306 -p -h指定MySql服务器所在主机&#xff0c;若在本地则为回环地址。-P表示目标主机上MySql服务端口号 一般简单…

BERT模型的输出格式探究以及提取出BERT 模型的CLS表示,last_hidden_state[:, 0, :]用于提取每个句子的CLS向量表示

说在前面 最近使用自己的数据集对bert-base-uncased进行了二次预训练&#xff0c;只使用了MLM任务&#xff0c;发现在加载训练好的模型进行输出CLS表示用于下游任务时&#xff0c;同一个句子的输出CLS表示都不一样&#xff0c;并且控制台输出以下警告信息。说是没有这些权重。…

Vue框架开发一个简单的购物车(Vue.js)

让我们利用所学知识来开发一个简单的购物车 &#xff08;记得暴露属性和方法&#xff01;&#xff01;&#xff01;&#xff09; 首先来看一下最基本的一个html框架 <!DOCTYPE html> <html lang"en"> <head><meta charset"UTF-8"&…

系统加固-Linux不允许用户使用密码登录,只能使用密钥登录

一、密码登录的安全隐患 传统的密码登录方式&#xff0c;尽管简单直接&#xff0c;却存在诸多安全隐患。首先&#xff0c;密码本身容易被猜测或通过暴力破解手段获得。特别是当用户设置了过于简单或常见的密码时&#xff0c;系统面临的安全风险将显著增加。其次&#xff0c;密…

大数据实验E5HBase:安装配置,shell 命令和Java API使用

实验目的 熟悉HBase操作常用的shell 命令和Java API使用&#xff1b; 实验要求 掌握HBase的基本操作命令和函数接口的使用&#xff1b; 实验平台 操作系统&#xff1a;Linux&#xff08;建议Ubuntu16.04或者CentOS 7 以上&#xff09;&#xff1b;Hadoop版本&#xff1a;3…

【Vivado】xdc约束文件编写

随手记录一下项目中学到的约束文件编写技巧。 时序约束 创建生成时钟 参考链接&#xff1a; Vivado Design Suite Tcl Command Reference Guide (UG835) Vivado Design Suite User Guide: Using Constraints (UG903) 通过Clocking Wizard IP创建的时钟&#xff08;MMCM或…