歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 11.04 beta1 編譯 t264

Ubuntu 11.04 beta1 編譯 t264

日期:2017/2/28 16:17:11   编辑:Linux教程

環境:Ubuntu 11.04 beta1

1.../../common/cabac_engine.h:26:23: fatal error: Bitstream.h: No such file or directory

修改#include "Bitstream.h"為#include "bitstream.h"

2.Fatal error: can't create ../obj/cabac.o: No such file or directory

增加../obj目錄

3.../../encoder/display.c:67:22: fatal error: X11/Xlib.h: No such file or directory

安裝libx11-dev包

4.../../encoder/display.c:120:33: fatal error: X11/extensions/XShm.h: No such file or directory

安裝x11proto-xext-dev和libxext-dev(安了這個第8個錯誤應該不錯出現了)

5.../../decoder/block.c:1025:25: error: ‘index’ redeclared as different kind of symbol

將1025行的

static const int8_t index[4][4][6] =

{

{{0, 0, 0, 0, 0, 0}, {0, 1, 0, 0, 0, 0}, {1, 1, 0, 0, 0, 0}, {1, 0, 0, 0, 1, 0}},

{{0, 2, 0, 0, 0, 0}, {1, 2, 0, 0, 0, 0}, {1, 3, 0, 0, 0, 0}, {1, 2, 0, 0, 1, 0}},

{{2, 2, 0, 0, 0, 0}, {2, 3, 0, 0, 0, 0}, {3, 3, 0, 0, 0, 0}, {3, 2, 0, 0, 1, 0}},

{{2, 0, 0, 0, 0, 1}, {2, 1, 0, 0, 0, 1}, {3, 1, 0, 0, 0, 1}, {1, 2, 0, 1, 1, 0}}

};

移動到之後的三個函數內部

6.../../encoder/plugins/ratecontrol.c:241:1: error: static declaration of ‘rc_update_pic’ follows non-static declaration
../../encoder/plugins/ratecontrol.c:77:6: note: previous declaration of ‘rc_update_pic’ was here
../../encoder/plugins/ratecontrol.c:594:1: error: static declaration of ‘rc_update_quad_model’ follows non-static declaration
../../encoder/plugins/ratecontrol.c:81:6: note: previous declaration of ‘rc_update_quad_model’ was here

將77行和81行的兩個函數定義成靜態的

7.

compiling object file "../obj/cpu.o" ...
make: f: Command not found
make: [../obj/cpu.o] Error 127 (ignored)
compiling object file "../obj/dct_sse2.o" ...
make: f: Command not found
make: [../obj/dct_sse2.o] Error 127 (ignored)
compiling object file "../obj/interpolate_sse2.o" ...
make: f: Command not found
make: [../obj/interpolate_sse2.o] Error 127 (ignored)
compiling object file "../obj/sad.o" ...
make: f: Command not found
make: [../obj/sad.o] Error 127 (ignored)
compiling object file "../obj/utility_mmx.o" ...
make: f: Command not found
make: [../obj/utility_mmx.o] Error 127 (ignored)

creating binary "../bin/t264"
gcc: ../obj/cpu.o: No such file or directory
gcc: ../obj/dct_sse2.o: No such file or directory
gcc: ../obj/interpolate_sse2.o: No such file or directory
gcc: ../obj/sad.o: No such file or directory
gcc: ../obj/utility_mmx.o: No such file or directory
make: *** [bin] Error 1

這是因為沒裝nasm,sudo apt-get install nasm就可以了

8./usr/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
make: *** [bin] Error 1

通過sudo apt-get install libxext-dev解決

9.建立bin目錄

10.../obj/yuvrgb24.o: In function `init_dither_tab':
yuvrgb24.c:(.text+0x82): undefined reference to `clp'
yuvrgb24.c:(.text+0x92): undefined reference to `clp'
yuvrgb24.c:(.text+0xa1): undefined reference to `clp1'
yuvrgb24.c:(.text+0xb6): undefined reference to `clp'
yuvrgb24.c:(.text+0xef): undefined reference to `clp'
../obj/yuvrgb24.o: In function `ConvertYUVtoRGB':
yuvrgb24.c:(.text+0x163): undefined reference to `clp'

通過在makefile的CFLAGS中加-DUSE_DISPLAY解決

11.還有個錯誤是因為沒有安裝etags,裝上就可以啦

大功告成(lmy於2011年4月18日)

Copyright © Linux教程網 All Rights Reserved