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

[Bug]: libaom-dev, libaom-devel, libdav1d-dev, dav1d-devel, libdav1d-devel libraries from distribution not found by CMakeLists.txt and FindAom.cmake (OBS Build Service) #45

Open
leukimi opened this issue Jan 2, 2024 · 0 comments
Labels

Comments

@leukimi
Copy link

leukimi commented Jan 2, 2024

Context

Compiling stand-alone with OBS Build Service, libaom-dev and libdav1d-dev development files is reported not found, although installed on the system from repository.

[   34s] -- Could NOT find Dav1d (missing: Dav1d_TARGET) 
[   34s] CMake Warning at CMakeLists.txt:414 (message):
[   34s]   Could not find dav1d, mediastreamer2 will be compiled without AV1 support.
[   34s] 
[   34s] 
[   34s] -- Could NOT find Aom (missing: Aom_TARGET) 
[   34s] CMake Warning at CMakeLists.txt:419 (message):
[   34s]   Could not find aom, mediastreamer2 will be compiled without AV1 support.

Compiling as a bundle on OBS Build Service, those development libraries are found.

[  140s] -- Found Dav1d: libdav1d  
[  140s] -- Found Aom: aom  

It seems that aom and dav1d development files [ -dev or -devel ] is only searched for in the build directory cmake file location, not in the system package install location. In FindAom.cmake there seems to be a mismatch with "_Aom*" vs "Aom*" . /usr/lib64, /usr/lib/x86_64-linux-gnu are other places where aom might install its library.

	find_path(Aom_INCLUDE_DIRS
		NAMES aom/aomcx.h
		HINTS _Aom_ROOT_PATHS
		PATH_SUFFIXES include
	)

	find_library(Aom_LIBRARY
		NAMES aom
		HINTS _Aom_ROOT_PATHS
		PATH_SUFFIXES bin lib lib/Win32
	)

	if(_Aom_INCLUDE_DIRS AND _Aom_LIBRARY)

Log Archlinux
Log openSUSE Tumbleweed
Log Fedora 39
Log Ubuntu 22.04

General information

  • Device: OBS Build Service build robot
  • OS: Ubuntu 22.04, openSUSE Tumbleweed, Fedora 39, Archlinux ... etc.
  • Version of the App: 5.2.0
  • Version of the SDK: corresponding (mediastreamer2 v5.3.1)

Expected behaviour

I wanted to add aom AV1 video encoder/decoder.

To Reproduce

  1. Go to package page

Additional context

No response

SDK logs URL

No response

@leukimi leukimi added the bug label Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant