在 UCRT8.9.2 windows11 上安装 Vips-64

Install Vips-8.9.2 on UCRT64 windows11

提问人:Marco Moreno 提问时间:12/29/2022 更新时间:12/30/2022 访问量:189

问:

我正在尝试在适用于 Windows 8.9.2 的 UCRT64 上安装 vips-11。在“./configure”之后,我得到了:

configure: creating ./config.status
config.status: creating vips.pc
config.status: creating vips-cpp.pc
config.status: creating Makefile
config.status: creating libvips/include/vips/version.h
config.status: creating libvips/include/Makefile
config.status: creating libvips/include/vips/Makefile
config.status: creating libvips/Makefile
config.status: creating libvips/arithmetic/Makefile
config.status: creating libvips/colour/Makefile
config.status: creating libvips/colour/profiles/Makefile
config.status: creating libvips/conversion/Makefile
config.status: creating libvips/convolution/Makefile
config.status: creating libvips/deprecated/Makefile
config.status: creating libvips/foreign/Makefile
config.status: creating libvips/freqfilt/Makefile
config.status: creating libvips/histogram/Makefile
config.status: creating libvips/draw/Makefile
config.status: creating libvips/iofuncs/Makefile
config.status: creating libvips/morphology/Makefile
config.status: creating libvips/mosaicing/Makefile
config.status: creating libvips/create/Makefile
config.status: creating libvips/resample/Makefile
config.status: creating cplusplus/include/Makefile
config.status: creating cplusplus/include/vips/Makefile
config.status: creating cplusplus/Makefile
config.status: creating tools/Makefile
config.status: creating tools/batch_crop
config.status: creating tools/batch_image_convert
config.status: creating tools/batch_rubber_sheet
config.status: creating tools/light_correct
config.status: creating tools/shrink_width
config.status: creating test/Makefile
config.status: creating test/variables.sh
config.status: creating test/test-suite/Makefile
config.status: creating test/test-suite/helpers/Makefile
config.status: creating man/Makefile
config.status: creating doc/Makefile
config.status: creating doc/libvips-docs.xml
config.status: creating po/Makefile.in
config.status: creating fuzz/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: executing libtool commands
* build options
native win32:                           yes
native OS X:                            no
open files in binary mode:              yes
enable debug:                           no
enable deprecated library components:   yes
enable docs with gtkdoc:                no
gobject introspection:                  yes
enable radiance support:                yes
enable analyze support:                 yes
enable PPM support:                     yes

* optional dependencies
use fftw3 for FFT:                      yes
Magick package:                         MagickCore
Magick API version:                     magick7
load with libMagick:                    yes
save with libMagick:                    yes
accelerate loops with orc:              yes
  (requires orc-0.4.11 or later)
ICC profile support with lcms:          yes (lcms2)
file import with niftiio:               no
file import with libheif:               yes
file import with OpenEXR:               yes
file import with OpenSlide:             yes
  (requires openslide-3.3.0 or later)
file import with matio:                 yes
PDF import with PDFium                  no
PDF import with poppler-glib:           yes
  (requires poppler-glib 0.16.0 or later)
SVG import with librsvg-2.0:            yes
  (requires librsvg-2.0 2.34.0 or later)
zlib:                                   yes
file import with cfitsio:               yes
file import/export with libwebp:        yes
  (requires libwebp, libwebpmux, libwebpdemux 0.6.0 or later)
text rendering with pangoft2:           yes
file import/export with libpng:         yes (pkg-config libpng >= 1.2.9)
  (requires libpng-1.2.9 or later)
support 8bpp PNG quantisation:          yes
  (requires libimagequant)
file import/export with libtiff:        yes (pkg-config libtiff-4)
file import/export with giflib:         yes (found by search)
file import/export with libjpeg:        yes (pkg-config)
image pyramid export:                   yes
  (requires libgsf-1 1.14.26 or later)
use libexif to load/save JPEG metadata: yes

但是当尝试执行make时,我得到了这个:

svgload.c:377:10: fatal error: librsvg/librsvg-features.h: No such file or directory
  377 | #include <librsvg/librsvg-features.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.
make[3]: *** [Makefile:694: svgload.lo] Error 1
make[3]: Leaving directory '/home/Marco Moreno/dd/vips-8.9.2/libvips/foreign'
make[2]: *** [Makefile:875: all-recursive] Error 1
make[2]: Leaving directory '/home/Marco Moreno/dd/vips-8.9.2/libvips'
make[1]: *** [Makefile:629: all-recursive] Error 1
make[1]: Leaving directory '/home/Marco Moreno/dd/vips-8.9.2'
make: *** [Makefile:536: all] Error 2

我尝试将librsvg / rsvg-features.h名称更改为librsvg / librsvg-features.h,并且文件在此路径上:“C:\msys64\ucrt64\include\librsvg-2.0\librsvg”

我将不胜感激您的帮助。

执行配置时,我也收到以下警告:

configure: WARNING: Libtool does not cope well with whitespace in `pwd`
C++ msys2 libtool vips librsvg

评论

0赞 HolyBlackCat 12/29/2022
“Libtool 不能很好地处理空格”这意味着您的构建目录在路径中包含空格。尝试一个没有它们的人。
0赞 jcupitt 12/30/2022
这里有一个官方的 64 位 8.9.2 版本 fwiw: github.com/libvips/build-win64-mxe/releases/tag/v8.9.2
0赞 jcupitt 12/30/2022
...虽然我会构建最新版本。8.9.2 快三年了。
0赞 Marco Moreno 12/30/2022
多亏了@HolyBlackCat“Libtool 不能很好地处理空格”是用没有空格的路径解决的。但是“make”执行仍然有相同的错误。
0赞 Marco Moreno 12/30/2022
您好@jcupitt,我正在尝试在 UCRT64 中生成“make”,因为该项目正在从该系统中获取所有库,我不知道为什么该项目无法识别您建议的 64 位构建。环境变量中的路径如下:C:\vips-dev-8.9\bin。

答: 暂无答案