当前位置: 首页 > news >正文

Cairo介绍及源码构建安装(3)

接前一篇文章:Cairo介绍及源码构建安装(2)

四、Cairo构建与安装

2. 配置

BLFS中给出的命令为:

./configure --prefix=/usr    \--disable-static \--enable-tee 

这里将“--prefix”选项由“/usr”调整为“/usr/local”(视个人需要,使用原始命令也可以),如下:

./configure --prefix=/usr/local   \--disable-static \--enable-tee 

实际命令及结果如下:

~/BLFS/cairo-1.17.6$ ./configure --prefix=/usr/local   \--disable-static \--enable-tee 
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for unistd.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for typeof syntax and keyword spelling... typeof
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking whether make supports nested variables... (cached) yes
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether to build gtk-doc documentation... no
checking for gtkdoc-check... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for find... /usr/bin/find
checking for xargs... /usr/bin/xargs
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for inline... inline
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for supported warning flags... 
checking whether gcc supports -Werror... yes
checking whether gcc supports -errwarn... no
checking whether gcc supports -Wall... yes
checking whether gcc supports -Wextra... yes
checking whether gcc supports -Wmissing-declarations... yes
checking whether gcc supports -Werror-implicit-function-declaration... yes
checking whether gcc supports -Wpointer-arith... yes
checking whether gcc supports -Wwrite-strings... yes
checking whether gcc supports -Wsign-compare... yes
checking whether gcc supports -Wpacked... yes
checking whether gcc supports -Wswitch-enum... yes
checking whether gcc supports -Wmissing-format-attribute... yes
checking whether gcc supports -Wvolatile-register-var... yes
checking whether gcc supports -Wstrict-aliasing=2... yes
checking whether gcc supports -Winit-self... yes
checking whether gcc supports -Wunsafe-loop-optimizations... yes
checking whether gcc supports -Wno-missing-field-initializers... yes
checking whether gcc supports -Wno-unused-parameter... yes
checking whether gcc supports -Wno-attributes... yes
checking whether gcc supports -Wno-long-long... yes
checking whether gcc supports -Winline... yes
checking whether gcc supports -erroff=E_ENUM_TYPE_MISMATCH_ARG... no
checking whether gcc supports -erroff=E_ENUM_TYPE_MISMATCH_OP... no
checking whether gcc supports -fno-strict-aliasing... yes
checking whether gcc supports -fno-common... yes
checking whether gcc supports -Wp,-D_FORTIFY_SOURCE=2... yes
checking whether gcc supports -Wunused-but-set-variable -Wno-unused-but-set-variable... yes
checking which warning flags were supported...  -Wall -Wextra -Wmissing-declarations -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wsign-compare -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wvolatile-register-var -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing -fno-common -Wp,-D_FORTIFY_SOURCE=2 -Wno-unused-but-set-variable
checking how to enable unused result warnings... __attribute__((__warn_unused_result__))
checking how to allow undefined symbols in shared libraries used by test suite... -Wl,--allow-shlib-undefined
checking whether byte ordering is bigendian... no
checking whether float word ordering is bigendian... checking for strings... strings
no
checking for native atomic primitives... cxx11
checking whether atomic ops require a memory barrier... no
checking size of void *... 8
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking size of size_t... 8
checking for native Win32... no
checking for Sun Solaris (non-POSIX ctime_r)... no
checking for cos in -lm... yes
checking for sched_yield in -lrt... yes
checking for shm_open in -lrt... yes
checking for connect in -lsocket... no
checking for __builtin_return_address(0)... yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking sys/int_types.h usability... no
checking sys/int_types.h presence... no
checking for sys/int_types.h... no
checking for uint64_t... yes
checking for uint128_t... no
checking for __uint128_t... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking for sys/stat.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking for alarm... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking for sched_getaffinity... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for mmap... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for clock_gettime... yes
checking fenv.h usability... yes
checking fenv.h presence... yes
checking for fenv.h... yes
checking for feenableexcept... yes
checking for fedisableexcept... yes
checking for feclearexcept... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking for signal.h... (cached) yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking for fenv.h... (cached) yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking for ctime_r... yes
checking for localtime_r... yes
checking for gmtime_r... yes
checking for drand48... yes
checking for flockfile... yes
checking for funlockfile... yes
checking for getline... yes
checking for link... yes
checking for strndup... yes
checking for sys/stat.h... (cached) yes
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking for mkdir... yes
checking mkdir variant... mkdir(path, mode)
checking for fork... yes
checking for waitpid... yes
checking for raise... yes
checking for VALGRIND... no
no
checking for compress in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for lzo2a_decompress in -llzo2... yes
checking lzo/lzo2a.h usability... yes
checking lzo/lzo2a.h presence... yes
checking for lzo/lzo2a.h... yes
checking for dlsym in -ldl... yes
checking for dlfcn.h... (cached) yes
checking xlocale.h usability... no
checking xlocale.h presence... no
checking for xlocale.h... no
checking for newlocale... yes
checking for strtod_l... yes
checking for X... libraries , headers 
checking for cairo's Xlib surface backend feature... 
checking for xlib... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking whether shmctl IPC_RMID allowes subsequent attaches... yes
checking for X11/extensions/XShm.h... yes
checking for X11/extensions/shmproto.h... yes
checking for X11/extensions/shmstr.h... yes
checking whether cairo's Xlib surface backend feature could be enabled... yes
checking for cairo's Xlib Xrender surface backend feature... 
checking for xlib_xrender... yes
checking for XRenderCreateSolidFill... yes
checking for XRenderCreateLinearGradient... yes
checking for XRenderCreateRadialGradient... yes
checking for XRenderCreateConicalGradient... yes
checking whether cairo's Xlib Xrender surface backend feature could be enabled... yes
checking for cairo's XCB surface backend feature... 
checking for xcb... yes
checking whether cairo's XCB surface backend feature could be enabled... yes
checking for cairo's XCB/SHM functions feature... 
checking for xcb_shm... yes
checking whether cairo's XCB/SHM functions feature could be enabled... yes
checking for cairo's Quartz surface backend feature... 
checking ApplicationServices/ApplicationServices.h usability... no
checking ApplicationServices/ApplicationServices.h presence... no
checking for ApplicationServices/ApplicationServices.h... no
checking CoreGraphics/CoreGraphics.h usability... no
checking CoreGraphics/CoreGraphics.h presence... no
checking for CoreGraphics/CoreGraphics.h... no
checking whether cairo's Quartz surface backend feature could be enabled... no (requires CoreGraphics framework)
checking for cairo's Quartz font backend feature... 
checking whether cairo's Quartz font backend feature could be enabled... no (requires CoreGraphics framework)
checking for cairo's Microsoft Windows surface backend feature... 
checking whether cairo's Microsoft Windows surface backend feature could be enabled... no (requires a Win32 platform)
checking for cairo's Microsoft Windows font backend feature... 
checking whether cairo's Microsoft Windows font backend feature could be enabled... no (requires a Win32 platform)
checking for cairo's PNG functions feature... 
checking for png... yes
checking whether cairo's PNG functions feature could be enabled... yes
checking for cairo's EGL functions feature... 
checking whether cairo's EGL functions feature could be enabled... no (not required by any backend)
checking for cairo's GLX functions feature... 
checking whether cairo's GLX functions feature could be enabled... no (not required by any backend)
checking for cairo's WGL functions feature... 
checking whether cairo's WGL functions feature could be enabled... no (not required by any backend)
checking for cairo's script surface backend feature... 
checking whether cairo's script surface backend feature could be enabled... yes
checking for cairo's FreeType font backend feature... 
checking for FREETYPE... yes
checking whether cairo's FreeType font backend feature could be enabled... yes
checking for cairo's Fontconfig font backend feature... 
checking for FONTCONFIG... yes
checking whether cairo's Fontconfig font backend feature could be enabled... yes
checking for FT_Get_X11_Font_Format... yes
checking for FT_GlyphSlot_Embolden... yes
checking for FT_GlyphSlot_Oblique... yes
checking for FT_Load_Sfnt_Table... yes
checking for FT_Library_SetLcdFilter... yes
checking for FT_Get_Var_Design_Coordinates... yes
checking for FT_Done_MM_Var... yes
checking for FT_Palette_Set_Foreground_Color... yes
checking for FT_HAS_COLOR... yes
checking for FcInit... yes
checking for FcFini... yes
checking for cairo's PostScript surface backend feature... 
checking whether cairo's PostScript surface backend feature could be enabled... yes
checking for gs... gs
checking for LIBSPECTRE... no
checking for cairo's PDF surface backend feature... 
checking whether cairo's PDF surface backend feature could be enabled... yes
checking for POPPLER... yes
checking for poppler_page_render... yes
checking for cairo's SVG surface backend feature... 
checking whether cairo's SVG surface backend feature could be enabled... yes
checking for LIBRSVG... yes
checking for rsvg_pixbuf_from_file... yes
checking for cairo's image surface backend feature... 
checking for pixman... yes
checking whether cairo's image surface backend feature could be enabled... yes
checking for cairo's mime surface backend feature... 
checking whether cairo's mime surface backend feature could be enabled... yes
checking for cairo's recording surface backend feature... 
checking whether cairo's recording surface backend feature could be enabled... yes
checking for cairo's observer surface backend feature... 
checking whether cairo's observer surface backend feature could be enabled... yes
checking for cairo's tee surface backend feature... 
checking whether cairo's tee surface backend feature could be enabled... yes
checking for cairo's user font backend feature... 
checking whether cairo's user font backend feature could be enabled... yes
checking for cairo's pthread feature... 
checking whether cairo's pthread feature could be enabled... yes
checking for cairo's gobject functions feature... 
checking for GOBJECT... yes
checking whether cairo's gobject functions feature could be enabled... yes
checking for GOBJECT... yes
checking for cairo's cairo-trace feature... 
checking whether cairo's cairo-trace feature could be enabled... yes
checking for cairo's cairo-script-interpreter feature... 
checking whether cairo's cairo-script-interpreter feature could be enabled... yes
checking for bfd_openr in -lbfd... yes
checking bfd.h usability... yes
checking bfd.h presence... yes
checking for bfd.h... yes
checking for cairo's symbol-lookup feature... 
checking whether cairo's symbol-lookup feature could be enabled... yes
checking for glib... yes
checking for shm_open in -lrt... (cached) yes
checking for gtk... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating src/cairo.pc
config.status: creating cairo-uninstalled.pc
config.status: creating util/cairo-script/cairo-script-interpreter.pc
config.status: creating util/cairo-script/cairo-script-interpreter-uninstalled.pc
config.status: creating src/cairo-xlib.pc
config.status: creating cairo-xlib-uninstalled.pc
config.status: creating src/cairo-xlib-xrender.pc
config.status: creating cairo-xlib-xrender-uninstalled.pc
config.status: creating src/cairo-xcb.pc
config.status: creating cairo-xcb-uninstalled.pc
config.status: creating src/cairo-xcb-shm.pc
config.status: creating cairo-xcb-shm-uninstalled.pc
config.status: creating src/cairo-png.pc
config.status: creating cairo-png-uninstalled.pc
config.status: creating src/cairo-script.pc
config.status: creating cairo-script-uninstalled.pc
config.status: creating src/cairo-ft.pc
config.status: creating cairo-ft-uninstalled.pc
config.status: creating src/cairo-fc.pc
config.status: creating cairo-fc-uninstalled.pc
config.status: creating src/cairo-ps.pc
config.status: creating cairo-ps-uninstalled.pc
config.status: creating src/cairo-pdf.pc
config.status: creating cairo-pdf-uninstalled.pc
config.status: creating src/cairo-svg.pc
config.status: creating cairo-svg-uninstalled.pc
config.status: creating src/cairo-tee.pc
config.status: creating cairo-tee-uninstalled.pc
config.status: creating src/cairo-gobject.pc
config.status: creating cairo-gobject-uninstalled.pc
config.status: creating Makefile
config.status: creating boilerplate/Makefile
config.status: creating src/Makefile
config.status: creating test/Makefile
config.status: creating test/pdiff/Makefile
config.status: creating perf/Makefile
config.status: creating perf/micro/Makefile
config.status: creating util/Makefile
config.status: creating util/cairo-fdr/Makefile
config.status: creating util/cairo-gobject/Makefile
config.status: creating util/cairo-missing/Makefile
config.status: creating util/cairo-script/Makefile
config.status: creating util/cairo-script/examples/Makefile
config.status: creating util/cairo-sphinx/Makefile
config.status: creating util/cairo-trace/Makefile
config.status: creating util/cairo-trace/cairo-trace
config.status: creating doc/Makefile
config.status: creating doc/public/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing ./build/Makefile.win32.features commands
config.status: creating ./build/Makefile.win32.features
config.status: ./build/Makefile.win32.features is unchanged
config.status: executing ./src/Makefile.am.features commands
config.status: creating ./src/Makefile.am.features
config.status: ./src/Makefile.am.features is unchanged
config.status: executing ./src/Makefile.win32.features commands
config.status: creating ./src/Makefile.win32.features
config.status: ./src/Makefile.win32.features is unchanged
config.status: executing ./boilerplate/Makefile.am.features commands
config.status: creating ./boilerplate/Makefile.am.features
config.status: ./boilerplate/Makefile.am.features is unchanged
config.status: executing ./boilerplate/Makefile.win32.features commands
config.status: creating ./boilerplate/Makefile.win32.features
config.status: ./boilerplate/Makefile.win32.features is unchanged
config.status: executing src/cairo-features.h commands
config.status: creating src/cairo-features.h
config.status: executing src/cairo-supported-features.h commands
config.status: creating src/cairo-supported-features.h
config.status: executing ./build/Makefile.win32.features-h commands
config.status: creating ./build/Makefile.win32.features-h
config.status: ./build/Makefile.win32.features-h is unchanged
config.status: executing cairo-trace commandscairo (version 1.17.6 [snapshot]) will be compiled with:The following surface backends:Image:         yes (always builtin)Recording:     yes (always builtin)Observer:      yes (always builtin)Mime:          yes (always builtin)Tee:           yesXML:           no (disabled, use --enable-xml to enable)Xlib:          yesXlib Xrender:  yesQuartz:        no (requires CoreGraphics framework)Quartz-image:  no (disabled, use --enable-quartz-image to enable)XCB:           yesWin32:         no (requires a Win32 platform)CairoScript:   yesPostScript:    yesPDF:           yesSVG:           yesOpenGL:        no (disabled, use --enable-gl to enable)OpenGL ES 2.0: no (disabled, use --enable-glesv2 to enable)OpenGL ES 3.0: no (disabled, use --enable-glesv3 to enable)The following font backends:User:          yes (always builtin)FreeType:      yesFontconfig:    yesWin32:         no (requires a Win32 platform)Quartz:        no (requires CoreGraphics framework)The following functions:PNG functions:   yesGLX functions:   no (not required by any backend)WGL functions:   no (not required by any backend)EGL functions:   no (not required by any backend)X11-xcb functions: no (disabled, use --enable-xlib-xcb to enable)XCB-shm functions: yesThe following features and utilities:cairo-trace:                yescairo-script-interpreter:   yesAnd the following internal features:pthread:       yesgtk-doc:       nogcov support:  nosymbol-lookup: yestest surfaces: no (disabled, use --enable-test-surfaces to enable)ps testing:    no (requires libspectre)pdf testing:   yessvg testing:   yes--- The tee surface backend feature is still under active development and is
--- included in this release only as a preview. It does NOT fully work yet
--- and incompatible changes may yet be made to tee surface backend specific
--- API.

