Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Compiling ffmpeg on the Orange Pi 4B

Featured Replies

Hi,

 

I had already compiled ffmpeg on a 32bits OS for my Orange Pi RK3399 when it ran the Orange Pi 32 bits Ubuntu without too much trouble, but now that I have Armbian on my 4B, I'd like to compile ffmpeg too.

The issue I have is that gcc is started with bad options (I'm not sure of that, that's what I think I understood):

mktemp -u XXXXXX
ZgAQ9I
test_ld cc
test_cc
BEGIN /tmp/ffconf.efsAigGe/test.c
    1   int main(void){ return 0; }
END /tmp/ffconf.efsAigGe/test.c
gcc -mfpu=neon -c -o /tmp/ffconf.efsAigGe/test.o /tmp/ffconf.efsAigGe/test.c
gcc: error: unrecognized command line option '-mfpu=neon'
C compiler test failed.
poddingue@orangepi4-armbian:~/ffmpeg_sources/FFMpeg-orig$  ./configure
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.

 

My gcc version is :

gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/8/lto-wrapper
Target: aarch64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 8.3.0-6' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --disable-libphobos --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu
Thread model: posix
gcc version 8.3.0 (Debian 8.3.0-6)

 

My machine is running Armbian buster with Linux 5.4.49-rockchip64Debian 10 buster with Kernel: aarch64 Linux 5.4.49-rockchip64.

Is there anything I could do with configure so that it uses the right options?

 

I have compiled tons of other sources on that machine, but ffmpeg and x264 really don't like it.
 

Thanks.

11 hours ago, gounthar said:

gcc: error: unrecognized command line option '-mfpu=neon'

I am absolutely unqualified to give an answer here but out of curiosity I searched the error and found you may not have to specify an option to use neon?

 

https://stackoverflow.com/questions/29851128/gcc-arm64-aarch64-unrecognized-command-line-option-mfpu-neon

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.