QEMU源码编译CentOS

安装编译依赖

sudo yum groupinstall "Development Tools"
sudo yum install -y cmake make ninja-build glib2 glib2-devel spice-server-devel spice-protocol usbredir-devel gcc
sudo yum install iasl  libssh-devel bzip2-devel  libepoxy-devel
sudo yum install libcap-ng-devel libdrm-devel
sudo yum install libbpf-devel libibumad-devel

QEMU支持nvme,rdma,需要打开编译选项 --enable-nvme, --enable-rdma

# ./configure --prefix=/usr/local/qemu/ --enable-debug --enable-kvm --enable-vnc --target-list=x86_64-softmmu --enable-spice --enable-spice-protocol --enable-vnc --enable-usb-redir --enable-rdma 
Using './build' as the directory for build output
The Meson build system
Version: 0.61.5
Source dir: /root/xhe/qemu/qemu-8.0.2
Build dir: /root/xhe/qemu/qemu-8.0.2/build
Build type: native build
Project name: qemu
Project version: 8.0.2
C compiler for the host machine: cc -m64 -mcx16 (gcc 8.4.1 "cc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1)")
C linker for the host machine: cc -m64 -mcx16 ld.bfd 2.30-93
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program scripts/symlink-install-tree.py found: YES (/usr/bin/python3 /root/xhe/qemu/qemu-8.0.2/scripts/symlink-install-tree.py)
Program sh found: YES (/usr/bin/sh)
C++ compiler for the host machine: c++ -m64 -mcx16 (gcc 8.4.1 "c++ (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1)")
C++ linker for the host machine: c++ -m64 -mcx16 ld.bfd 2.30-93
Program python3 found: YES (/usr/bin/python3)
Program bzip2 found: YES (/usr/bin/bzip2)
Program iasl found: NO
Compiler for C supports link arguments -Wl,-z,relro: YES 
Compiler for C supports link arguments -Wl,-z,now: YES 
Compiler for C++ supports link arguments -Wl,--warn-common: YES 
Program cgcc found: NO
Library m found: YES
Run-time dependency threads found: YES
Library util found: YES
Run-time dependency appleframeworks found: NO (tried framework)
Found pkg-config: /usr/bin/pkg-config (1.4.2)
Run-time dependency gio-2.0 found: YES 2.56.4
Program gdbus-codegen found: YES (/usr/bin/gdbus-codegen)
Run-time dependency gio-unix-2.0 found: YES 2.56.4
Run-time dependency pixman-1 found: YES 0.38.4
Run-time dependency zlib found: YES 1.2.11
Has header "libaio.h" : NO 
Run-time dependency liburing found: NO (tried pkgconfig)
Run-time dependency libnfs found: NO (tried pkgconfig)
Run-time dependency appleframeworks found: NO (tried framework)
Run-time dependency appleframeworks found: NO (tried framework)
Run-time dependency libseccomp found: NO (tried pkgconfig)
Has header "cap-ng.h" : NO 
Run-time dependency xkbcommon found: NO (tried pkgconfig)
Run-time dependency slirp found: NO (tried pkgconfig)
Has header "libvdeplug.h" : NO 
Run-time dependency libpulse found: NO (tried pkgconfig)
Run-time dependency alsa found: NO (tried pkgconfig)
Run-time dependency jack found: NO (tried pkgconfig)
Run-time dependency sndio found: NO (tried pkgconfig)
Run-time dependency spice-protocol found: YES 0.14.2
Run-time dependency spice-server found: YES 0.14.3
Library rt found: YES
Run-time dependency libiscsi found: NO (tried pkgconfig)
Run-time dependency libzstd found: NO (tried pkgconfig)
Run-time dependency virglrenderer found: NO (tried pkgconfig)
Run-time dependency blkio found: NO (tried pkgconfig)
Run-time dependency libcurl found: NO (tried pkgconfig)
Run-time dependency libudev found: NO (tried pkgconfig)
Library mpathpersist found: NO
Run-time dependency ncursesw found: NO (tried pkgconfig)
Has header "curses.h" : NO 
Message: Trying with /usr/include/ncursesw
Has header "curses.h" : NO 
Has header "brlapi.h" : NO 
sdl2-config found: NO
Run-time dependency sdl2 found: NO (tried pkgconfig and config-tool)
Library rados found: NO
Has header "rbd/librbd.h" : NO 
Run-time dependency glusterfs-api found: NO (tried pkgconfig)
Run-time dependency libssh found: NO (tried pkgconfig)
Has header "bzlib.h" : NO 
Has header "lzfse.h" : NO 
Has header "sys/soundcard.h" : YES 
Run-time dependency epoxy found: NO (tried pkgconfig)
Has header "epoxy/egl.h" with dependency epoxy: NO 
Run-time dependency gnutls found: NO (tried pkgconfig)
Run-time dependency gnutls found: NO (tried pkgconfig)
libgcrypt-config found: NO need ['>=1.8']
Run-time dependency libgcrypt found: NO (tried config-tool)
Run-time dependency nettle found: NO (tried pkgconfig)
Run-time dependency gmp found: NO (tried pkgconfig)
Run-time dependency gtk+-3.0 found: NO (tried pkgconfig)
Run-time dependency libpng found: NO (tried pkgconfig)
Run-time dependency libjpeg found: NO (tried pkgconfig)
Has header "sasl/sasl.h" : NO 
Has header "security/pam_appl.h" : NO 
Has header "snappy-c.h" : NO 
Has header "lzo/lzo1x.h" : NO 
Has header "numa.h" : NO ../meson.build:1381:2: ERROR: C shared or static library 'ibumad' not foundA full log can be found at /root/xhe/qemu/qemu-8.0.2/build/meson-logs/meson-log.txt
NOTICE: You are using Python 3.6 which is EOL. Starting with v0.62.0, Meson will require Python 3.7 or newerERROR: meson setup failed
  1. Program iasl found: NO:

    这表示缺少 iasl 工具。iasl 是 Intel ACPI Source Language 编译器,它用于编译ACPI表。您可以通过以下命令安装 iasl 工具:

    • sudo yum install iasl
  2. Run-time dependency glusterfs-api found: NO (tried pkgconfig): 缺少 GlusterFS API 依赖项。尝试通过 pkgconfig 安装该依赖项。您可以尝试以下解决方法:

    sudo yum install glusterfs-api-devel
  3. Run-time dependency libssh found: NO (tried pkgconfig): 缺少 libssh 依赖项。尝试通过 pkgconfig 安装该依赖项。您可以尝试以下解决方法:

    sudo yum install libssh-devel
  4. Has header "bzlib.h" : NO: 缺少 bzlib.h 头文件。尝试通过以下命令安装对应的依赖项:

    sudo yum install bzip2-devel
  5. Has header "lzfse.h" : NO: 缺少 lzfse.h 头文件。这可能是因为缺少 lzfse 库。尝试通过以下命令安装对应的依赖项:

    sudo yum install lzfse-devel
  6. Run-time dependency epoxy found: NO (tried pkgconfig): 缺少 epoxy 依赖项。尝试通过 pkgconfig 安装该依赖项。您可以尝试以下解决方法:

    sudo yum install libepoxy-devel
  7. 可以看出缺少 C shared 或 static library 'ibumad'。要解决这个问题,可以尝试安装 ibumad 库

    sudo yum install libibumad-devel
  8. 根据错误信息,缺少头文件 "cap-ng.h"。要解决这个问题,您需要安装与该头文件相关的库。

    sudo yum install libcap-ng-devel

