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

Linux build fails #72

Open
JoakimCh opened this issue Nov 23, 2024 · 3 comments
Open

Linux build fails #72

JoakimCh opened this issue Nov 23, 2024 · 3 comments

Comments

@JoakimCh
Copy link

error: could not build C module 'CFFmpeg'
error: use of undeclared identifier 'AV_CH_LAYOUT_NATIVE'
@gigq
Copy link

gigq commented Nov 28, 2024

This happens on macos 15.2 as well:

SwiftFFmpeg/Sources/CFFmpeg/avutil_shim.h:19:55: error: use of undeclared identifier 'AV_CH_LAYOUT_NATIVE'
17 | 
18 | /* Audio channel layout */
19 | const uint64_t swift_AV_CH_LAYOUT_NATIVE            = AV_CH_LAYOUT_NATIVE;
   |                                                       `- error: use of undeclared identifier 'AV_CH_LAYOUT_NATIVE'
20 | const uint64_t swift_AV_CH_LAYOUT_MONO              = AV_CH_LAYOUT_MONO;
21 | const uint64_t swift_AV_CH_LAYOUT_STEREO            = AV_CH_LAYOUT_STEREO;

SwiftFFmpeg/Sources/SwiftFFmpeg/AVBitStreamFilter.swift:8:8: error: could not build Objective-C module 'CFFmpeg'
  6 | //
  7 | 
  8 | import CFFmpeg
    |        `- error: could not build Objective-C module 'CFFmpeg'
  9 | 
 10 | // MARK: - AVBitStreamFilter 

@kartik-venugopal
Copy link

The channel layout APIs have changed in ffmpeg v7, and either this project has not been updated to be compatible with those new ffmpeg changes OR it has been updated and you guys are using an older version of ffmpeg.

I think you'll need to either modify this code or use a different version of ffmpeg.

@wibed
Copy link

wibed commented Dec 19, 2024

anyone dare to share the build script for further inspection

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

4 participants