obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
57.22k stars 7.72k forks source link

Fails to build against new libajantv2 #10771

Open bwarden opened 1 month ago

bwarden commented 1 month ago

Operating System Info

Other

Other OS

Clear Linux OS

OBS Studio Version

30.1.2

OBS Studio Version (Other)

No response

OBS Studio Log URL

not in application

OBS Studio Crash Log URL

No response

Expected Behavior

Compiles against libajantv2-17.0.1

Current Behavior

Fails to find header file ntv2linuxdriverinterface.h

Steps to Reproduce

  1. Compile against system-provided libajantv2
  2. ...

Anything else we should know?

Variable names AJA_LIBRARIES_INCLUDE_DIRS, LIBAJANTV2_INCLUDE_DIRS, and LibAJANTV2_INCLUDE_DIRS are used inconsistently in the cmake file, dropping the OS-specific path appends https://github.com/obsproject/obs-studio/blob/52ae5fc4bd518c67edd8ab94121ace05d9076892/cmake/Modules/FindLibAJANTV2.cmake#L135-L152

from the final list of include directories: https://github.com/obsproject/obs-studio/blob/52ae5fc4bd518c67edd8ab94121ace05d9076892/cmake/Modules/FindLibAJANTV2.cmake#L171

Here is a patch to fix the naming: backport-Fix-AJANTV2-includes-in-backport-patch.patch

RytoEX commented 1 month ago

cc @paulh-aja @PatTheMav

However, please note that this finder is in the old CMake path, which is deprecated and due for removal.

Also, if you have a proposed patch, submitting a PR would be more appropriate.

tytan652 commented 1 month ago

Your are trying to compile OBS 30.1.2 against libajantv2 17 ? 30.1.2 only support 16.x.

If this is the case, this is not a bug and neither an issue.

marillat commented 3 weeks ago

30.2.0~beta3 also need libajantv2 16