安装上述缺失rpm 后再./configure通过了

# ./configure --prefix=/usr/local/qemu/ --enable-debug --enable-kvm --enable-vnc --target-list=x86_64-softmmu --enable-spice --enable-spice-protocol --enable-vnc --enable-usb-redir --enable-rdma 
Using './build' as the directory for build output
The Meson build system
Version: 0.61.5
Source dir: /root/xhe/qemu/qemu-8.0.2
Build dir: /root/xhe/qemu/qemu-8.0.2/build
Build type: native build
Project name: qemu
Project version: 8.0.2
C compiler for the host machine: cc -m64 -mcx16 (gcc 8.4.1 "cc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1)")
C linker for the host machine: cc -m64 -mcx16 ld.bfd 2.30-93
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program scripts/symlink-install-tree.py found: YES (/usr/bin/python3 /root/xhe/qemu/qemu-8.0.2/scripts/symlink-install-tree.py)
Program sh found: YES (/usr/bin/sh)
C++ compiler for the host machine: c++ -m64 -mcx16 (gcc 8.4.1 "c++ (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1)")
C++ linker for the host machine: c++ -m64 -mcx16 ld.bfd 2.30-93
Program python3 found: YES (/usr/bin/python3)
Program bzip2 found: YES (/usr/bin/bzip2)
Program iasl found: YES (/usr/bin/iasl)
Compiler for C supports link arguments -Wl,-z,relro: YES 
Compiler for C supports link arguments -Wl,-z,now: YES 
Compiler for C++ supports link arguments -Wl,--warn-common: YES 
Program cgcc found: NO
Library m found: YES
Run-time dependency threads found: YES
Library util found: YES
Run-time dependency appleframeworks found: NO (tried framework)
Found pkg-config: /usr/bin/pkg-config (1.4.2)
Run-time dependency gio-2.0 found: YES 2.56.4
Program gdbus-codegen found: YES (/usr/bin/gdbus-codegen)
Run-time dependency gio-unix-2.0 found: YES 2.56.4
Run-time dependency pixman-1 found: YES 0.38.4
Run-time dependency zlib found: YES 1.2.11
Has header "libaio.h" : NO 
Run-time dependency liburing found: NO (tried pkgconfig)
Run-time dependency libnfs found: NO (tried pkgconfig)
Run-time dependency appleframeworks found: NO (tried framework)
Run-time dependency appleframeworks found: NO (tried framework)
Run-time dependency libseccomp found: NO (tried pkgconfig)
Has header "cap-ng.h" : YES 
Library cap-ng found: YES
Run-time dependency xkbcommon found: NO (tried pkgconfig)
Run-time dependency slirp found: NO (tried pkgconfig)
Has header "libvdeplug.h" : NO 
Run-time dependency libpulse found: NO (tried pkgconfig)
Run-time dependency alsa found: NO (tried pkgconfig)
Run-time dependency jack found: NO (tried pkgconfig)
Run-time dependency sndio found: NO (tried pkgconfig)
Run-time dependency spice-protocol found: YES 0.14.2
Run-time dependency spice-server found: YES 0.14.3
Library rt found: YES
Run-time dependency libiscsi found: NO (tried pkgconfig)
Run-time dependency libzstd found: NO (tried pkgconfig)
Run-time dependency virglrenderer found: NO (tried pkgconfig)
Run-time dependency blkio found: NO (tried pkgconfig)
Run-time dependency libcurl found: NO (tried pkgconfig)
Run-time dependency libudev found: NO (tried pkgconfig)
Library mpathpersist found: NO
Run-time dependency ncursesw found: NO (tried pkgconfig)
Has header "curses.h" : NO 
Message: Trying with /usr/include/ncursesw
Has header "curses.h" : NO 
Has header "brlapi.h" : NO 
sdl2-config found: NO
Run-time dependency sdl2 found: NO (tried pkgconfig and config-tool)
Library rados found: NO
Has header "rbd/librbd.h" : NO 
Run-time dependency glusterfs-api found: NO (tried pkgconfig)
Run-time dependency libssh found: YES 0.9.4
Has header "bzlib.h" : YES 
Library bz2 found: YES
Has header "lzfse.h" : NO 
Has header "sys/soundcard.h" : YES 
Run-time dependency epoxy found: YES 1.5.3
Has header "epoxy/egl.h" with dependency epoxy: YES 
Run-time dependency gbm found: NO (tried pkgconfig)
Run-time dependency gnutls found: NO (tried pkgconfig)
Run-time dependency gnutls found: NO (tried pkgconfig)
libgcrypt-config found: NO need ['>=1.8']
Run-time dependency libgcrypt found: NO (tried config-tool)
Run-time dependency nettle found: NO (tried pkgconfig)
Run-time dependency gmp found: NO (tried pkgconfig)
Run-time dependency gtk+-3.0 found: NO (tried pkgconfig)
Run-time dependency libpng found: NO (tried pkgconfig)
Run-time dependency libjpeg found: NO (tried pkgconfig)
Has header "sasl/sasl.h" : NO 
Has header "security/pam_appl.h" : NO 
Has header "snappy-c.h" : NO 
Has header "lzo/lzo1x.h" : NO 
Has header "numa.h" : NO 
Library ibumad found: YES
Has header "rdma/rdma_cma.h" : YES 
Library rdmacm found: YES
Library ibverbs found: YES
Run-time dependency xencontrol found: NO (tried pkgconfig)
Library xenstore found: NO
Library xenctrl found: NO
Library xendevicemodel found: NO
Library xenforeignmemory found: NO
Library xengnttab found: NO
Library xenevtchn found: NO
Library xentoolcore found: NO
Run-time dependency libcacard found: YES 2.7.0
Run-time dependency u2f-emu found: NO (tried pkgconfig)
Run-time dependency canokey-qemu found: NO (tried pkgconfig)
Run-time dependency libusbredirparser-0.5 found: YES 0.8.0
Run-time dependency libusb-1.0 found: YES 1.0.23
Run-time dependency libpmem found: NO (tried pkgconfig)
Run-time dependency libdaxctl found: NO (tried pkgconfig)
Run-time dependency libkeyutils found: NO (tried pkgconfig)
Checking for function "gettid" : NO 
Run-time dependency libselinux found: YES 2.9
Run-time dependency fuse3 found: NO (tried pkgconfig)
Run-time dependency libbpf found: YES 0.2.0
Run-time dependency libdw found: NO (tried pkgconfig)
Has header "sys/epoll.h" : YES 
Has header "linux/magic.h" : YES 
Has header "valgrind/valgrind.h" : YES 
Has header "linux/btrfs.h" : YES 
Has header "libdrm/drm.h" : YES 
Has header "pty.h" : YES 
Has header "sys/disk.h" : NO 
Has header "sys/ioccom.h" : NO 
Has header "sys/kcov.h" : NO 
Checking for function "close_range" : NO 
Checking for function "accept4" : YES 
Checking for function "clock_adjtime" : YES 
Checking for function "dup3" : YES 
Checking for function "fallocate" : YES 
Checking for function "posix_fallocate" : YES 
Checking for function "posix_memalign" : YES 
Checking for function "_aligned_malloc" : NO 
Checking for function "valloc" : YES 
Checking for function "memalign" : YES 
Checking for function "ppoll" : YES 
Checking for function "preadv" : YES 
Checking for function "pthread_fchdir_np" : NO 
Checking for function "sendfile" : YES 
Checking for function "setns" : YES 
Checking for function "unshare" : YES 
Checking for function "syncfs" : YES 
Checking for function "sync_file_range" : YES 
Checking for function "timerfd_create" : YES 
Checking for function "copy_file_range" : YES 
Checking for function "getifaddrs" : YES 
Checking for function "openpty" with dependency -lutil: YES 
Checking for function "strchrnul" : YES 
Checking for function "system" : YES 
Checking for function "ibv_advise_mr" with dependencies -lrdmacm, -libverbs, -libumad: YES 
Header <sys/epoll.h> has symbol "epoll_create1" : YES 
Header <linux/falloc.h> has symbol "FALLOC_FL_PUNCH_HOLE" : YES 
Header <linux/falloc.h> has symbol "FALLOC_FL_KEEP_SIZE" : YES 
Header <linux/falloc.h> has symbol "FALLOC_FL_ZERO_RANGE" : YES 
Has header "linux/fiemap.h" : YES 
Header <linux/fs.h> has symbol "FS_IOC_FIEMAP" : YES 
Checking for function "getrandom" : YES 
Header <sys/random.h> has symbol "GRND_NONBLOCK" : YES 
Header <sys/inotify.h> has symbol "inotify_init" : YES 
Header <sys/inotify.h> has symbol "inotify_init1" : YES 
Header <sys/prctl.h> has symbol "PR_SET_TIMERSLACK" : YES 
Header <linux/rtnetlink.h> has symbol "IFLA_PROTO_DOWN" : YES 
Header <sys/sysmacros.h> has symbol "makedev" : YES 
Header <getopt.h> has symbol "optreset" : NO 
Header <netinet/in.h> has symbol "IPPROTO_MPTCP" : NO 
Checking whether type "struct sigevent" has member "sigev_notify_thread_id" : NO 
Checking whether type "struct stat" has member "st_atim" : YES 
Checking for type "struct iovec" : YES 
Checking for type "struct utmpx" : YES 
Checking for type "struct mmsghdr" : YES 
Header <linux/vm_sockets.h> has symbol "AF_VSOCK" : YES 
Program scripts/minikconf.py found: YES (/usr/bin/python3 /root/xhe/qemu/qemu-8.0.2/scripts/minikconf.py)
Configuring x86_64-softmmu-config-target.h using configuration
Configuring x86_64-softmmu-config-devices.mak with command
Reading depfile: /root/xhe/qemu/qemu-8.0.2/build/meson-private/x86_64-softmmu-config-devices.mak.d
Configuring x86_64-softmmu-config-devices.h using configuration
Program scripts/make-config-poison.sh found: YES (/root/xhe/qemu/qemu-8.0.2/scripts/make-config-poison.sh)
Run-time dependency capstone found: NO (tried pkgconfig)
Library fdt found: NO
Configuring config-host.h using configuration
Program scripts/hxtool found: YES (/root/xhe/qemu/qemu-8.0.2/scripts/hxtool)
Program scripts/shaderinclude.py found: YES (/usr/bin/python3 /root/xhe/qemu/qemu-8.0.2/scripts/shaderinclude.py)
Program scripts/qapi-gen.py found: YES (/usr/bin/python3 /root/xhe/qemu/qemu-8.0.2/scripts/qapi-gen.py)
Program scripts/qemu-version.sh found: YES (/root/xhe/qemu/qemu-8.0.2/scripts/qemu-version.sh)Executing subproject libvhost-user libvhost-user| Project name: libvhost-user
libvhost-user| Project version: undefined
libvhost-user| C compiler for the host machine: cc -m64 -mcx16 (gcc 8.4.1 "cc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1)")
libvhost-user| C linker for the host machine: cc -m64 -mcx16 ld.bfd 2.30-93
libvhost-user| Compiler for C supports arguments -Wsign-compare: YES
libvhost-user| Compiler for C supports arguments -Wdeclaration-after-statement: YES
libvhost-user| Compiler for C supports arguments -Wstrict-aliasing: YES
libvhost-user| Dependency threads found: YES unknown (cached)
libvhost-user| Dependency glib-2.0 found: YES 2.56.4 (overridden)
libvhost-user| Build targets in project: 10
libvhost-user| Subproject libvhost-user finished.Executing subproject libvduse libvduse| Project name: libvduse
libvduse| Project version: undefined
libvduse| C compiler for the host machine: cc -m64 -mcx16 (gcc 8.4.1 "cc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1)")
libvduse| C linker for the host machine: cc -m64 -mcx16 ld.bfd 2.30-93
libvduse| Compiler for C supports arguments -Wsign-compare: YES (cached)
libvduse| Compiler for C supports arguments -Wdeclaration-after-statement: YES (cached)
libvduse| Compiler for C supports arguments -Wstrict-aliasing: YES (cached)
libvduse| Build targets in project: 11
libvduse| Subproject libvduse finished.Program scripts/decodetree.py found: YES (/usr/bin/python3 /root/xhe/qemu/qemu-8.0.2/scripts/decodetree.py)
Program ../scripts/modules/module_block.py found: YES (/usr/bin/python3 /root/xhe/qemu/qemu-8.0.2/block/../scripts/modules/module_block.py)
Program ../scripts/block-coroutine-wrapper.py found: YES (/usr/bin/python3 /root/xhe/qemu/qemu-8.0.2/block/../scripts/block-coroutine-wrapper.py)
Program scripts/modinfo-collect.py found: YES (/root/xhe/qemu/qemu-8.0.2/scripts/modinfo-collect.py)
Program scripts/modinfo-generate.py found: YES (/root/xhe/qemu/qemu-8.0.2/scripts/modinfo-generate.py)
Program nm found: YES
Program scripts/undefsym.py found: YES (/usr/bin/python3 /root/xhe/qemu/qemu-8.0.2/scripts/undefsym.py)
Program scripts/feature_to_c.sh found: YES (/bin/sh /root/xhe/qemu/qemu-8.0.2/scripts/feature_to_c.sh)
Configuring 50-edk2-i386-secure.json using configuration
Configuring 50-edk2-x86_64-secure.json using configuration
Configuring 60-edk2-aarch64.json using configuration
Configuring 60-edk2-arm.json using configuration
Configuring 60-edk2-i386.json using configuration
Configuring 60-edk2-x86_64.json using configuration
Program qemu-keymap found: YES (/usr/bin/qemu-keymap)
Program sphinx-build found: NO
Program bash found: YES 4.4.19 (/usr/bin/bash)
Program diff found: YES (/usr/bin/diff)
Program dbus-daemon found: YES (/usr/bin/dbus-daemon)
Found CMake: /usr/bin/cmake (3.18.2)
WARNING: CMake Toolchain: Failed to determine CMake compilers state
Run-time dependency gvnc-1.0 found: NO (tried pkgconfig)
WARNING: CMake Toolchain: Failed to determine CMake compilers state
Run-time dependency sysprof-capture-4 found: NO (tried pkgconfig)
Program initrd-stress.sh found: YES (/root/xhe/qemu/qemu-8.0.2/tests/migration/initrd-stress.sh)
Build targets in project: 566qemu 8.0.2DirectoriesInstall prefix               : /usr/local/qemuBIOS directory               : share/qemufirmware path                : share/qemu-firmwarebinary directory             : /usr/local/qemu/binlibrary directory            : /usr/local/qemu/lib64module directory             : lib64/qemulibexec directory            : /usr/local/qemu/libexecinclude directory            : /usr/local/qemu/includeconfig directory             : /usr/local/qemu/etclocal state directory        : /usr/local/qemu/varManual directory             : /usr/local/qemu/share/manDoc directory                : /usr/local/qemu/share/docBuild directory              : /root/xhe/qemu/qemu-8.0.2/buildSource path                  : /root/xhe/qemu/qemu-8.0.2GIT submodules               : ui/keycodemapdb tests/fp/berkeley-testfloat-3 tests/fp/berkeley-softfloat-3 dtcHost binariesgit                          : gitmake                         : makepython                       : /usr/bin/python3 (version: 3.6)sphinx-build                 : NOiasl                         : /usr/bin/iaslgenisoimage                  : /usr/bin/genisoimageConfigurable featuresDocumentation                : NOsystem-mode emulation        : YESuser-mode emulation          : NOblock layer                  : YESInstall blobs                : YESmodule support               : NOfuzzing support              : NOAudio drivers                : ossTrace backends               : logD-Bus display                : NOQOM debugging                : NOvhost-kernel support         : YESvhost-net support            : YESvhost-user support           : YESvhost-user-crypto support    : YESvhost-user-blk server support: YESvhost-vdpa support           : YESbuild guest agent            : YESCompilationhost CPU                     : x86_64host endianness              : littleC compiler                   : cc -m64 -mcx16Host C compiler              : cc -m64 -mcx16C++ compiler                 : c++ -m64 -mcx16CFLAGS                       : -g -O0CXXFLAGS                     : -g -O0QEMU_CFLAGS                  : -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fno-common -fwrapv -Wundef -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wold-style-declaration -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2 -Wmissing-format-attribute -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack-protector-strongQEMU_CXXFLAGS                : -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fno-common -fwrapv -Wundef -Wwrite-strings -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2 -Wmissing-format-attribute -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack-protector-strongQEMU_LDFLAGS                 : -fstack-protector-strong -Wl,-z,relro -Wl,-z,now -Wl,--warn-commonprofiler                     : NOlink-time optimization (LTO) : NOPIE                          : YESstatic build                 : NOmalloc trim support          : YESmembarrier                   : NOdebug graph lock             : YESdebug stack usage            : NOmutex debugging              : YESmemory allocator             : systemavx2 optimization            : YESavx512bw optimization        : YESavx512f optimization         : NOgprof                        : NOgcov                         : NOthread sanitizer             : NOCFI support                  : NOstrip binaries               : NOsparse                       : NOmingw32 support              : NOCross compilersx86_64                       : ccTargets and acceleratorsKVM support                  : YESHAX support                  : NOHVF support                  : NOWHPX support                 : NONVMM support                 : NOXen support                  : NOXen emulation                : YESTCG support                  : YESTCG backend                  : native (x86_64)TCG plugins                  : YESTCG debug enabled            : YEStarget list                  : x86_64-softmmudefault devices              : YESout of process emulation     : YESvfio-user server             : NOBlock layer supportcoroutine backend            : ucontextcoroutine pool               : YESBlock whitelist (rw)         : Block whitelist (ro)         : Use block whitelist in tools : NOVirtFS support               : YESLive block migration         : YESreplication support          : YESbochs support                : YEScloop support                : YESdmg support                  : YESqcow v1 support              : YESvdi support                  : YESvvfat support                : YESqed support                  : YESparallels support            : YESFUSE exports                 : NOVDUSE block exports          : YESCryptoTLS priority                 : NORMALGNUTLS support               : NOlibgcrypt                    : NOnettle                       : NOAF_ALG support               : NOrng-none                     : NOLinux keyring                : YESDependenciesSDL support                  : NOSDL image support            : NOGTK support                  : NOpixman                       : YES 0.38.4VTE support                  : NOslirp support                : NOlibtasn1                     : NOPAM                          : NOiconv support                : YEScurses support               : NOvirgl support                : NOblkio support                : NOcurl support                 : NOMultipath support            : NOPNG support                  : NOVNC support                  : YESVNC SASL support             : NOVNC JPEG support             : NOOSS support                  : YESsndio support                : NOALSA support                 : NOPulseAudio support           : NOJACK support                 : NObrlapi support               : NOvde support                  : NOnetmap support               : NOl2tpv3 support               : YESLinux AIO support            : NOLinux io_uring support       : NOATTR/XATTR support           : YESRDMA support                 : YESPVRDMA support               : YESfdt support                  : internallibcap-ng support            : YESbpf support                  : YES 0.2.0spice protocol support       : YES 0.14.2spice server support       : YES 0.14.3rbd support                  : NOsmartcard support            : YES 2.7.0U2F support                  : NOlibusb                       : YES 1.0.23usb net redir                : YES 0.8.0OpenGL support (epoxy)       : YES 1.5.3GBM                          : NOlibiscsi support             : NOlibnfs support               : NOseccomp support              : NOGlusterFS support            : NOTPM support                  : YESlibssh support               : YES 0.9.4lzo support                  : NOsnappy support               : NObzip2 support                : YESlzfse support                : NOzstd support                 : NONUMA host support            : NOcapstone                     : NOlibpmem support              : NOlibdaxctl support            : NOlibudev                      : NOFUSE lseek                   : NOselinux                      : YES 2.9libdw                        : NOSubprojectslibvduse                     : YESlibvhost-user                : YESUser defined optionsNative files                 : config-meson.crossoptimization                 : 0prefix                       : /usr/local/qemu/debug_graph_lock             : truedebug_mutex                  : truekvm                          : enabledrdma                         : enabledspice                        : enabledspice_protocol               : enabledusb_redir                    : enabledvfio_user_server             : disabledvnc                          : enabledFound ninja-1.8.2 at /usr/bin/ninja
Running postconf script '/usr/bin/python3 /root/xhe/qemu/qemu-8.0.2/scripts/symlink-install-tree.py'
NOTICE: You are using Python 3.6 which is EOL. Starting with v0.62.0, Meson will require Python 3.7 or newer

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

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

