Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cmake, libmodule not found #94

Closed
noice78 opened this issue Jan 1, 2023 · 3 comments
Closed

Cmake, libmodule not found #94

noice78 opened this issue Jan 1, 2023 · 3 comments

Comments

@noice78
Copy link

noice78 commented Jan 1, 2023

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
Copy link
Owner

FedeDP commented Jan 1, 2023

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
Copy link
Author

noice78 commented Jan 4, 2023

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
Copy link
Owner

FedeDP commented Jan 4, 2023

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

@noice78 noice78 closed this as completed Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants