0

我需要让 X11 在 Mac 上运行,或者在没有 X11 的情况下运行 ImageMagick。

将 Xcode 升级到 12.4 后,我首先注意到 ImageMagick 显示挂起。

我重新启动了机器。它开始时没有 XQuartz。然后我无法使用 Applications/Utilities 中的 XQuartz 图标重新打开它。我可以从终端启动 XQuartz,但它会立即再次关闭。

在“brew upgrade xquartz”之后,我有一个可以从终端运行并保持正常运行的版本,但是 xclock 和其他基本的 X11 工具无法运行。

'echo $DISPLAY' 给出... /private/tmp/com.apple.launchd.XGhnBj01N9/org.xquartz:0

我通过 ./configure --with-modules 'make test' 从源代码重新构建了 ImageMagick。

我使用的是 2013 年末的 MacBook Pro,运行 Big Sur 11.3。

附录:

这个问题似乎有两个版本:我将 XTools 更正为 Xcode 并添加了后记,但它不在此处。奇怪的。

X11 曾一度需要 --with-modules。这已经改变了好几次。我也尝试过构建它。它在停止工作之前正在工作 --with-modules 。我也尝试过“自制”安装。

4 月 25 日,Xquartz 发布了一个新的 Mac 版本,与之前的 2.8.1 编号相同。那是关于 Xcode 11.4 更新发生的日期。我试过了,但没有帮助。

如果我导出 DISPLAY=:0,我可以让“时钟”工作,但这对 ImageMagick 没有帮助,并且可能会破坏其他东西。

感谢 Mark Setchell 给了我一些新的尝试。我用 ./configure --with-x 构建。这似乎与我的其他构建相同。当您在终端中运行 Xquartz,然后运行构建时,似乎发生了大约 10 秒钟的事情(终端选项卡中有进度),然后它停止但什么也没有出现。我可以重置 DISPLAY,但这似乎除了 xclock 之外没有任何帮助。10 秒也比以前直接弹出的东西慢,即使是大图像(我正在测试的图像很小)。

我知道 Homebrew 已经停止支持可配置的构建:它只是在某些标准状态下为您提供 ImageMagic,除非您在另一个名称下找到它(就像 d12frosted/emacs-plus 对 emacs 所做的那样)。

5月6日回复

我的 ImageMagick 结帐是上周末从 SourceForge 克隆的。这是用...构建的。 make clean ./configure --with-x --with-quantum-depth=32 make sudo make install

识别 -list 配置给出了这个......

路径:/usr/local/lib/ImageMagick-7.0.11//config-Q32HDRI/configure.xml

名称 值