相关文章

为什么 Golang Fasthttp 选择使用 slice 而非 map 存储请求数据

文章目录 Slice vs Map&#xff1a;基本概念内存分配和性能Fasthttp 中的 SliceMap性能优化的深层原因HTTP Headers 的特性CPU 预加载特性 结论 Fasthttp 是一个高性能的 Golang HTTP 框架&#xff0c;它在设计上做了许多优化以提高性能。其中一个显著的设计选择是使用 slice 而…

Ubuntu开机停在Grub命令行以及启动后进入emergency模式的解决方法

主机上两个硬盘&#xff0c;本来都是Ubutun系统&#xff0c;然后将其中一个重装为windows系统&#xff0c;结果另外一个硬盘的Ubutun启动不了 首先会卡在grub命令行界面&#xff0c;类似下面这样&#xff1a; 这种情况往往是 GRUB 的系统文件或者配置文件损坏了&#xff0c;但…

基于麻雀优化算法SSA的CEEMDAN-BiLSTM-Attention的预测模型

往期精彩内容&#xff1a; 时序预测&#xff1a;LSTM、ARIMA、Holt-Winters、SARIMA模型的分析与比较-CSDN博客 风速预测&#xff08;一&#xff09;数据集介绍和预处理-CSDN博客 风速预测&#xff08;二&#xff09;基于Pytorch的EMD-LSTM模型-CSDN博客 风速预测&#xff…