3. 编译

执行make命令进行编译。命令及结果如下(内容较多,只贴出部分):

~/BLFS/cairo-1.17.6$ make
make  all-recursive
make[1]: 进入目录“/home/penghao/BLFS/cairo-1.17.6”
Making all in src
make[2]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/src”
Makefile:2682: warning: ignoring prerequisites on suffix rule definition
Makefile:2684: warning: ignoring prerequisites on suffix rule definition
make  all-am
make[3]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/src”
Makefile:2682: warning: ignoring prerequisites on suffix rule definition
Makefile:2684: warning: ignoring prerequisites on suffix rule definitionCCLD     libcairo.la……CC       cairo_test_suite-sample.oCC       cairo_test_suite-scale-down-source-surface-paint.oCC       cairo_test_suite-scale-offset-image.oCC       cairo_test_suite-scale-offset-similar.oCC       cairo_test_suite-scale-source-surface-paint.oCC       cairo_test_suite-scaled-font-zero-matrix.oCC       cairo_test_suite-stroke-ctm-caps.oCC       cairo_test_suite-stroke-clipped.oCC       cairo_test_suite-stroke-image.oCC       cairo_test_suite-stroke-open-box.oCC       cairo_test_suite-select-font-face.oCC       cairo_test_suite-select-font-no-show-text.oCC       cairo_test_suite-self-copy.oCC       cairo_test_suite-self-copy-overlap.oCC       cairo_test_suite-self-intersecting.oCC       cairo_test_suite-set-source.oCC       cairo_test_suite-show-glyphs-advance.oCC       cairo_test_suite-show-glyphs-many.o
show-glyphs-many.c: 在函数‘draw’中:
show-glyphs-many.c:136:16: 警告:implicit conversion from ‘cairo_test_status_t’ {或称 ‘enum cairo_test_status’} to ‘cairo_status_t’ {或称 ‘enum _cairo_status’} [-Wenum-conversion]136 |         status = get_glyph (ctx, scaled_font, *utf8, &glyphs[0]);|                ^
show-glyphs-many.c:151:12: 警告:implicit conversion from ‘cairo_test_status_t’ {或称 ‘enum cairo_test_status’} to ‘cairo_status_t’ {或称 ‘enum _cairo_status’} [-Wenum-conversion]151 |     status = get_glyph (ctx, scaled_font, "m", &glyphs[0]);|            ^
show-glyphs-many.c:157:12: 警告:implicit conversion from ‘cairo_test_status_t’ {或称 ‘enum cairo_test_status’} to ‘cairo_status_t’ {或称 ‘enum _cairo_status’} [-Wenum-conversion]157 |     status = get_glyph (ctx, scaled_font, "μ", &glyphs[i]);|            ^
show-glyphs-many.c:168:12: 警告:implicit conversion from ‘cairo_status_t’ {或称 ‘enum _cairo_status’} to ‘cairo_test_status_t’ {或称 ‘enum cairo_test_status’} [-Wenum-conversion]168 |     return status;|            ^~~~~~CC       cairo_test_suite-show-text-current-point.oCC       cairo_test_suite-shape-general-convex.oCC       cairo_test_suite-shape-sierpinski.oCC       cairo_test_suite-shifted-operator.oCC       cairo_test_suite-simple.oCC       cairo_test_suite-skew-extreme.oCC       cairo_test_suite-smask.oCC       cairo_test_suite-smask-fill.oCC       cairo_test_suite-smask-image-mask.oCC       cairo_test_suite-smask-mask.oCC       cairo_test_suite-smask-paint.oCC       cairo_test_suite-smask-stroke.oCC       cairo_test_suite-smask-text.oCC       cairo_test_suite-smp-glyph.oCC       cairo_test_suite-solid-pattern-cache-stress.oCC       cairo_test_suite-source-clip.oCC       cairo_test_suite-source-clip-scale.oCC       cairo_test_suite-source-surface-scale-paint.oCC       cairo_test_suite-spline-decomposition.oCC       cairo_test_suite-stride-12-image.oCC       cairo_test_suite-stroke-pattern.oCC       cairo_test_suite-subsurface.oCC       cairo_test_suite-subsurface-image-repeat.oCC       cairo_test_suite-subsurface-repeat.oCC       cairo_test_suite-subsurface-reflect.oCC       cairo_test_suite-subsurface-pad.oCC       cairo_test_suite-subsurface-modify-child.oCC       cairo_test_suite-subsurface-modify-parent.oCC       cairo_test_suite-subsurface-outside-target.oCC       cairo_test_suite-subsurface-scale.o
subsurface-scale.c: 在函数‘draw’中:
subsurface-scale.c:56:33: 警告:implicit conversion from ‘enum _cairo_font_weight’ to ‘cairo_font_slant_t’ {或称 ‘enum _cairo_font_slant’} [-Wenum-conversion]56 |                                 CAIRO_FONT_WEIGHT_NORMAL,|                                 ^~~~~~~~~~~~~~~~~~~~~~~~
subsurface-scale.c:57:33: 警告:implicit conversion from ‘enum _cairo_font_slant’ to ‘cairo_font_weight_t’ {或称 ‘enum _cairo_font_weight’} [-Wenum-conversion]57 |                                 CAIRO_FONT_SLANT_NORMAL);|                                 ^~~~~~~~~~~~~~~~~~~~~~~CC       cairo_test_suite-subsurface-similar-repeat.oCC       cairo_test_suite-surface-finish-twice.oCC       cairo_test_suite-surface-pattern.oCC       cairo_test_suite-surface-pattern-big-scale-down.oCC       cairo_test_suite-surface-pattern-operator.oCC       cairo_test_suite-surface-pattern-scale-down.oCC       cairo_test_suite-surface-pattern-scale-down-extend.oCC       cairo_test_suite-surface-pattern-scale-up.oCC       cairo_test_suite-text-antialias.oCC       cairo_test_suite-text-antialias-subpixel.oCC       cairo_test_suite-text-cache-crash.oCC       cairo_test_suite-text-glyph-range.oCC       cairo_test_suite-text-pattern.oCC       cairo_test_suite-text-rotate.oCC       cairo_test_suite-text-subpixel.oCC       cairo_test_suite-text-transform.oCC       cairo_test_suite-text-unhinted-metrics.oCC       cairo_test_suite-text-zero-len.oCC       cairo_test_suite-thin-lines.oCC       cairo_test_suite-tighten-bounds.oCC       cairo_test_suite-tiger.oCC       cairo_test_suite-toy-font-face.oCC       cairo_test_suite-transforms.oCC       cairo_test_suite-translate-show-surface.oCC       cairo_test_suite-trap-clip.oCC       cairo_test_suite-twin.oCC       cairo_test_suite-twin-antialias-gray.oCC       cairo_test_suite-twin-antialias-mixed.oCC       cairo_test_suite-twin-antialias-none.oCC       cairo_test_suite-twin-antialias-subpixel.oCC       cairo_test_suite-unaligned-box.oCC       cairo_test_suite-unantialiased-shapes.oCC       cairo_test_suite-unbounded-operator.oCC       cairo_test_suite-unclosed-strokes.oCC       cairo_test_suite-user-data.oCC       cairo_test_suite-user-font.oCC       cairo_test_suite-user-font-color.oCC       cairo_test_suite-user-font-mask.oCC       cairo_test_suite-user-font-proxy.oCC       cairo_test_suite-user-font-rescale.oCC       cairo_test_suite-user-font-subpixel.oCC       cairo_test_suite-world-map.oCC       cairo_test_suite-white-in-noop.oCC       cairo_test_suite-xcb-huge-image-shm.oCC       cairo_test_suite-xcb-huge-subimage.oCC       cairo_test_suite-xcb-stress-cache.oCC       cairo_test_suite-xcb-snapshot-assert.oCC       cairo_test_suite-xcomposite-projection.oCC       cairo_test_suite-xlib-expose-event.oCC       cairo_test_suite-zero-alpha.oCC       cairo_test_suite-zero-mask.oCC       cairo_test_suite-pthread-same-source.oCC       cairo_test_suite-pthread-show-text.oCC       cairo_test_suite-pthread-similar.oCC       cairo_test_suite-font-variations.oCC       cairo_test_suite-bitmap-font.oCC       cairo_test_suite-ft-color-font.oCC       cairo_test_suite-ft-font-create-for-ft-face.oCC       cairo_test_suite-ft-show-glyphs-positioning.oCC       cairo_test_suite-ft-show-glyphs-table.oCC       cairo_test_suite-ft-text-vertical-layout-type1.oCC       cairo_test_suite-ft-text-vertical-layout-type3.oCC       cairo_test_suite-ft-text-antialias-none.oCC       cairo_test_suite-pdf-features.oCC       cairo_test_suite-pdf-mime-data.oCC       cairo_test_suite-pdf-operators-text.oCC       cairo_test_suite-pdf-surface-source.oCC       cairo_test_suite-pdf-tagged-text.oCC       cairo_test_suite-ps-eps.oCC       cairo_test_suite-ps-features.oCC       cairo_test_suite-ps-surface-source.oCC       cairo_test_suite-svg-surface.oCC       cairo_test_suite-svg-clip.oCC       cairo_test_suite-svg-surface-source.oCC       cairo_test_suite-xcb-surface-source.oCC       cairo_test_suite-xlib-surface.oCC       cairo_test_suite-xlib-surface-source.oCC       cairo_test_suite-get-xrender-format.oCC       cairo_test_suite-multi-page.oCC       cairo_test_suite-mime-unique-id.oCC       cairo_test_suite-fallback-resolution.oCC       cairo_test_suite-cairo-test-constructors.oCC       any2ppm-any2ppm.oCCLD     any2ppmCCLD     cairo-test-suite
make[4]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/test”
make[3]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/test”
make[2]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/test”
Making all in perf
make[2]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/perf”
make  all-recursive
make[3]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/perf”
Making all in micro
make[4]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/perf/micro”
make  all-am
make[5]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/perf/micro”CC       cairo-perf-cover.loCC       box-outline.loCC       composite-checker.loCC       disjoint.loCC       fill.loCC       hatching.loCC       hash-table.loCC       line.loCC       a1-line.loCC       long-lines.loCC       mosaic.loCC       paint.loCC       paint-with-alpha.loCC       mask.loCC       pattern_create_radial.loCC       rectangles.loCC       rounded-rectangles.loCC       stroke.loCC       subimage_copy.loCC       tessellate.loCC       text.loCC       tiger.loCC       glyphs.loCC       twin.loCC       unaligned-clip.loCC       wave.loCC       world-map.loCC       zrusin.loCC       long-dashed-lines.loCC       dragon.loCC       pythagoras-tree.loCC       intersections.loCC       many-strokes.loCC       wide-strokes.loCC       many-fills.loCC       wide-fills.loCC       many-curves.loCC       curve.loCC       a1-curve.loCC       spiral.loCC       pixel.loCC       sierpinski.loCC       fill-clip.loCCLD     libcairo-perf-micro.la
make[5]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/perf/micro”
make[4]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/perf/micro”
make[4]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/perf”CC       cairo-analyse-trace.oCC       ../src/cairo-error.oCC       cairo-perf.loCC       cairo-perf-report.loCC       cairo-stats.loCC       ../src/cairo-time.loCCLD     libcairoperf.laCCLD     cairo-analyse-traceCC       cairo-perf-trace.oCC       ../src/cairo-hash.oCCLD     cairo-perf-traceCC       cairo-perf-micro.oCCLD     cairo-perf-micro
make[4]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/perf”
make[3]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/perf”
make[2]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/perf”
make[2]: 进入目录“/home/penghao/BLFS/cairo-1.17.6”
make[2]: 离开目录“/home/penghao/BLFS/cairo-1.17.6”
make[1]: 离开目录“/home/penghao/BLFS/cairo-1.17.6”

五、安装

BLFS中给出的命令为:

make install

这里稍作调整,加入“DESTDIR=”选项。

先在Cairo源码文件夹下创建output目录,之后执行以下命令:

~/BLFS/cairo-1.17.6$ make install DESTDIR=/home/penghao/BLFS/cairo-1.17.6/output

注意:DESTDIR选项中等号后边的路径必须为绝对路径。

实际命令及结果如下:

~/BLFS/cairo-1.17.6$ make install DESTDIR=/home/penghao/BLFS/cairo-1.17.6/output
make  install-recursive
make[1]: 进入目录“/home/penghao/BLFS/cairo-1.17.6”
Making install in src
make[2]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/src”
Makefile:2682: warning: ignoring prerequisites on suffix rule definition
Makefile:2684: warning: ignoring prerequisites on suffix rule definition
make  install-am
make[3]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/src”
Makefile:2682: warning: ignoring prerequisites on suffix rule definition
Makefile:2684: warning: ignoring prerequisites on suffix rule definition
make[4]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/src”
Makefile:2682: warning: ignoring prerequisites on suffix rule definition
Makefile:2684: warning: ignoring prerequisites on suffix rule definition/usr/bin/mkdir -p '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib'/bin/sh ../libtool   --mode=install /usr/bin/install -c   libcairo.la '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libcairo.so.2.11706.0 /home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/libcairo.so.2.11706.0
libtool: install: (cd /home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib && { ln -s -f libcairo.so.2.11706.0 libcairo.so.2 || { rm -f libcairo.so.2 && ln -s libcairo.so.2.11706.0 libcairo.so.2; }; })
libtool: install: (cd /home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib && { ln -s -f libcairo.so.2.11706.0 libcairo.so || { rm -f libcairo.so && ln -s libcairo.so.2.11706.0 libcairo.so; }; })
libtool: install: /usr/bin/install -c .libs/libcairo.lai /home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/libcairo.la
libtool: warning: remember to run 'libtool --finish /usr/local/lib'/usr/bin/mkdir -p '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/include/cairo'/usr/bin/install -c -m 644 cairo.h cairo-version.h cairo-deprecated.h cairo-xlib.h cairo-xlib-xrender.h cairo-xcb.h cairo-script.h cairo-ft.h cairo-ps.h cairo-pdf.h cairo-svg.h cairo-tee.h '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/include/cairo'/usr/bin/mkdir -p '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/include/cairo'/usr/bin/install -c -m 644 cairo-features.h '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/include/cairo'/usr/bin/mkdir -p '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/pkgconfig'/usr/bin/install -c -m 644 cairo.pc cairo-xlib.pc cairo-xlib-xrender.pc cairo-xcb.pc cairo-xcb-shm.pc cairo-png.pc cairo-script.pc cairo-ft.pc cairo-fc.pc cairo-ps.pc cairo-pdf.pc cairo-svg.pc cairo-tee.pc cairo-gobject.pc '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/pkgconfig'
make[4]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/src”
make[3]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/src”
make[2]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/src”
Making install in doc
make[2]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/doc”
make  install-recursive
make[3]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/doc”
Making install in public
make[4]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/doc/public”
make  install-am
make[5]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/doc/public”
make[6]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/doc/public”
make[6]: 对“install-exec-am”无需做任何事。installfiles=`echo ./html/*`; \
if test "$installfiles" = './html/*'; \
then echo '-- Nothing to install' ; \
else \/bin/sh /home/penghao/BLFS/cairo-1.17.6/build/install-sh -d /home/penghao/BLFS/cairo-1.17.6/output/usr/local/share/gtk-doc/html/cairo; \for i in $installfiles; do \echo '-- Installing '$i ; \/usr/bin/install -c -m 644 $i /home/penghao/BLFS/cairo-1.17.6/output/usr/local/share/gtk-doc/html/cairo; \done; \echo '-- Installing ./html/index.sgml' ; \/usr/bin/install -c -m 644 ./html/index.sgml /home/penghao/BLFS/cairo-1.17.6/output/usr/local/share/gtk-doc/html/cairo || :; \which gtkdoc-rebase >/dev/null && \gtkdoc-rebase --relative --dest-dir=/home/penghao/BLFS/cairo-1.17.6/output --html-dir=/home/penghao/BLFS/cairo-1.17.6/output/usr/local/share/gtk-doc/html/cairo ; \
fi
-- Installing ./html/bindings-errors.html
-- Installing ./html/bindings-fonts.html
-- Installing ./html/bindings-memory.html
-- Installing ./html/bindings-overloading.html
-- Installing ./html/bindings-path.html
-- Installing ./html/bindings-patterns.html
-- Installing ./html/bindings-return-values.html
-- Installing ./html/bindings-streams.html
-- Installing ./html/bindings-surfaces.html
-- Installing ./html/cairo-cairo-device-t.html
-- Installing ./html/cairo-cairo-font-face-t.html
-- Installing ./html/cairo-cairo-font-options-t.html
-- Installing ./html/cairo-cairo-matrix-t.html
-- Installing ./html/cairo-cairo-pattern-t.html
-- Installing ./html/cairo-cairo-scaled-font-t.html
-- Installing ./html/cairo-cairo-surface-t.html
-- Installing ./html/cairo-cairo-t.html
-- Installing ./html/cairo.devhelp2
-- Installing ./html/cairo-drawing.html
-- Installing ./html/cairo-DWrite-Fonts.html
-- Installing ./html/cairo-Error-handling.html
-- Installing ./html/cairo-fonts.html
-- Installing ./html/cairo-FreeType-Fonts.html
-- Installing ./html/cairo-Image-Surfaces.html
-- Installing ./html/cairo-Paths.html
-- Installing ./html/cairo-PDF-Surfaces.html
-- Installing ./html/cairo-PNG-Support.html
-- Installing ./html/cairo-PostScript-Surfaces.html
-- Installing ./html/cairo-Quartz-(CGFont)-Fonts.html
-- Installing ./html/cairo-Quartz-Surfaces.html
-- Installing ./html/cairo-Raster-Sources.html
-- Installing ./html/cairo-Recording-Surfaces.html
-- Installing ./html/cairo-Regions.html
-- Installing ./html/cairo-Script-Surfaces.html
-- Installing ./html/cairo-support.html
-- Installing ./html/cairo-surfaces.html
-- Installing ./html/cairo-SVG-Surfaces.html
-- Installing ./html/cairo-Tags-and-Links.html
-- Installing ./html/cairo-text.html
-- Installing ./html/cairo-Transformations.html
-- Installing ./html/cairo-Types.html
-- Installing ./html/cairo-User-Fonts.html
-- Installing ./html/cairo-Version-Information.html
-- Installing ./html/cairo-Win32-GDI-Fonts.html
-- Installing ./html/cairo-Win32-Surfaces.html
-- Installing ./html/cairo-XCB-Surfaces.html
-- Installing ./html/cairo-XLib-Surfaces.html
-- Installing ./html/cairo-XLib-XRender-Backend.html
-- Installing ./html/home.png
-- Installing ./html/index-all.html
-- Installing ./html/index.html
-- Installing ./html/language-bindings.html
-- Installing ./html/left-insensitive.png
-- Installing ./html/left.png
-- Installing ./html/right-insensitive.png
-- Installing ./html/right.png
-- Installing ./html/style.css
-- Installing ./html/up-insensitive.png
-- Installing ./html/up.png
-- Installing ./html/index.sgml
/usr/bin/install: 对 './html/index.sgml' 调用 stat 失败: 没有那个文件或目录which: no gtkdoc-rebase in (/home/penghao/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/usr/go/bin)
make[6]: [Makefile:1385:install-data-local] 错误 1 (已忽略)make[6]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/doc/public”
make[5]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/doc/public”
make[4]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/doc/public”
make[4]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/doc”
make[5]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/doc”
make[5]: 对“install-exec-am”无需做任何事。make[5]: 对“install-data-am”无需做任何事。make[5]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/doc”
make[4]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/doc”
make[3]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/doc”
make[2]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/doc”
Making install in util
make[2]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/util”
make  install-recursive
make[3]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/util”
Making install in .
make[4]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/util”
make[5]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/util”
make[5]: 对“install-exec-am”无需做任何事。make[5]: 对“install-data-am”无需做任何事。make[5]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/util”
make[4]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/util”
Making install in cairo-missing
make[4]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-missing”
make[5]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-missing”
make[5]: 对“install-exec-am”无需做任何事。make[5]: 对“install-data-am”无需做任何事。make[5]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-missing”
make[4]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-missing”
Making install in cairo-gobject
make[4]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-gobject”CCLD     libcairo-gobject.la
make[5]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-gobject”/usr/bin/mkdir -p '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib'/bin/sh ../../libtool   --mode=install /usr/bin/install -c   libcairo-gobject.la '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib'
libtool: warning: relinking 'libcairo-gobject.la'
libtool: install: (cd /home/penghao/BLFS/cairo-1.17.6/util/cairo-gobject; /bin/sh "/home/penghao/BLFS/cairo-1.17.6/libtool"  --silent --tag CC --mode=relink gcc -D_REENTRANT -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libpng16 -Wall -Wextra -Wmissing-declarations -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wsign-compare -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wvolatile-register-var -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing -fno-common -Wp,-D_FORTIFY_SOURCE=2 -Wno-unused-but-set-variable -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -version-info 11708:0:11706 -no-undefined -o libcairo-gobject.la -rpath /usr/local/lib libcairo_gobject_la-cairo-gobject-enums.lo libcairo_gobject_la-cairo-gobject-structs.lo ../../src/libcairo.la -lpixman-1 -lfontconfig -lfreetype -lfreetype -lpng16 -lz -lxcb-shm -lxcb -lxcb-render -lXrender -lX11 -lX11 -lXext -lz -lz -lz -lgobject-2.0 -lglib-2.0 -lrt -lm -inst-prefix-dir /home/penghao/BLFS/cairo-1.17.6/output)
libtool: install: /usr/bin/install -c .libs/libcairo-gobject.so.2.11706.0T /home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/libcairo-gobject.so.2.11706.0
libtool: install: (cd /home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib && { ln -s -f libcairo-gobject.so.2.11706.0 libcairo-gobject.so.2 || { rm -f libcairo-gobject.so.2 && ln -s libcairo-gobject.so.2.11706.0 libcairo-gobject.so.2; }; })
libtool: install: (cd /home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib && { ln -s -f libcairo-gobject.so.2.11706.0 libcairo-gobject.so || { rm -f libcairo-gobject.so && ln -s libcairo-gobject.so.2.11706.0 libcairo-gobject.so; }; })
libtool: install: /usr/bin/install -c .libs/libcairo-gobject.lai /home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/libcairo-gobject.la
libtool: warning: remember to run 'libtool --finish /usr/local/lib'/usr/bin/mkdir -p '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/include/cairo'/usr/bin/install -c -m 644 cairo-gobject.h '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/include/cairo'
make[5]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-gobject”
make[4]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-gobject”
Making install in cairo-script
make[4]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-script”
Making install in examples
make[5]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-script/examples”
make[6]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-script/examples”
make[6]: 对“install-exec-am”无需做任何事。make[6]: 对“install-data-am”无需做任何事。make[6]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-script/examples”
make[5]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-script/examples”
make[5]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-script”CCLD     libcairo-script-interpreter.la
make[6]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-script”/usr/bin/mkdir -p '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib'/bin/sh ../../libtool   --mode=install /usr/bin/install -c   libcairo-script-interpreter.la '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib'
libtool: warning: relinking 'libcairo-script-interpreter.la'
libtool: install: (cd /home/penghao/BLFS/cairo-1.17.6/util/cairo-script; /bin/sh "/home/penghao/BLFS/cairo-1.17.6/libtool"  --silent --tag CC --mode=relink gcc -D_REENTRANT -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libpng16 -Wall -Wextra -Wmissing-declarations -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wsign-compare -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wvolatile-register-var -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing -fno-common -Wp,-D_FORTIFY_SOURCE=2 -Wno-unused-but-set-variable -g -O2 -version-info 11708:0:11706 -no-undefined -o libcairo-script-interpreter.la -rpath /usr/local/lib libcairo_script_interpreter_la-cairo-script-file.lo libcairo_script_interpreter_la-cairo-script-hash.lo libcairo_script_interpreter_la-cairo-script-interpreter.lo libcairo_script_interpreter_la-cairo-script-objects.lo libcairo_script_interpreter_la-cairo-script-operators.lo libcairo_script_interpreter_la-cairo-script-scanner.lo libcairo_script_interpreter_la-cairo-script-stack.lo ../../src/libcairo.la -lpixman-1 -lfontconfig -lfreetype -lfreetype -lpng16 -lz -lxcb-shm -lxcb -lxcb-render -lXrender -lX11 -lX11 -lXext -lz -lz -lz -llzo2 -lz -lrt -lm -inst-prefix-dir /home/penghao/BLFS/cairo-1.17.6/output)
libtool: install: /usr/bin/install -c .libs/libcairo-script-interpreter.so.2.11706.0T /home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/libcairo-script-interpreter.so.2.11706.0
libtool: install: (cd /home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib && { ln -s -f libcairo-script-interpreter.so.2.11706.0 libcairo-script-interpreter.so.2 || { rm -f libcairo-script-interpreter.so.2 && ln -s libcairo-script-interpreter.so.2.11706.0 libcairo-script-interpreter.so.2; }; })
libtool: install: (cd /home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib && { ln -s -f libcairo-script-interpreter.so.2.11706.0 libcairo-script-interpreter.so || { rm -f libcairo-script-interpreter.so && ln -s libcairo-script-interpreter.so.2.11706.0 libcairo-script-interpreter.so; }; })
libtool: install: /usr/bin/install -c .libs/libcairo-script-interpreter.lai /home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/libcairo-script-interpreter.la
libtool: warning: remember to run 'libtool --finish /usr/local/lib'/usr/bin/mkdir -p '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/include/cairo'/usr/bin/install -c -m 644 cairo-script-interpreter.h '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/include/cairo'/usr/bin/mkdir -p '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/pkgconfig'/usr/bin/install -c -m 644 cairo-script-interpreter.pc '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/pkgconfig'
make[6]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-script”
make[5]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-script”
make[4]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-script”
Making install in cairo-trace
make[4]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-trace”
make[5]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-trace”/usr/bin/mkdir -p '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/bin'/usr/bin/install -c cairo-trace '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/bin'/usr/bin/mkdir -p '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/cairo'/bin/sh ../../libtool   --mode=install /usr/bin/install -c   libcairo-trace.la '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/cairo'
libtool: install: /usr/bin/install -c .libs/libcairo-trace.so /home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/cairo/libcairo-trace.so
libtool: install: /usr/bin/install -c .libs/libcairo-trace.lai /home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/cairo/libcairo-trace.la
libtool: warning: remember to run 'libtool --finish /usr/local/lib/cairo'
make[5]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-trace”
make[4]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-trace”
Making install in cairo-fdr
make[4]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-fdr”
make[5]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-fdr”
make[5]: 对“install-exec-am”无需做任何事。 /usr/bin/mkdir -p '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/cairo'/bin/sh ../../libtool   --mode=install /usr/bin/install -c   cairo-fdr.la '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/cairo'
libtool: install: /usr/bin/install -c .libs/cairo-fdr.so /home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/cairo/cairo-fdr.so
libtool: install: /usr/bin/install -c .libs/cairo-fdr.lai /home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/cairo/cairo-fdr.la
libtool: warning: remember to run 'libtool --finish /usr/local/lib/cairo'
make[5]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-fdr”
make[4]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-fdr”
Making install in cairo-sphinx
make[4]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-sphinx”
cd ../../boilerplate && make  libcairoboilerplate.la
make[5]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/boilerplate”
make[5]: “libcairoboilerplate.la”已是最新。make[5]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/boilerplate”CCLD     cairo-sphinx
make[5]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-sphinx”
cd ../../boilerplate && make  libcairoboilerplate.la
make[6]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/boilerplate”
make[6]: “libcairoboilerplate.la”已是最新。make[6]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/boilerplate”/usr/bin/mkdir -p '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/bin'/bin/sh ../../libtool   --mode=install /usr/bin/install -c cairo-sphinx '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/bin'
libtool: warning: '../../util/cairo-script/libcairo-script-interpreter.la' has not been installed in '/usr/local/lib'
libtool: warning: '/home/penghao/BLFS/cairo-1.17.6/src/libcairo.la' has not been installed in '/usr/local/lib'
libtool: warning: '../../src/libcairo.la' has not been installed in '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/cairo-sphinx /home/penghao/BLFS/cairo-1.17.6/output/usr/local/bin/cairo-sphinx/usr/bin/mkdir -p '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/cairo'/bin/sh ../../libtool   --mode=install /usr/bin/install -c   cairo-sphinx.la '/home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/cairo'
libtool: install: /usr/bin/install -c .libs/cairo-sphinx.so /home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/cairo/cairo-sphinx.so
libtool: install: /usr/bin/install -c .libs/cairo-sphinx.lai /home/penghao/BLFS/cairo-1.17.6/output/usr/local/lib/cairo/cairo-sphinx.la
libtool: warning: remember to run 'libtool --finish /usr/local/lib/cairo'
make[5]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-sphinx”
make[4]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/util/cairo-sphinx”
make[3]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/util”
make[2]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/util”
Making install in boilerplate
make[2]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/boilerplate”
make  install-am
make[3]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/boilerplate”
make[4]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/boilerplate”
make[4]: 对“install-exec-am”无需做任何事。make[4]: 对“install-data-am”无需做任何事。make[4]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/boilerplate”
make[3]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/boilerplate”
make[2]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/boilerplate”
Making install in test
make[2]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/test”
make  install-recursive
make[3]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/test”
Making install in pdiff
make[4]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/test/pdiff”
make  install-am
make[5]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/test/pdiff”
make[6]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/test/pdiff”
make[6]: 对“install-exec-am”无需做任何事。make[6]: 对“install-data-am”无需做任何事。make[6]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/test/pdiff”
make[5]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/test/pdiff”
make[4]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/test/pdiff”
Making install in .
make[4]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/test”
cd ../boilerplate && make  libcairoboilerplate.la
make[5]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/boilerplate”
make[5]: “libcairoboilerplate.la”已是最新。make[5]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/boilerplate”CCLD     any2ppmCCLD     cairo-test-suite
make[5]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/test”
make[5]: 对“install-exec-am”无需做任何事。make[5]: 对“install-data-am”无需做任何事。make[5]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/test”
make[4]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/test”
make[3]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/test”
make[2]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/test”
Making install in perf
make[2]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/perf”
make  install-recursive
make[3]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/perf”
Making install in micro
make[4]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/perf/micro”
make  install-am
make[5]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/perf/micro”
make[6]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/perf/micro”
make[6]: 对“install-exec-am”无需做任何事。make[6]: 对“install-data-am”无需做任何事。make[6]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/perf/micro”
make[5]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/perf/micro”
make[4]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/perf/micro”
make[4]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/perf”
cd ../boilerplate && make  libcairoboilerplate.la
make[5]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/boilerplate”
make[5]: “libcairoboilerplate.la”已是最新。make[5]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/boilerplate”CCLD     cairo-analyse-traceCCLD     cairo-perf-traceCCLD     cairo-perf-micro
make[5]: 进入目录“/home/penghao/BLFS/cairo-1.17.6/perf”
make[5]: 对“install-exec-am”无需做任何事。make[5]: 对“install-data-am”无需做任何事。make[5]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/perf”
make[4]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/perf”
make[3]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/perf”
make[2]: 离开目录“/home/penghao/BLFS/cairo-1.17.6/perf”
make[2]: 进入目录“/home/penghao/BLFS/cairo-1.17.6”
make[3]: 进入目录“/home/penghao/BLFS/cairo-1.17.6”
make[3]: 对“install-exec-am”无需做任何事。make[3]: 对“install-data-am”无需做任何事。make[3]: 离开目录“/home/penghao/BLFS/cairo-1.17.6”
make[2]: 离开目录“/home/penghao/BLFS/cairo-1.17.6”
make[1]: 离开目录“/home/penghao/BLFS/cairo-1.17.6”

