Search code examples
cmakeogggentoopkg-config

Can't find ogg with PkgConfig


I'm trying to build secondlife viewer but fail on:

Building 'Second Life Test' Version 3.8.5.34241
-- Found PkgConfig: /usr/bin/x86_64-pc-linux-gnu-pkg-config (found version "0.29") 
-- checking for module 'ogg'
--   package 'ogg' not found

full build log shows that I'm using USESYSTEMLIBS flag, that means that pkg_check_modules(OGG REQUIRED ogg) just doesn't find /usr/lib64/pkgconfig/ogg.pc with some reason...

What could cause such mysterious bug?

(here is CMakeOut log : https://bpaste.net/show/a2fc804afc73)

pkg-config --exists ogg --print-errors returns nothing


Solution

  • seems like just CMake doesn't work right -__-' https://github.com/Techwolf/techwolf-overlay/issues/2#issuecomment-144851500

    This bug is in cmake 3.3.x, downgrade to 3.2.3-r1 will fix it

    everything works with 3.2.3

    -- checking for module 'ogg'
    --   found ogg, version 1.3.2