Android: alarm定时很短时,比如500ms,测试执行mPowerManager.forceSuspend()后,系统不会suspend

参考文档&#xff1a; https://blog.csdn.net/weixin_35691921/article/details/124961404 Android: alarm定时很短时&#xff0c;比如500ms&#xff0c;然后执行mPowerManager.forceSuspend()后&#xff0c;系统不会suspend&#xff0c;原因分析&#xff1a; static int ala…

【iOS】——基于Vision Kit框架实现图片文字识别

文章目录 前言一、文本识别的分类二、实现步骤1.导入Vision Kit框架2.创建请求处理器3.在请求处理器中设置文字识别功能4.将图片添加到请求处理器中5.发起文字识别请求6.处理识别结果 三、运行结果测试1.纯英文环境2.中英文混合环境 前言 根据苹果的官方文档&#xff0c;Visio…

【React】脚手架创建项目

文章目录 创建React项目目录结构分析了解PWA脚手架中的webpack 创建React项目 ◼ 创建React项目的命令如下&#xff1a; ​  注意&#xff1a;项目名称不能包含大写字母 ​  另外还有更多创建项目的方式&#xff0c;可以参考GitHub的readme 命令&#xff1a; create-rea…

NRF52832跟NRF52840性能区别 高端蓝牙智能手环穿戴应用

