fastfetch-cli / fastfetch

An actively maintained, feature-rich and performance oriented, neofetch like system information tool.
MIT License
10k stars 397 forks source link

CMake Build Fails dconf.h: No such file or directory #87

Closed aidan-lemay closed 3 years ago

aidan-lemay commented 3 years ago

Full output shown below, Ubuntu 21.04

aidan@hades:\~/Downloads/fastfetch-master/build$ cmake .. -- The C compiler identification is GNU 10.3.0 -- The CXX compiler identification is GNU 10.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - yes -- Found Threads: TRUE
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") -- Checking for module 'gio-2.0' -- Found gio-2.0, version 2.68.1 -- Checking for module 'dconf' -- No package 'dconf' found -- Configuring done -- Generating done -- Build files have been written to: /home/aidan/Downloads/fastfetch-master/build aidan@hades:\~/Downloads/fastfetch-master/build$ cmake --build . Scanning dependencies of target flashfetch [ 1%] Building C object CMakeFiles/flashfetch.dir/src/flashfetch.c.o [ 2%] Building C object CMakeFiles/flashfetch.dir/src/util/FFstrbuf.c.o [ 3%] Building C object CMakeFiles/flashfetch.dir/src/util/FFlist.c.o [ 4%] Building C object CMakeFiles/flashfetch.dir/src/common/init.c.o [ 5%] Building C object CMakeFiles/flashfetch.dir/src/common/threading.c.o [ 6%] Building C object CMakeFiles/flashfetch.dir/src/common/io.c.o [ 8%] Building C object CMakeFiles/flashfetch.dir/src/common/processing.c.o [ 9%] Building C object CMakeFiles/flashfetch.dir/src/common/logo.c.o [ 10%] Building C object CMakeFiles/flashfetch.dir/src/common/format.c.o [ 11%] Building C object CMakeFiles/flashfetch.dir/src/common/parsing.c.o [ 12%] Building C object CMakeFiles/flashfetch.dir/src/common/settings.c.o /home/aidan/Downloads/fastfetch-master/src/common/settings.c:5:10: fatal error: dconf.h: No such file or directory 5 | #include // Also included gio/gio.h | ^~~~~ compilation terminated. gmake[2]: [CMakeFiles/flashfetch.dir/build.make:212: CMakeFiles/flashfetch.dir/src/common/settings.c.o] Error 1 gmake[1]: [CMakeFiles/Makefile2:97: CMakeFiles/flashfetch.dir/all] Error 2 gmake: *** [Makefile:103: all] Error 2

LinusDierheimer commented 3 years ago

You need to install the headers of libdconf, as noted in the build instructions, in order to compile. The package including those on ubuntu is libdconf-dev.

LinusDierheimer commented 3 years ago

Closing because of inactivity