Trying to compile ffmpeg 7.1
Hello, I'm trying to compile the latest build of ffmpeg, 7.1 on Devuan (Debian bullseye) Linux. I'm running into some problems. I don't know what to put into the arch argument to configure. I thought, znver2 would be sufficient. But I just get "warning unknown architecture znver2" Is znver2 not supported or am I missing something? Also, I keep getting configure errors specifying that a library doesn't exist, but in reality the error is that stdbit.h cannot be found. Searching online isn't helping. Could you tell me where to find it? Thanks!
On Thu, 19 Dec 2024 21:18:01 -0500 David Niklas <deference@null.net> wrote:
Hello, I'm trying to compile the latest build of ffmpeg, 7.1 on Devuan (Debian bullseye) Linux. I'm running into some problems.
I don't know what to put into the arch argument to configure. I thought, znver2 would be sufficient. But I just get "warning unknown architecture znver2" Is znver2 not supported or am I missing something?
Also, I keep getting configure errors specifying that a library doesn't exist, but in reality the error is that stdbit.h cannot be found. Searching online isn't helping. Could you tell me where to find it?
Thanks!
Hello again, I've hit a wall. First I couldn't compile with librsvg. # librsvg2-dev/oldstable,oldstable-security,now 2.50.3+dfsg-1+deb11u1 % nice -n19 make CC libavcodec/librsvgdec.o libavcodec/librsvgdec.c: In function 'librsvg_decode_frame': libavcodec/librsvgdec.c:93:5: error: 'viewport' undeclared (first use in this function) 93 | viewport.width = dimensions.width; | ^~~~~~~~ libavcodec/librsvgdec.c:93:5: note: each undeclared identifier is reported only once for each function it appears in make: *** [ffbuild/common.mak:81: libavcodec/librsvgdec.o] Error 1 # And now ffmpeg is not linking properly. % nice -n19 make LD ffmpeg_g /usr/bin/ld: libavutil/libavutil.a(tx.o): in function `ff_tx_decompose_length': /root/working/ffmpeg-7.1/libavutil/tx.c:419: undefined reference to `ff_tx_codelet_list_float_x86' /usr/bin/ld: libavutil/libavutil.a(tx.o):(.data.rel.ro+0x20): undefined reference to `ff_tx_codelet_list_float_x86' collect2: error: ld returned 1 exit status make: *** [Makefile:141: ffmpeg_g] Error 1 Any ideas? Thanks!
On 12/19/2024 6:18 PM, David Niklas via ffmpeg-user wrote:
I don't know what to put into the arch argument to configure. I thought, znver2 would be sufficient. But I just get "warning unknown architecture znver2" Is znver2 not supported or am I missing something?
What is znver2? The architecture is probable "amd64" (for most x86 64-bit CPUs) or "x86_84"; look at what "uname -m" says: cpz@monreal:~ % uname -m amd64 cpz@monreal:~ % (this is freebsd 14.2, but linux should be relatively the same)q (I'll assume from the next email that you got past this but didn't tell anyone) z!
On Fri, 20 Dec 2024 05:05:50 +0000 Carl Zwanzig <cpz@tuunq.com> wrote:
On 12/19/2024 6:18 PM, David Niklas via ffmpeg-user wrote:
I don't know what to put into the arch argument to configure. I thought, znver2 would be sufficient. But I just get "warning unknown architecture znver2" Is znver2 not supported or am I missing something?
What is znver2?
The architecture is probable "amd64" (for most x86 64-bit CPUs) or "x86_84"; look at what "uname -m" says:
Zen version 2. It's gcc's official arch name. I didn't know what to put in, so I thought I'd try what other FLOSS tools were using.
cpz@monreal:~ % uname -m amd64 cpz@monreal:~ % (this is freebsd 14.2, but linux should be relatively the same)q
(I'll assume from the next email that you got past this but didn't tell anyone)
z!
Yes, I just didn't pass the option to configure anymore. Thanks
On Fri, 20 Dec 2024 05:05:50 +0000 Carl Zwanzig <cpz@tuunq.com> wrote:
On 12/19/2024 6:18 PM, David Niklas via ffmpeg-user wrote:
I don't know what to put into the arch argument to configure. I thought, znver2 would be sufficient. But I just get "warning unknown architecture znver2" Is znver2 not supported or am I missing something? What is znver2?
The architecture is probable "amd64" (for most x86 64-bit CPUs) or "x86_84"; look at what "uname -m" says: Zen version 2. It's gcc's official arch name. I didn't know what to put in, so I thought I'd try what other FLOSS tools were using.
cpz@monreal:~ % uname -m amd64 cpz@monreal:~ % (this is freebsd 14.2, but linux should be relatively the same)q
(I'll assume from the next email that you got past this but didn't tell anyone)
z! Yes, I just didn't pass the option to configure anymore.
Thanks
_______________________________________________ These are the allowed values for arch
AARCH64 ARM IA64 LOONGARCH LOONGARCH32 LOONGARCH64 M68K MIPS MIPS64 PARISC PPC PPC64 RISCV S390 SPARC SPARC64 TILEGX TILEPRO WASM X86 X86_32 X86_64 Perhaps should be ISA instead of arch....
On Fri, 20 Dec 2024 16:39:23 +0100 Ferdi Scholten <ferdi@sttc-nlp.nl> wrote:
On 12/19/2024 6:18 PM, David Niklas via ffmpeg-user wrote:
I don't know what to put into the arch argument to configure. I thought, znver2 would be sufficient. But I just get "warning unknown architecture znver2" Is znver2 not supported or am I missing something? What is znver2?
The architecture is probable "amd64" (for most x86 64-bit CPUs) or "x86_84"; look at what "uname -m" says: Zen version 2. It's gcc's official arch name. I didn't know what to
On Fri, 20 Dec 2024 05:05:50 +0000 Carl Zwanzig <cpz@tuunq.com> wrote: put in, so I thought I'd try what other FLOSS tools were using.
cpz@monreal:~ % uname -m amd64 cpz@monreal:~ % (this is freebsd 14.2, but linux should be relatively the same)q
(I'll assume from the next email that you got past this but didn't tell anyone)
z! Yes, I just didn't pass the option to configure anymore.
Thanks
_______________________________________________ These are the allowed values for arch
AARCH64 ARM IA64 LOONGARCH LOONGARCH32 LOONGARCH64 M68K MIPS MIPS64 PARISC PPC PPC64 RISCV S390 SPARC SPARC64 TILEGX TILEPRO WASM X86 X86_32 X86_64
Perhaps should be ISA instead of arch....
That would make more sense. Instead of removing the arch argument, I placed the correct value into my list of arguments to configure and now ffmpeg builds and links correctly. But I still don't know what's going on with librsvg (mentioned in a previous email of mine). Thanks all!
participants (3)
-
Carl Zwanzig -
David Niklas -
Ferdi Scholten