nRF52840可以说是nRF52832的超强升级版&#xff0c;虽然同样是蓝牙5.0&#xff0c;但是整体稳定性和性能上的提升却相差甚远&#xff0c;下面为大家简单讲解下NRF52832和NRF52840的性能上的区别&#xff01; 先说说共同点&#xff1a;这两款芯片都支持蓝牙5.0&#xff0c;MCU也…

Vue3前端h5移动端页面预览PDF使用pdfjs-dist,添加自定义文本水印

pdfjs-dist版本 pnpm i pdfjs-dist2.5.207 <script setup> import {ref, onMounted, watch} from vue import { useRoute } from "vue-router"; import * as pdfjsLib from pdfjs-distconst route useRoute() // &#xff01; pdfjsLib.GlobalWorkerOptions.w…

谷粒商城篇章8 ---- P236-P247 ---- 购物车【分布式高级篇五】

目录 1 环境搭建 1.1 新建购物车服务模块gulimall-cart 1.2 购物车服务相关配置 1.2.1 pom.xml 1.2.2 yml配置 1.2.2.1 application.yml配置 1.2.2.2 bootstrap.yml配置 1.2.3 主类 1.3 SwitchHosts增加配置 1.4 网关配置 1.5 整合SpringSession 1.5.1 session数据…

