Hello.
I'm attempting to build Polybar on Fedora 25. CMake returns:
-- The C compiler identification is GNU 6.3.1
-- The CXX compiler identification is GNU 6.3.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- No build type specified; using RelWithDebInfo
-- Using supported compiler GNU-6.3.1
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Checking for module 'cairo-fc'
-- No package 'cairo-fc' found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:424 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPkgConfig.cmake:597 (_pkg_check_modules_internal)
cmake/common/utils.cmake:235 (pkg_check_modules)
cmake/03-libs.cmake:8 (querylib)
CMakeLists.txt:17 (include)
I have installed all packages listed under the dependencies header.
sudo dnf install cairo reports Package cairo-1.14.8-1.fc25.x86_64 is already installed, skipping.
Help would be greatly appreciated. Thank you!
Try installing cairo-devel or cairo-dev
Closing due to inactivity.
In case if anyone reached here for error faced in Ubuntu:
Use the below command to have cairo installed on Ubuntu.
sudo apt-get install libcairo2-dev
Reference: https://www.cairographics.org/download/
Recently ran into a similar issue. I traced the segfault back to missing libcairo2-dev.
Dug a bit deeper to find that my recent install of Firefox 58 upgraded libfontconfig1 to version 2.12. Libfontconfig1-dev (on which libcairo2-dev depends) requires libfontconfig1-dev version 2.11.0-6.7+b1.
I'm currently running an older version of Firefox, as Quantum requires 2.12 fontconfig1. Has anyone found a way around this?
Most helpful comment
In case if anyone reached here for error faced in
Ubuntu:Use the below command to have cairo installed on Ubuntu.
sudo apt-get install libcairo2-devReference: https://www.cairographics.org/download/