obsproject / obsproject/obs-studio

FreeBSD: error: call to undeclared function 'nvenc_device_available'

Open
#10,976 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
76.4k
Forks
10.2k
Avg merge
4d 23h
Merged PRs (30d)
12

Description

Operating System Info

Other

Other OS

FreeBSD 14.1

OBS Studio Version

30.2.0

OBS Studio Version (Other)

No response

OBS Studio Log URL

n/a

OBS Studio Crash Log URL

No response

Expected Behavior

n/a

Current Behavior

Due to inconsistent ifdefs the build fails:

/usr/ports/multimedia/obs-studio/work/obs-studio-30.2.0/plugins/obs-ffmpeg/obs-ffmpeg.c:275:13: error: call to undeclared function 'nvenc_device_available'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
  275 |                 success = nvenc_device_available() && load_nvenc_lib();
      |                           ^
1 error generated.
Steps to Reproduce

Regular build.

Anything else we should know?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in plugins/obs-ffmpeg/obs-ffmpeg.c around line 275 and inspect the conditional-compilation paths involving nvenc_device_available. Reproduce the regular OBS Studio 30.2.0 build on FreeBSD 14.1, then verify that the build completes without the undeclared-function error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.