定义一个求圆面积的方法,并将计算结果保留5位小数

.尝试开发一个程序&#xff0c;定义一个求圆面积的方法&#xff0c;其中以圆半径作为参数&#xff0c;并将计算结果保留5位小数。 首先&#xff0c;在Java中&#xff0c;可以使用Math类中的常量Math.PI来表示圆周率。要使用Math.PI&#xff0c;你可以将其赋值给一个变量&#x…

禅道下载安装及基本使用(项目周期管理)实施必会!!!

文章目录 前言&#xff1a;一、为什么要使用禅道&#xff1f;二、禅道的下载与安装 前言&#xff1a; 禅道的使用能使公司提高项目管理效率、促进团队协作、支持敏捷开发&#xff0c;并可根据具体需求进行个性化配置。 本文章博主将以一个项目周期来带你们了解禅道。 一、为什…

SCSI/UFS储存架构/协议/电源管理/命令处理流程

UFS子系统架构 1.UFS协议 无论是ufs host controller部分还是ufs device部分&#xff0c;他们都将遵循统一的UFS规范 UFS Application Layer(UAP)应用层 1.UFS command set (UCS) UCS处理命令集&#xff0c;如读、写命令等&#xff0c;.使用的命令是简化的SCSI命令&#xff08;…

鸿蒙harmony--HTTP数据请求的简单使用

不得不承认&#xff0c;年龄越大性格就越简单&#xff0c;更喜欢安静&#xff0c;不喜欢去了解别人&#xff0c;也不想被了解&#xff0c;只想静静的做自己喜欢的事…… 目录 一&#xff0c;场景介绍 二&#xff0c;接口说明 三&#xff0c;http请求使用 一&#xff0c;场景介绍…

Python for循环练习-输入一个非负整数N,计算N的阶乘N!

题目&#xff1a;输入一个非负整数N&#xff0c;计算N的阶乘N&#xff01; 要计算非负整数N的阶乘&#xff08;N!&#xff09;&#xff0c;可以使用for循环来累乘从1到N的所有整数。 实现&#xff1a; # 读取用户输入的非负整数 n int(input("请输入一个非负整数&…

ora-12154无法解析指定的连接标识符

用户反映查询的时候报错ora-12154 这个系统只做历史数据查询使用&#xff0c;使用并不平凡&#xff0c;该数据库曾做过一次服务器间的迁移。 用户描述&#xff0c;所有oracle客户端查询该视图都报tns错误&#xff0c;一般ora-12154会发生在连接数据库时&#xff0c;因为tns配…

[文件IO]文件操作的几个笔试题

目录 1.扫描指定目录&#xff0c;找到要查询的文件名&#xff0c;并询问用户是否要删除 2. 文件的复制 3.扫描指定目录&#xff0c;并找到名称或者内容中包含指定字符的所有普通文件&#xff08;不包含目录&#xff09; 1.扫描指定目录&#xff0c;找到要查询的文件名&#x…

