Ask Your Question

errno.h not found when compiling ffmpeg

asked 2018-03-29 07:26:05 -0600

powergame gravatar image

I am using the following configuration to compile ffmepg on Fedora 27.

./configure --arch=arm --target-os=android --enable-cross-compile --cross-prefix=/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi- --sysroot=/Android/Sdk/ndk-bundle/platforms/android-27/arch-arm --enable-gpl --cpu=cortex-a8 

When I run

I get the following error:

$ make
CC  libavdevice/alldevices.o
In file included from ./libavutil/avutil.h:296:0,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:23:
./libavutil/common.h:33:19: fatal error: errno.h: No such file or directory
 #include <errno.h>
compilation terminated.
make: *** [ffbuild/common.mak:60: libavdevice/alldevices.o] Error 1

I tried symbolic linking /usr/include/asm-generic instead of /usr/include/asm but I still get the error.

edit retag flag offensive close merge delete


Have you installed glibc-headers?

genodeftest gravatar imagegenodeftest ( 2018-03-29 15:59:57 -0600 )edit

Yes @genodeftest. It is installed

powergame gravatar imagepowergame ( 2018-04-02 02:41:12 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-03-30 19:56:54 -0600

davidva gravatar image

updated 2018-03-30 20:09:25 -0600

Are you using Fedora Arm? if not, the problem is obvious... I recommend you the use of a chroot... You can to use "mock (Using mock as a chroot sandbox tool)" shell, as chroot; or docker with a Fedora ARM image ... if the image is old, you can read the instructions about how to make a updated image...

edit flag offensive delete link more


Do you mean I should install Fedora Arm in a virtual machine and cross-compile ffmpeg there?

powergame gravatar imagepowergame ( 2018-04-02 02:38:41 -0600 )edit

@powergame, exactly! but with "mock" you consumes low resources... You can find tips in arm package from Arch Arm...

davidva gravatar imagedavidva ( 2018-04-02 02:41:34 -0600 )edit

Question Tools

1 follower


Asked: 2018-03-29 07:26:05 -0600

Seen: 386 times

Last updated: Mar 30 '18