CC gcc CFLAGS -I/usr/local/Cellar/webp/1.2.0/include -I/usr/local/Cellar/webp/1.2.0/include -I/usr/local/Cellar/libraw/0.20.2/包括/libraw -I/usr/local/Cellar/libraw/0.20.2/include -I/usr/local/Cellar/little-cms2/2.12/include -I/usr/local/Cellar/libpng/1.6.37/包括/libpng16 -I/usr/local/Cellar/libffi/3.3_3/include -I/usr/local/Cellar/pango/1.48.4/include/pango-1.0 -I/usr/local/Cellar/harfbuzz/2.8 .0_1/include/harfbuzz -I/usr/local/Cellar/pango/1.48.4/include/pango-1.0 -I/usr/local/Cellar/glib/2.68.1/include -I/usr/local/Cellar /fribidi/1.0.10/include/fribidi -I/usr/local/Cellar/harfbuzz/2.8.0_1/include/harfbuzz -I/usr/local/Cellar/graphite2/1.3.14/include -I/usr/local /Cellar/cairo/1.16.0_5/include/cairo -I/usr/local/Cellar/glib/2.68.1/include -I/usr/local/Cellar/glib/2.68.1/include/glib-2。0 -I/usr/local/Cellar/glib/2.68.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.44/include - I/usr/local/Cellar/pixman/0.40.0/include/pixman-1 -I/usr/local/Cellar/fontconfig/2.13.1/include -I/usr/local/opt/freetype/include/freetype2 -我/usr/local/Cellar/libpng/1.6.37/include/libpng16 -I/usr/local/Cellar/libxcb/1.14_1/include -I/usr/local/Cellar/libxrender/0.9.10/include -I /usr/local/Cellar/libxext/1.3.4/include -I/usr/local/Cellar/libx11/1.7.0/include -I/usr/local/Cellar/libxcb/1.14_1/include -I/usr/ local/Cellar/libxau/1.0.9/include -I/usr/local/Cellar/libxdmcp/1.1.3/include -I/usr/local/Cellar/xorgproto/2021.3/include -I/usr/local/Cellar/ openexr/2.5.5/include/OpenEXR -I/usr/local/Cellar/ilmbase/2.5.5/include -I/usr/local/Cellar/ilmbase/2.5.5/include/OpenEXR -I/usr/local/地窖/xz/5.2。5/include -I/usr/local/Cellar/liblqr/0.4.2_1/include/lqr-1 -I/usr/local/Cellar/glib/2.68.1/include/glib-2.0 -I/usr/local/地窖/glib/2.68.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.44/include -I/usr/local/Cellar/ openjpeg/2.4.0/include/openjpeg-2.4 -I/usr/local/Cellar/little-cms2/2.12/include -I/usr/local/Cellar/libheif/1.11.0_2/include -I/usr/local/ Cellar/aom/3.0.0/include -I/usr/local/Cellar/libde265/1.0.8/include -I/usr/local/Cellar/x265/3.5/include -I/usr/local/Cellar/graphviz/ 2.47.1/include/graphviz -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/fontconfig/2.13。1/include -I/usr/local/opt/freetype/include/freetype2 -Wall -g -O2 -mtune=haswell -fexceptions -D_FORTIFY_SOURCE=0 -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=32 CODER_PATH /usr/local/lib /ImageMagick-7.0.11/modules-Q32HDRI/coders CONFIGURE ./configure '--with-x' '--with-quantum-depth=32' 'PKG_CONFIG_PATH=/usr/local/opt/icu4c/lib/pkgconfig'CONFIGURE_PATH /usr/local/etc/ImageMagick-7/ COPYRIGHT 版权所有 (C) 1999-2021 ImageMagick Studio LLC CPPFLAGS -I/usr/local/include/ImageMagick-7 CXX g++ CXXFLAGS -pthread DEFS -DHAVE_CONFIG_H DELEGATES bzlib fontconfig freetype heic jng jpeg lcms lqr lzma openexr openjp2 pango png ps raw tiff video webp x xml zlib zstd DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=32 --with-jemalloc=no --with-umem=no --with- autotrace=no --with-fftw=no --with-gslib=no --with-fontpath= --with-jxl=no --with-rsvg=no --with-wmf=no --with-perl=没有 DOCUMENTATION_PATH /usr/local/share/doc/ImageMagick-7 EXEC-PREFIX /usr/local EXECUTABLE_PATH /usr/local/bin FEATURES DPC HDRI Cipher FILTER_PATH/usr/local/lib/ImageMagick-7.0.11/modules-Q32HDRI/filters GIT_REVISION 18654:5bf34ccb1:20210425 HOST x86_64-apple-darwin20.4.0 INCLUDE_PATH /usr/local/include/ImageMagick-7 LDFLAGS -L/usr/local /lib
LIB_VERSION 0x70B LIB_VERSION_NUMBER 7,0,11,10 LIBRARY_PATH /usr/local/lib/ImageMagick-7.0.11 LIBS -L/usr/local/Cellar/little-cms2/2.12/lib -llcms2 -ltiff -L/usr/local /opt/freetype/lib -lfreetype -ljpeg -L/usr/local/Cellar/glib/2.68.1/lib -L/usr/local/opt/gettext/lib -llqr-1 -lglib-2.0 -lintl -L /usr/local/Cellar/libpng/1.6.37/lib -lpng16 -lz -L/usr/local/Cellar/fontconfig/2.13.1/lib -L/usr/local/opt/freetype/lib -lfontconfig -lfreetype -L/usr/local/Cellar/libheif/1.11.0_2/lib -lheif -L/usr/local/Cellar/webp/1.2.0/lib -lwebpmux -lwebpdemux -lwebp -L/usr/local/Cellar/webp /1.2.0/lib -lwebp -lXext -lX11 -L/usr/local/Cellar/xz/5.2.5/lib -llzma -lbz2 -L/usr/local/Cellar/openexr/2.5.5/lib -L /usr/local/Cellar/ilmbase/2.5.5/lib -lIlmImf-2_5 -lImath-2_5 -lHalf-2_5 -lIex-2_5 -lIexMath-2_5 -lIlmThread-2_5 -L/usr/local/Cellar/openjpeg/2.4.0/lib -lopenjp2 -L/usr/ local/Cellar/pango/1.48.4/lib -L/usr/local/Cellar/glib/2.68.1/lib -L/usr/local/opt/gettext/lib -L/usr/local/Cellar/harfbuzz/ 2.8.0_1/lib -L/usr/local/Cellar/cairo/1.16.0_5/lib -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lharfbuzz -lcairo -L/usr/local/ Cellar/libraw/0.20.2/lib -L/usr/local/Cellar/little-cms2/2.12/lib -lraw_r -lstdc++ -llcms2 -lxml2 -L/usr/local/Cellar/graphviz/2.47.1/lib - lgvc -lcgraph -lcdt -lz -lm -lpthread0 -lgobject-2.0 -lglib-2.0 -lintl -lharfbuzz -lcairo -L/usr/local/Cellar/libraw/0.20.2/lib -L/usr/local/Cellar/little-cms2/2.12/lib -lraw_r - lstdc++ -llcms2 -lxml2 -L/usr/local/Cellar/graphviz/2.47.1/lib -lgvc -lcgraph -lcdt -lz -lm -lpthread0 -lgobject-2.0 -lglib-2.0 -lintl -lharfbuzz -lcairo -L/usr/local/Cellar/libraw/0.20.2/lib -L/usr/local/Cellar/little-cms2/2.12/lib -lraw_r - lstdc++ -llcms2 -lxml2 -L/usr/local/Cellar/graphviz/2.47.1/lib -lgvc -lcgraph -lcdt -lz -lm -lpthread
NAME ImageMagick PCFLAGS -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=32 PREFIX /usr/local QuantumDepth 32 RELEASE_DATE 2021-04-24 SHARE_PATH /usr/local/share/ImageMagick-7 SHAREARCH_PATH /usr/local/lib/ImageMagick-7.0.11/config -Q32HDRI TARGET_CPU x86_64 TARGET_OS darwin20.4.0 TARGET_VENDOR 苹果版本 7.0.11 网站 https://imagemagick.org

路径:[内置]

名称 值

代表 bzlib fontconfig freetype gvc heic jng jp2 jpeg lcms lqr lzma openexr pangocairo png raw tiff webp x xml zlib 功能 Cipher DPC HDRI MAGICK_TEMPORARY_PATH /var/folders/rg/4gw1m9bs1d50c9fdrx4s2ysm0000gp/T NAME ImageMagick QuantumDepth Q3

识别 -version 给出...

版本:ImageMagick 7.0.11-10 Q32 x86_64 2021-04-24 https://imagemagick.org 版权所有:(C) 1999-2021 ImageMagick Studio LLC 许可证:https ://imagemagick.org/script/license.php 特点:密码 DPC HDRI 代表(内置): bzlib fontconfig freetype gvc heic jng jp2 jpeg lcms lqr lzma openexr pangocairo png raw tiff webp x xml zlib

4

0 回答 0