Hardware-Aware-Transformers开源项目笔记

文章目录 Hardware-Aware-Transformers开源项目笔记开源项目背景知识nas进化算法进化算法代码示例 开源项目Evolutionary Search1 生成延迟的数据集2 训练延迟预测器3 使延时约束运行搜索算法4. 训练搜索得到的subTransformer5. 根据重训练后的submodel 得到BLEU精度值 代码结构…

医学图像的图像处理、分割、分类和定位-1

一、说明 本报告全面探讨了应用于医学图像的图像处理和分类技术。开展了四项不同的任务来展示这些方法的多功能性和有效性。任务 1 涉及读取、写入和显示 PNG、JPG 和 DICOM 图像。任务 2 涉及基于定向变化的多类图像分类。此外&#xff0c;我们在任务 3 中包括了胸部 X 光图像…

java数据结构与算法刷题-----LeetCode977. 有序数组的平方

java数据结构与算法刷题目录&#xff08;剑指Offer、LeetCode、ACM&#xff09;-----主目录-----持续更新(进不去说明我没写完)&#xff1a;https://blog.csdn.net/grd_java/article/details/123063846 文章目录 1. 时间复杂度 空间复杂度 O(n * l o g 2 n log_2{n} log2​…

PyTorch 中的距离函数深度解析:掌握向量间的距离和相似度计算

目录 Pytorch中Distance functions详解 pairwise_distance 用途 用法 参数 数学理论公式 示例代码 cosine_similarity 用途 用法 参数 数学理论 示例代码 输出结果 pdist 用途 用法 参数 数学理论 示例代码 总结 Pytorch中Distance functions详解 pair…