FedeDP / Clightd

A linux bus interface that lets you change screen brightness, compute captured webcam frames brightness and change screen temperature.
GNU General Public License v3.0
83 stars 10 forks source link

Cmake, libmodule not found #94

Closed noice78 closed 1 year ago

noice78 commented 1 year ago

I am using Debian testing and during Cmake checks, libmodule is not recognised:

% cmake \                                                                                                                                                                                                                     =76%
    -G "Unix Makefiles" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DCMAKE_BUILD_TYPE="Release" \
    -DENABLE_DDC=1 -DENABLE_GAMMA=1 -DENABLE_DPMS=1 -DENABLE_SCREEN=1 -DENABLE_YOCTOLIGHT=1 \
    ..
-- The C compiler identification is GNU 12.2.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
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.0") 
-- Checking for modules 'libudev;libmodule>=5.0.0;libjpeg'
--   Package 'libmodule', required by 'virtual:world', not found
CMake Error at /usr/share/cmake-3.25/Modules/FindPkgConfig.cmake:607 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.25/Modules/FindPkgConfig.cmake:829 (_pkg_check_modules_internal)
  CMakeLists.txt:34 (pkg_check_modules)

-- Configuring incomplete, errors occurred!

Though, everything seems installed:

% apt list --installed | grep libmodule                                                                                                                                                                                       =76%

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libmodule-find-perl/testing,unstable,now 0.16-2 all [installed,automatic]
libmodule-implementation-perl/testing,unstable,now 0.09-2 all [installed,automatic]
libmodule-pluggable-perl/testing,unstable,now 5.2-4 all [installed,automatic]
libmodule-runtime-conflicts-perl/testing,unstable,now 0.003-2 all [installed,automatic]
libmodule-runtime-perl/testing,unstable,now 0.016-2 all [installed,automatic]
libmodule-scandeps-perl/testing,unstable,now 1.31-2 all [installed,automatic]
libmodule/now 6.0.0 amd64 [installed,local]

Am I missing something?

FedeDP commented 1 year ago

Hi! Thanks for opening this issue! Did you build libmodule from master? 6.0.0 is the development version; i advise you to build latest tag instead!

noice78 commented 1 year ago

Hi, thank you for your prompt response, and sorry for the late reply. Yes, it looks like I am already on master:

% git checkout master                                                                                                                                                                                                             v54%
Already on 'master'
Your branch is up to date with 'origin/master'.
FedeDP commented 1 year ago

Yep, you should use latest tag instead (5.0.1) since 6.0.0 is still a dev version and has many API breaks ;)