安装完成后,output目录中的内容为:

/BLFS/cairo-1.17.6$ tree output/
output/
└── usr└── local├── bin│   ├── cairo-sphinx│   └── cairo-trace├── include│   └── cairo│       ├── cairo-deprecated.h│       ├── cairo-features.h│       ├── cairo-ft.h│       ├── cairo-gobject.h│       ├── cairo.h│       ├── cairo-pdf.h│       ├── cairo-ps.h│       ├── cairo-script.h│       ├── cairo-script-interpreter.h│       ├── cairo-svg.h│       ├── cairo-tee.h│       ├── cairo-version.h│       ├── cairo-xcb.h│       ├── cairo-xlib.h│       └── cairo-xlib-xrender.h├── lib│   ├── cairo│   │   ├── cairo-fdr.la│   │   ├── cairo-fdr.so│   │   ├── cairo-sphinx.la│   │   ├── cairo-sphinx.so│   │   ├── libcairo-trace.la│   │   └── libcairo-trace.so│   ├── libcairo-gobject.la│   ├── libcairo-gobject.so -> libcairo-gobject.so.2.11706.0│   ├── libcairo-gobject.so.2 -> libcairo-gobject.so.2.11706.0│   ├── libcairo-gobject.so.2.11706.0│   ├── libcairo.la│   ├── libcairo-script-interpreter.la│   ├── libcairo-script-interpreter.so -> libcairo-script-interpreter.so.2.11706.0│   ├── libcairo-script-interpreter.so.2 -> libcairo-script-interpreter.so.2.11706.0│   ├── libcairo-script-interpreter.so.2.11706.0│   ├── libcairo.so -> libcairo.so.2.11706.0│   ├── libcairo.so.2 -> libcairo.so.2.11706.0│   ├── libcairo.so.2.11706.0│   └── pkgconfig│       ├── cairo-fc.pc│       ├── cairo-ft.pc│       ├── cairo-gobject.pc│       ├── cairo.pc│       ├── cairo-pdf.pc│       ├── cairo-png.pc│       ├── cairo-ps.pc│       ├── cairo-script-interpreter.pc│       ├── cairo-script.pc│       ├── cairo-svg.pc│       ├── cairo-tee.pc│       ├── cairo-xcb.pc│       ├── cairo-xcb-shm.pc│       ├── cairo-xlib.pc│       └── cairo-xlib-xrender.pc└── share└── gtk-doc└── html└── cairo├── bindings-errors.html├── bindings-fonts.html├── bindings-memory.html├── bindings-overloading.html├── bindings-path.html├── bindings-patterns.html├── bindings-return-values.html├── bindings-streams.html├── bindings-surfaces.html├── cairo-cairo-device-t.html├── cairo-cairo-font-face-t.html├── cairo-cairo-font-options-t.html├── cairo-cairo-matrix-t.html├── cairo-cairo-pattern-t.html├── cairo-cairo-scaled-font-t.html├── cairo-cairo-surface-t.html├── cairo-cairo-t.html├── cairo.devhelp2├── cairo-drawing.html├── cairo-DWrite-Fonts.html├── cairo-Error-handling.html├── cairo-fonts.html├── cairo-FreeType-Fonts.html├── cairo-Image-Surfaces.html├── cairo-Paths.html├── cairo-PDF-Surfaces.html├── cairo-PNG-Support.html├── cairo-PostScript-Surfaces.html├── cairo-Quartz-(CGFont)-Fonts.html├── cairo-Quartz-Surfaces.html├── cairo-Raster-Sources.html├── cairo-Recording-Surfaces.html├── cairo-Regions.html├── cairo-Script-Surfaces.html├── cairo-support.html├── cairo-surfaces.html├── cairo-SVG-Surfaces.html├── cairo-Tags-and-Links.html├── cairo-text.html├── cairo-Transformations.html├── cairo-Types.html├── cairo-User-Fonts.html├── cairo-Version-Information.html├── cairo-Win32-GDI-Fonts.html├── cairo-Win32-Surfaces.html├── cairo-XCB-Surfaces.html├── cairo-XLib-Surfaces.html├── cairo-XLib-XRender-Backend.html├── home.png├── index-all.html├── index.html├── language-bindings.html├── left-insensitive.png├── left.png├── right-insensitive.png├── right.png├── style.css├── up-insensitive.png└── up.png12 directories, 109 files

