-
Notifications
You must be signed in to change notification settings - Fork 12
/
README.odroid-xu3
56 lines (39 loc) · 1.48 KB
/
README.odroid-xu3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
ODROID XU4
==========
product: http://www.hardkernel.com/main/products/prdt_info.php
distro : Ubuntu 12.04.5
uname : Linux odroid02 3.10.82 #1 SMP PREEMPT Wed Sep 2 19:59:44 BRT 2015 armv7l armv7l armv7l GNU/Linux
gcc : 4.6.3-1ubuntu5
Prerequisites
=============
Ubuntu 12.04 comes with gcc 4.6, please update your gcc to version 4.7:
$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$ sudo apt-get update
$ sudo apt-get install gcc-4.7 g++-4.7
$ sudo update-alternatives --remove gcc /usr/bin/gcc-4.6
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
$ sudo update-alternatives --config gcc
Remove libav:
$ apt-get remove libavcodec53 libavformat53
$ apt-get remove libswscale2
$ apt-get remove libavutil51
$ apt-get remove libavutil-dev libavcodec-dev libavformat-dev libswscale-dev
Get a recent ffmpeg:
ffmpeg-2.8.6
Review your CFLAGS:
$ echo $CFLAGS
And change/set accordingly:
$ export CFLAGS="-mfpu=neon -march=armv7 -ftree-vectorize -mvectorize-with-neon-quad -O3"
Build ffmpeg:
$ ./configure --enable-shared --enable-nonfree --enable-neon --prefix=/usr
$ make -j8
$ sudo make install
Configuring veejay
==================
$ sh autogen.sh
$ ./configure
$ make -j8
$ sudo make install
When you run veejay, you can see if NEON optimizations are built-in:
> I: Using SIMD NEON optimized memcpy()