Open codeapparat opened 8 months ago
Read the README.md and search for similar issues before posting a bug report!
Duplicate of #704 #725 #730
Please upgrade to a newer version of your distro.
@imwints Maybe getting four duplicates of the same issue means the use case is not as unusual as was initially thought?
For reference, I solved this issue by adding the line:
target_link_libraries(btop dl)
To the linking section towards the end of CMakeLists.txt
@arubin See #725 :wink:
Describe the bug Can't compile btop under Ubuntu 20.04, using g++ 13.2.0, it fails at linking time. When typing
make
I get:PLATFORM ?| Linux ARCH ?| x86_64 GPU_SUPPORT :| true CXX ?| /opt/gcc-13.2.0/bin/g++ (13.2.0) THREADS :| 6 REQFLAGS !| -std=c++20 WARNFLAGS :| -Wall -Wextra -pedantic OPTFLAGS :| -O2 -ftree-vectorize -flto=6 LDCXXFLAGS :| -pthread -DFMT_HEADER_ONLY -D_GLIBCXX_ASSERTIONS -D_FILE_OFFSET_BITS=64 -fexceptions -fstack-clash-protection -fcf-protection -fstack-protector -DGPU_SUPPORT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 CXXFLAGS +| $(REQFLAGS) $(LDCXXFLAGS) $(OPTFLAGS) $(WARNFLAGS) LDFLAGS +| $(LDCXXFLAGS) $(OPTFLAGS) $(WARNFLAGS)
Building btop++ (v1.3.2) Linux x86_64 Command 'lowdown' not found: skipping generating man page btop.1 ... Configuring obj/config.h Compiling src/btop.cpp Compiling src/btop_menu.cpp Compiling src/btop_input.cpp Compiling src/btop_shared.cpp Compiling src/btop_draw.cpp ... Linking and optimizing binary... /usr/bin/ld: /tmp/ccj2IUfF.ltrans17.ltrans.o: in function `Shared::init()':