至此,Cairo包的源码构建和安装就全部完成了(当然,这里只是安装到了output的路径下,如果使用原始参数,则会安装到系统中的/usr/路径下)。

相关文章:

Cairo介绍及源码构建安装(3)

接前一篇文章:Cairo介绍及源码构建安装(2) 四、Cairo构建与安装 2. 配置 BLFS中给出的命令为: ./configure --prefix/usr \--disable-static \--enable-tee 这里将“--prefix”选项由“/usr”调整为“/usr/local”&#x…...

Mac电脑信息大纲记录软件 OmniOutliner 5 Pro for Mac中文

OmniOutliner 5 Pro是一款专业级的Mac大纲制作工具,它可以帮助用户更好地组织和管理信息,以及制作精美的大纲。以下是OmniOutliner 5 Pro的主要功能和特点: 强大的大纲组织和管理功能。OmniOutliner 5 Pro为用户提供了多层次的大纲结构&…...

linux设置应用开机自启(通用:mysql、jar、nginx、solr...)

1. 业务场景 用于单机生产环境,防止服务器断电或者强制重启导致的服务下线。 2. 实现方案 对于无状态服务,可容器部署设置 restart: always,systemctl eable docker对于有状态服务,可编写自启脚本,如下 ① 编写执行…...

Offset Explorer(Kafka消息可视化工具)报invalid hex digit ‘{‘错误解决方法

解决办法: 根据代码的实际情况,设置成对应的值。设置完成后点update、refresh更新。...

深度学习:模型训练过程中Trying to backward through the graph a second time解决方案

1 问题描述 在训练lstm网络过程中出现如下错误&#xff1a; Traceback (most recent call last):File "D:\code\lstm_emotion_analyse\text_analyse.py", line 82, in <module>loss.backward()File "C:\Users\lishu\anaconda3\envs\pt2\lib\site-packag…...

【数值计算方法】非线性方程(组)和最优化问题的计算方法:非线性方程式求根的二分法、迭代法、Newton 迭代法及其Python实现

目录 一、非线性方程式求根 1、二分法&#xff08;Bisection Method、对分法&#xff09; a. 理论简介 b. python实现 2、迭代法&#xff08;Iterative Method&#xff09; a. 理论简介 b. python实现 3、Newton 迭代法&#xff08;Newtons Method&#xff09; a. 理论…...

linux主机名

title: linux主机名 createTime: 2020-10-29 18:05:52 updateTime: 2020-10-29 18:05:52 categories: linux tags: Linux系统的主机名 查询主机名 hostnamehostnamectl 修改主机名 hostnamectl set-hostname <newhostname>...

前端uniapp图片select联动文本切换

图片 代码 <template><!-- 这个是uniapp的下拉框 --><uni-data-select v-model"pay_type" :localdata"range" change"handleSelectChange"></uni-data-select><!-- 图片 --><image :src"dynamicImage&qu…...

java - 包装类

目录 前言 一 什么是包装类? 1.获取包装类的两种方式(了解)(已经淘汰) 2.两种方式获取对象的区别(掌握) 3.自动装箱&&自动装箱 4.Integer常用方法 总结 前言 大家好,今天给大家讲解一下包装类 一 什么是包装类? 在Java中&#xff0c;每个基本数据类型都有对应…...

防火墙基础

目录 1、 防火墙支持那些NAT技术&#xff0c;主要应用场景是什么&#xff1f; 2、当内网PC通过公网域名解析访问内网服务器时&#xff0c;会存在什么问题&#xff0c;如何解决&#xff1f; 3、防火墙使用VRRP实现双机热备时会遇到什么问题&#xff0c;如何解决&#xff1f; 4…...

服务断路器_Resilience4j的断路器

断路器&#xff08;CircuitBreaker&#xff09;相对于前面几个熔断机制更复杂&#xff0c;CircuitBreaker通常存在三种状态&#xff08;CLOSE、OPEN、HALF_OPEN&#xff09;&#xff0c;并通过一个时间或数量窗口来记录当前的请求成功率或慢速率&#xff0c;从而根据这些指标来…...

微信小程序学习笔记3.0

第3章 资讯类:仿今日头条微信小程序 3.1 需求描述及交互分析 需求描述 仿今日头条微信小程序,要具有以下功能。 (1)首页新闻频道框架设计,包括底部标签导航设计、新闻检索框设计及新闻频道滑动效果设计。 (2)首页新闻内容设计,包括新闻标题、新闻图片及新闻评论设计…...

nginx 反向代理 负载均衡 动静分离

一样东西的诞生通常都是为了解决某些问题&#xff0c;对于 Nginx 而言&#xff0c;也是如此。 比如&#xff0c;你出于无聊写了一个小网站&#xff0c;部署到 tomcat 之后可以正常访问 但是后来&#xff0c;你的这个小网站因为内容很诱人逐步的火了&#xff0c;用户越来越多&a…...

Codeanalysis(tca)后端二次开发环境搭建

先试用官方脚本文件件quick_install.sh将整个项目启动起来&#xff0c;然后到每个微服务下查看每个服务的pid进程&#xff0c;需要调试哪个先把对应的微服务关闭手动启动&#xff0c;具体启动流程如下&#xff1a; cd 到项目根目录下 source script\config.sh # 激活系统环境…...

JS前端树形Tree数据结构使用

前端开发中会经常用到树形结构数据&#xff0c;如多级菜单、商品的多级分类等。数据库的设计和存储都是扁平结构&#xff0c;就会用到各种Tree树结构的转换操作&#xff0c;本文就尝试全面总结一下。 如下示例数据&#xff0c;关键字段id为唯一标识&#xff0c;pid为父级id&am…...

Automation Anywhere推出新的生成式AI自动化平台,加速提高企业生产力

在9 月 19 日的Imagine 2023 大会上&#xff0c;智能自动化领域的领导者 Automation Anywhere 宣布对其自动化平台进行扩展。推出了新的 Responsible AI Layer&#xff0c;并宣布了四项关键产品更新&#xff0c;包括全新的 Autopilot&#xff0c;它可以利用生成式 AI &#xff…...

电缆隧道在线监测系统:提升电力设施安全与效率的关键

随着城市化进程的加快&#xff0c;电力电缆隧道在保障城市电力供应方面的地位日益重要。然而&#xff0c;电缆隧道环境复杂&#xff0c;容易受到多种因素影响&#xff0c;如温度、湿度、烟雾、水位等&#xff0c;严重威胁电力设施的安全与稳定运行。在此背景下&#xff0c;电缆…...

Java BigDecimal 详解

目录 一、BigDecimal 1、简介 2、构造器描述 3、方法描述 4、使用 一、BigDecimal float和double类型的主要设计目标是为了科学计算和工程计算。他们执行二进制浮点运算&#xff0c;这是为了在广域数值范围上提供较为精确的快速近似计算而精心设计的。然而&#xff0c;它…...

简述信息论与采样定理

信息论 香农信息论发表于1948/1949年&#xff0c;它由三部分组成&#xff1a;信号采样、信源编码、信道编码&#xff1b; 信号采样&#xff1a;采样理论研究在何种条件下对连续信号进行采样&#xff0c;从而得到的离散型号可以可逆地恢复出采样前的连续信号。采样得到的离散实…...

网络安全之网站常见的攻击方式

这是作者自学的哈&#xff0c;不算课程内容。 网页中出现大量黑链 网站看着很正常&#xff0c;但是会隐藏一些链接。网页的链接几乎都是标签&#xff0c;这种黑链就是通过链接标签<a></a>或者script在里面链入恶意脚本&#xff0c;等待浏览者的访问&#xff0c;通…...

地震勘探——干扰波识别、井中地震时距曲线特点

目录 干扰波识别反射波地震勘探的干扰波 井中地震时距曲线特点 干扰波识别 有效波&#xff1a;可以用来解决所提出的地质任务的波&#xff1b;干扰波&#xff1a;所有妨碍辨认、追踪有效波的其他波。 地震勘探中&#xff0c;有效波和干扰波是相对的。例如&#xff0c;在反射波…...

镜像里切换为普通用户

如果你登录远程虚拟机默认就是 root 用户&#xff0c;但你不希望用 root 权限运行 ns-3&#xff08;这是对的&#xff0c;ns3 工具会拒绝 root&#xff09;&#xff0c;你可以按以下方法创建一个 非 root 用户账号 并切换到它运行 ns-3。 一次性解决方案&#xff1a;创建非 roo…...

DIY|Mac 搭建 ESP-IDF 开发环境及编译小智 AI

前一阵子在百度 AI 开发者大会上&#xff0c;看到基于小智 AI DIY 玩具的演示&#xff0c;感觉有点意思&#xff0c;想着自己也来试试。 如果只是想烧录现成的固件&#xff0c;乐鑫官方除了提供了 Windows 版本的 Flash 下载工具 之外&#xff0c;还提供了基于网页版的 ESP LA…...

ios苹果系统,js 滑动屏幕、锚定无效

现象&#xff1a;window.addEventListener监听touch无效&#xff0c;划不动屏幕&#xff0c;但是代码逻辑都有执行到。 scrollIntoView也无效。 原因&#xff1a;这是因为 iOS 的触摸事件处理机制和 touch-action: none 的设置有关。ios有太多得交互动作&#xff0c;从而会影响…...

tauri项目,如何在rust端读取电脑环境变量

如果想在前端通过调用来获取环境变量的值&#xff0c;可以通过标准的依赖&#xff1a; std::env::var(name).ok() 想在前端通过调用来获取&#xff0c;可以写一个command函数&#xff1a; #[tauri::command] pub fn get_env_var(name: String) -> Result<String, Stri…...

Modbus RTU与Modbus TCP详解指南

目录 1. Modbus协议基础 1.1 什么是Modbus? 1.2 Modbus协议历史 1.3 Modbus协议族 1.4 Modbus通信模型 🎭 主从架构 🔄 请求响应模式 2. Modbus RTU详解 2.1 RTU是什么? 2.2 RTU物理层 🔌 连接方式 ⚡ 通信参数 2.3 RTU数据帧格式 📦 帧结构详解 🔍…...

门静脉高压——表现

一、门静脉高压表现 00:01 1. 门静脉构成 00:13 组成结构&#xff1a;由肠系膜上静脉和脾静脉汇合构成&#xff0c;是肝脏血液供应的主要来源。淤血后果&#xff1a;门静脉淤血会同时导致脾静脉和肠系膜上静脉淤血&#xff0c;引发后续系列症状。 2. 脾大和脾功能亢进 00:46 …...

linux设备重启后时间与网络时间不同步怎么解决?

linux设备重启后时间与网络时间不同步怎么解决&#xff1f; 设备只要一重启&#xff0c;时间又错了/偏了&#xff0c;明明刚刚对时还是对的&#xff01; 这在物联网、嵌入式开发环境特别常见&#xff0c;尤其是开发板、树莓派、rk3588 这类设备。 解决方法&#xff1a; 加硬件…...

从0开始学习R语言--Day17--Cox回归

Cox回归 在用医疗数据作分析时&#xff0c;最常见的是去预测某类病的患者的死亡率或预测他们的结局。但是我们得到的病人数据&#xff0c;往往会有很多的协变量&#xff0c;即使我们通过计算来减少指标对结果的影响&#xff0c;我们的数据中依然会有很多的协变量&#xff0c;且…...

联邦学习带宽资源分配

带宽资源分配是指在网络中如何合理分配有限的带宽资源&#xff0c;以满足各个通信任务和用户的需求&#xff0c;尤其是在多用户共享带宽的情况下&#xff0c;如何确保各个设备或用户的通信需求得到高效且公平的满足。带宽是网络中的一个重要资源&#xff0c;通常指的是单位时间…...