Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To have support for Intel Graphics in btop

Code Block
apt remove -y btop
apt install -y make g++ lowdowninstall make lowdown g++-14 gcc-14 -y
snap remove btop
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 1
update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-14 1
update-alternatives --install /usr/bin/cc cc /usr/bin/cpp-14 1
apt remove -y btop

git clone https://github.com/aristocratos/btop.git
cd btop/
make GPU_SUPPORT=true
make install
update-alternatives --install /usr/bin/btop btop /usr/local/bin/btop 1

#apt remove -y binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-13 cpp-13-x86-64-linux-gnu g++-14 gcc-14 cpp-x86-64-linux-gnu g++ g++-13 g++-13-x86-64-linux-gnu g++-x86-64-linux-gnu gcc gcc-13 gcc-13-base gcc-13-x86-64-linux-gnu gcc-x86-64-linux-gnu libasan8 libatomic1 libbinutils libcc1-0 libctf-nobfd0 libctf0 libgcc-13-dev libgomp1 libgprofng0 libhwasan0 libisl23 libitm1 liblsan0 libmpc3 libquadmath0 libsframe1 libstdc++-13-dev libtsan2 libubsan1 make lowdown
Code Block
make install

 ██████╗ ████████╗ ██████╗ ██████╗
 ██╔══██╗╚══██╔══╝██╔═══██╗██╔══██╗   ██╗    ██╗
 ██████╔╝   ██║   ██║   ██║██████╔╝ ██████╗██████╗
 ██╔══██╗   ██║   ██║   ██║██╔═══╝  ╚═██╔═╝╚═██╔═╝
 ██████╔╝   ██║   ╚██████╔╝██║        ╚═╝    ╚═╝
 ╚═════╝    ╚═╝    ╚═════╝ ╚═╝      Makefile v1.6
PLATFORM     ?| Linux
ARCH         ?| x86_64
GPU_SUPPORT  :| true
CXX          ?| g++ (13.3.0)
CC           ?| cc (13.3.0)
THREADS      :| 22
REQFLAGS     !| -std=c++20
WARNFLAGS    :| -Wall -Wextra -pedantic
OPTFLAGS     :| -O2
LDCXXFLAGS   :| -pthread -DFMT_HEADER_ONLY -D_GLIBCXX_ASSERTIONS -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG -D_FILE_OFFSET_BITS=64 -fexceptions -fstack-clash-protection -fcf-protection -fstack-protector -DGPU_SUPPORT
CXXFLAGS     +| $(REQFLAGS) $(LDCXXFLAGS) $(OPTFLAGS) $(WARNFLAGS)
LDFLAGS      +| $(LDCXXFLAGS) $(OPTFLAGS) $(WARNFLAGS)

Building btop++ (v1.4.5) Linux x86_64

Command 'lowdown' not found: skipping generating man page btop.1
Compiling src/btop_cli.cpp
Compiling src/btop.cpp
Compiling src/linux/btop_collect.cpp
Compiling src/btop_theme.cpp
Compiling src/btop_draw.cpp
Compiling src/btop_tools.cpp
Compiling src/btop_menu.cpp
Compiling src/btop_input.cpp
Compiling src/btop_config.cpp
Compiling src/btop_shared.cpp
8%   -> obj/btop_cli.o                (248KiB) (04s)
16%  -> obj/btop_theme.o              (416KiB) (05s)
24%  -> obj/btop_config.o             (656KiB) (06s)
32%  -> obj/btop_menu.o               (716KiB) (07s)
40%  -> obj/btop.o                    (780KiB) (08s)
49%  -> obj/btop_input.o              (576KiB) (08s)
57%  -> obj/btop_shared.o             (576KiB) (08s)
65%  -> obj/btop_tools.o              (592KiB) (09s)
73%  -> obj/linux/btop_collect.o      (1.3MiB) (12s)
81%  -> obj/btop_draw.o               (1.3MiB) (12s)

Linking and optimizing binary...
100% -> bin/btop                      (2.0MiB) (00s)

Build complete in (13s)
Installing binary to: /usr/local/bin/btop
cp: cannot create regular file '/usr/local/bin/btop': Text file busy
Installing doc to: /usr/local/share/btop
Installing themes to: /usr/local/share/btop/themes
Installing desktop entry to: /usr/local/share/applications/btop.desktop
Installing PNG icon to: /usr/local/share/icons/hicolor/48x48/apps/btop.png
Installing SVG icon to: /usr/local/share/icons/hicolor/scalable/apps/btop.svg


Intel 285H

Image Added

With both GPU and CPU Power in Watts (since btop version: 1.4.4+65c7d0b)

...