Skip to content

libavcodec.a(/) is not an object file (not allowed in a library) #9

Open
@jinwuwu001

Description

@jinwuwu001

I compiled the ffmpeg static library locally and when using libtool static to merge multiple static libraries, the following error occurred
libtool -static libffaudio.a /Users/billyjin/Desktop/project/ffaudio/vendor/ffmpeg/mac/arm64/libavcodec.a libavformat.a libavutil.a libswresample.a libswscale.a -o libffaudio.a

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: libavcodec.a(/) is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: libavcodec.a(//) is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: libavformat.a(/) is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: libavutil.a(/) is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: libavutil.a(//) is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: libswresample.a(/) is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: libswresample.a(//) is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: libswscale.a(/) is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: libswscale.a(//) is not an object file (not allowed in a library)
Use ar -t to view the static library members as follows
ar -t libswscale.a
hscale.o
output.o
swscale.o
swscale_unscaled.o
yuv2rgb_neon.o
alphablend.o
gamma.o
hscale.o
hscale_fast_bilinear.o
input.o
options.o
output.o
rgb2rgb.o
slice.o
swscale.o
swscale_unscaled.o
utils.o
vscale.o
yuv2rgb.o

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions