Closed jessebot closed 1 year ago
For the detection to work you need one of the following files:
/usr/lib/pkgconfig/MagickCore-6.Q16HDRI.pc
/usr/lib/pkgconfig/MagickCore-6.Q16
/usr/lib/pkgconfig/MagickCore-6.pc
/usr/lib/imagemagick6/pkgconfig/MagickCore-6.Q16HDRI.pc
/usr/lib/imagemagick6/pkgconfig/MagickCore-6.Q16
/usr/lib/imagemagick6/pkgconfig/MagickCore-6.pc
/usr/share/cmake/Modules/FindImageMagick6.cmake
The one you should have depends on your distribution. On debian, try looking for a -dev
package for imagemagick.
It doesn't look like there is one for apt :(
I see this but I don't think it's what I want because it says 1.4:
graphicsmagick-libmagick-dev-compat/testing 1.4+really1.3.40-4 all
image processing libraries providing ImageMagick interface
I tried installing it anyway, and it resulted in some more libraries being detected but it didn't work for imagemagick:
cmake ..
-- Build type: Release
-- Threads type: pthread
-- Target dirs: ROOT="" USR="/usr" HOME="/home" ETC="/etc"
-- Library: missing: LIBPCI
-- Library: missing: VULKAN
-- Library: missing: WAYLAND
-- Library: missing: XCB_RANDR
-- Library: found XCB
-- Library: missing: XRANDR
-- Library: found X11
-- Library: missing: GIO
-- Library: missing: DCONF
-- Library: missing: DBUS
-- Library: missing: XFCONF
-- Library: missing: SQLITE3
-- Library: missing: RPM
-- Library: missing: IMAGEMAGICK7
-- Library: missing: IMAGEMAGICK6
-- Library: found ZLIB
-- Library: missing: CHAFA
-- Library: missing: EGL
-- Library: missing: GLX
-- Library: missing: OSMESA
-- Library: missing: OPENCL
-- Library: missing: LIBNM
-- Library: missing: PULSE
-- Library: missing: LIBCJSON
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/fastfetch/build
I am really trying to avoid also compiling imagemagick from source. I do see C++ packages that say dev
but I don't think that's what we want?
I got it! I found the libmagickcore-dev
the search terms I was using were bad. I was apt searching for imagemagick-dev
instead of magickcore-dev
. Sorry about the confusion!
For anyone compiling from source, these are the two libraries I installed with apt on Debian Bookworm:
imagemagick
, libmagickcore-dev
update:
Apparently you can just install libmagickcore-dev
, and you don't need to also install imagemagick
🎉
General description of bug:
First of all, thanks again to the maintainers for continuing to work on this project. I use fastfetch literally every single day and it really helps me find my way around when I'm popping in and out of SSH sessions. Also noting that directly on macOS Ventrua on both intel/arm processors + on Debian Bookworm x86_64 metal/docker containers, images are working as expected since I install via brew or linuxbrew.
The issue seems to be when trying to compile fastfetch from source on Linux aarch. I recently got an M1 mac, so I am using an arm processor, and that means to make a docker container run smoothly, I need to build containers with
--platform linux/arm64
and brew doesn't support arm on linux. This means I need to build from source for arm containers, and this is from my Dockerfile:Just before that, I run an
apt install -y pkg-config
here, and then I run onboardme to install imagemagick with apt which on Debian bookworm uses imagemagick 6.9 and you can see that here:But when I try again to compile from source, it doesn't see the package:
sixel is definitely working, as when I use it to view an image, it does work:
Is there something I missed in the build process? Should I be passing in any flags? You are free to grab and build this Dockerfile on an M1 if you think it would help, but it is just using the
debian:bookworm-slim
base from dockerhub.I tried looking for imagemagick with find and this is what I got:
Often helpful questions:
The following outputs are all wrong, and I'm not sure why, but I will post them anyway:
Output of
fastfetch --version
:Output of
fastfetch --load-config devinfo
:Output of
fastfetch --load-config devinfo-verbose
:Output of
fastfetch --list-features
:Here's my current config:
```conf # Fastfetch configuration # Write every argument in different lines. # Direct arguments will overwrite the corresponding ones in this file. # Argument keys are not case sensitive. # Whitespaces are trimmed at the beginning and the end. # Empty lines or lines starting with # are ignored. # This file was shipped with 1.8.1. # Use fastfetch --print-config-user > ~/.config/fastfetch/config.conf to overwrite this file with the current defaults # Below some often usefull options are listed. Uncomment and modify them so they take affect. # Note that there are a lot more options than the ones listed here, take a look at "fastfetch --help". # Of course all of them can be made persistent here too. # Config option: # Load additional config files. # Some are shipped with fastfetch, list them with "fastfetch --list-presets". # Must be a path to a config file or the name of a shipped preset. # The config file is completly loaded before continuing in the current file, so the placement of this option matters, as later options overwrite already set ones. # Can be used multiple times to load multiple config files / presets. #--load-config /path/to/config.txt # Structure option: # Sets the modules to use and their order. # Must be a list of module names, separated by colons. # List available modules with "fastfetch --list-modules". # Get the default structure with "fastfetch --print-structure". --structure Break:Break:Title:Separator:OS:Uptime:GPU:CPU:Memory:Disk:Break:Colors:Break # Multithreading option: # Sets if fastfetch should use multiple threads to detect the values. # Must be true or false. # Default is true. --multithreading true # Print stat option: # Sets if fastfetch should print time usage (in ms) for individual modules # If true, it will also enable --show-errors # Must be true or false. # Default is false. #--stat true # Slow operations option: # Sets if fastfetch is allowed to use known slow operations to detect more / better values. # Must be true or false. # Default is false. #--allow-slow-operations false # Linewrap option: # Sets if fastfetch should disable linewrap during the run. # Must be true or false. # Default is true. #--disable-linewrap true # Cursor option: # Sets if fastfetch should hide the console cursor during the run. # Must be true or false. # Default is true. #--hide-cursor true # Logo option: # Sets the logo to use. # List available logos with "fastfetch --list-logos". # Print available logos with "fastfetch --print-logos". # Must be the name of an available logo or a path to a text file containing a custom logo. # Default is the current distribution. --logo spacechalkwhale.jpg # Logo type option: # Sets the logo type to use. # Must be auto, builtin, file, file-raw, data, data-raw, sixel, kitty or chafa. # Default is auto. --logo-type sixel # Logo width option: # Sets the width of the logo (in characters) if the logo is an image. # Must be a positive integer. # Default is 65. --logo-width 29 # Logo height option: # Sets the height of the logo (in characters) if the logo is an image. # Must be a positive integer. # Default is 0 (keeps aspect ration). --logo-height 13 # Logo color options: # Overwrite a color in the logo. Also works for user provided logos. # In the user logo, they replace $[1-9]. Use $$ to print a single $ sign. # Must be linux console color codes or the name of a color. # Default is the one specified by the logo. # Use "fastfetch --help color" to learn more and see examples. # Valid index range is [1-9]. #--logo-color-1 red #--logo-color-2 32 # [...] #--logo-color-9 yellow # Logo padding option: # Adds a padding to the left and the right side of the logo. # Must be a positive integer. # Default is 0. #--logo-padding 0 # Logo padding left option: # Adds a padding to the left side of the logo. # Must be a positive integer. # Default is 0. --logo-padding-left 1 # Logo padding right option: # Adds a padding to the right side of the logo. # Must be a positive integer. # Default is 0. #--logo-padding-right 0 # Logo print remaining option: # Sets if the remaining logo should be printed, it is has more lines than modules to show. # Must be true or false. Default is true. # --logo-print-remaining true # Color keys option: # Sets the color of the keys. # Must be linux console color codes or the name of a color. # Default is the key color of the logo. # Use "fastfetch --help color" to learn more and see examples. --color-keys magenta # Color title option: # Sets the color of the title. # Must be linux console color codes or the name of a color. # Default is the title color of the logo. # Use "fastfetch --help color" to learn more and see examples. --color-title blue # Binary prefix option: # Sets the binary prefix to use. # Must be a IEC, SI or JEDEC. # Default is IEC. #--binary-prefix IEC # Title FQDN option: # Sets if the title should use the fully qualified domain name. # Must be true or false. # Default is false. #--title-fqdn false # Separator option: # Sets the string placed between a key and its value. # Can be any string. # Default is ": ". #--separator ": " # Separator string option: # Sets the string printed by the "separator" module (usually between title and rest of output) # Must be any string. It is repated / cut to fit perfectly. # Default is "-" #--separator-string - # Public IP URL option: # Sets the URL of public IP detection server to be used. # Only HTTP protocol is supported, and the value should not contain "http://" prefix. # Default is "ipinfo.io/ip". #--public-ip-url "ipinfo.io/ip" # Public IP timeout option: # Sets the time to wait for the public ip server to respond. # Must be a positive integer. # Default is 0 (disabled). #--public-ip-timeout 0 # Weather output format option: # Sets the weather format to be used. It must be URI encoded. # See: https://github.com/chubin/wttr.in#one-line-output # Default is "%t+-+%C+(%l)". #--weather-output-format "%t+-+%C+(%l)" # Weather timeout option: # Sets the time to wait for the weather server (wttr.in) to respond. # Must be a positive integer. # Default is 0 (disabled). #--weather-timeout 0 # OS file option # Sets the path to the file containing the operating system information. # Should be a valid path to an existing file. # Default is /etc/os-release. #--os-file /etc/os-release # Player name option # Sets the name of the player. This is also used in song detection # Must be the exact name of the player or a dbus address (e.g. org.mpris.MediaPlayer2.spotify) # Default is the first match starting with org.mpris.MediaPlayer2. #--player-name spotify # Escape bedrock option # Sets if fastfetch should escape the bedrock jail, if it detectes that it is running in one # Must be true or false. # Default is true. #--escape-bedrock true # GL option # Sets with opengl context creation library to use # Must be either auto, egl, glx or osmesa # Default is auto. #--gl auto # Percentage output type option # Applies to all modules that prints percentage values. Currently memory, swap, disk, battery and CPU usage are supported. # Only works with default format ( without --module-format option ). # 0: prints none; 1: prints percent number only; 2: prints bar only; 3: prints both percent number and bar #--percent-type 1 # Key options: # Sets the displayed key of a module # Can be any string. Some of theme take an argument like a format string. See "fastfetch --help format" for help. #--os-key OS #--host-key Host #--chassis-key Chassis #--kernel-key Kernel #--uptime-key Uptime #--processes-key Processes #--packages-key Packages #--shell-key Shell #--resolution-key Resolution {1} #--de-key DE #--wm-key WM #--wm-theme-key WM Theme #--theme-key Theme #--icons-key Icons #--font-key Font #--cursor-key Cursor #--terminal-key Terminal #--terminal-font-key Terminal Font #--cpu-key CPU #--cpu-usage-key CPU Usage #--gpu-key GPU {1} #--memory-key Memory #--swap-key Swap #--disk-key Disk ({1}) #--battery-key Battery {1} #--poweradapter-key Power Adapter {1} #--locale-key Locale #--local-ip-key Local IP ({1}) #--public-ip-key Public IP #--wifi-key Wifi #--weather-key Weather #--player-key Media Player #--media-key Media #--datetime-key Date Time #--vulkan-key Vulkan #--opengl-key OpenGL #--opencl-key OpenCL #--users-key Users # Format options: # Sets the format string for module values. # For information on format strings, see "fastfetch --help format". # To see the parameter they take and their default value, see "fastfetch --help *-format", e.g. "fastfetch --help os-format". # An empty format string (As they are currently below) will behave as if it was not set. #--os-format #--host-format #--chassis-format #--kernel-format #--uptime-format #--processes-format #--packages-format #--shell-format #--resolution-format #--de-format #--wm-format #--wm-theme-format #--theme-format #--icons-format #--font-format #--cursor-format #--terminal-format #--terminal-font-format #--cpu-format #--cpu-usage-format #--gpu-format #--memory-format #--swap-format #--disk-format #--battery-format #--poweradapter-format #--locale-format #--local-ip-format #--public-ip-format #--weather-format #--player-format #--media-format #--datetime-format #--vulkan-format #--opengl-format #--opencl-format #--users-format # Error options: # Sets the format string to use if an error occured # For information on format strings, see "fastfetch --help format". # Each of them take the error as first and only argument. # If one of them is set, the module will appear, even if --show-errors is not given. #--os-error #--host-error #--chassis-error #--kernel-error #--uptime-error #--processes-error #--packages-error #--shell-error #--resolution-error #--de-error #--wm-error #--wm-theme-error #--theme-error #--icons-error #--font-error #--cursor-error #--terminal-error #--terminal-font-error #--cpu-error #--cpu-usage-error #--gpu-error #--memory-error #--swap-error #--disk-error #--battery-error #--poweradapter-error #--locale-error #--local-ip-error #--public-ip-error #--weather-error #--player-error #--media-error #--datetime-error #--vulkan-error #--opengl-error #--opencl-error #--users-error # Library options: # Sets an user specific path to a library to load. # Must be a valid path to a library. #--lib-PCI /usr/lib/libpci.so #--lib-vulkan /usr/lib/libvulkan.so (libMoltenVK.dylib on macOS) #--lib-wayland /usr/lib/libwayland-client.so #--lib-xcb-randr /usr/lib/libxcb-randr.so #--lib-xcb /usr/lib/libxcb.so #--lib-Xrandr /usr/lib/libXrandr.so #--lib-X11 /usr/lib/libX11.so #--lib-gio /usr/lib/libgio-2.0.so #--lib-DConf /usr/lib/libdconf.so #--lib-DBus /usr/lib/libdbus-1.so #--lib-XFConf /usr/lib/libxfconf-0.so #--lib-sqlite3 /usr/lib/libsqlite3.so #--lib-rpm /usr/lib/librpm.so #--lib-imagemagick /usr/lib/libMagickCore-7.Q16HDRI.so #--lib-z /usr/lib/libz.so #--lib-chafa /usr/lib/libchafa.so #--lib-egl /usr/lib/libEGL.so #--lib-glx /usr/lib/libGLX.so #--lib-osmesa /usr/lib/libOSMesa.so #--lib-opencl /usr/lib/libOpenCL.so #--lib-cjson /usr/lib/libcjson.so #--lib-freetype /data/data/com.termux/files/usr/lib ```/home/friend/.config/fastfetch/config.conf
If I remove my config.conf, It shows more info, but still won't let me pass in flags: