ubuntu 12.04 gstreamer 開發環境成本!


ubuntu 12.04 gstreamer 開發環境成本!

嵌入式 Ubuntu 流媒體

Ubuntu 12.04 gstreamer安裝

準備:

工具: 下載地址:https://download.csdn.net/detail/icegoly/6528717

glib-2.24.1.tar.gz

libxml2-2.7.8.tar.gz

gstreamer-0.10.36.tar.bz2

第一:使用這些工具/root/gstream_x86/root/gstream_arm

用於x86平台安裝

cplibxml2-2.7.8.tar.gz /root/gstreamer_x86/

cpglib-2.24.1.tar.gz /root/gstreamer_x86/

cpgstreamer-0.10.36.tar.bz2 /root/gstreamer_x86/

用於手臂平台安裝

cplibxml2-2.7.8.tar.gz /root/gstreamer_arm/

cpglib-2.24.1.tar.gz /root/gstreamer_arm/

cpgstreamer-0.10.36.tar.bz2 /root/gstreamer_arm/

二:安裝libxml2-2.7.8.tar.gz

sudotar –xzf libxml2-2.7.8.tar.gz

cdlibxml2-2.7.8/

須藤 ./配置

須藤製作

安裝 sudomake

第三:安裝glib-2.24.1.tar.gz

x86平台

./configure –prefix=/usr/gstreamer_lib_for_x86 glib_cv_stack_grows=noglib_cv_uscore=no ac_cv_func_posix_getpwuid_r=yesac_cv_func_posix_getgrgid_r=yes

須藤製作

安裝 sudomake

手臂平台

CC=arm-linux-gcc./configure –build=i686-linux –host=arm-linux –prefix=/root/gstreamer_lib_for_arm glib_cv_stack_grows=noglib_cv_uscore=no ac_cv_func_posix_getpwuid_r=yesac_cv_func_posix_getgrgid_r=yesac_cv_func_posix_getgrgid_r=yes

須藤製作

安裝 sudomake

4:安裝

x86平台

#PKG_CONFIG_PATH=/usr/gstreamer_lib_for_x86/lib/pkgconfig./configure –prefix=/usr/gstreamer_lib_for_x86CFLAGS=-I/usr/gstreamer_lib_for_x86/include –disable-registry –disable-loadsave –disable-gtk-docac_cv_func_register_printf_function=no –disable-tests –disable-valgrind –disable-debug –disable-gst-debug

#製作

#make 安裝

手臂平台

#CC=arm-linux-gcc PKG_CONFIG_PATH=/root/gstreamer_lib_for_arm/lib/pkgconfig./configure –build=i686-linux –host=arm-linux –prefix=/root/gstreamer_lib_for_armCFLAGS=-I/root/gstreamer_lib_for_arm/include –禁用註冊表 –disable-loadsave –disable-gtk-docac_cv_func_register_printf_function=no –disable-tests –disable-valgrind –disable-debug –disable-gst-debug

#製作

#make 安裝

第五:測試

#包括

int main (int argc, char *argv[])

{

constgchar *nano_str;

guintmajor、minor、micro、nano;

gst_init(NULL, NULL);

gst_version(&major, &minor, µ, &nano);

如果(納米== 1)

nano_str = “(CVS)”;

否則(納米 == 2)

nano_str = “(預發布)”;

如果我不

nano_str = “”;

printf(“這個程序鏈接到 GStreamer %d.%d.%d %s/n”,major, minor, micro, nano_str);

返回0;

}

編譯:

x86平台

gcchelloworld.c -I /usr/gstreamer_lib_for_x86/include/glib-2.0 -I/usr/gstreamer_lib_for_x86/lib/glib-2.0/include -I /usr/gstreamer_lib_for_x86/include/gstreamer-0.10 -L/usr/gstreamer_lib_for_x86/lib – l gstreamer-0.10 -l glib-2.0 -lgmodule-2.0 -l gobject-2.0 -l gthread-2.0

[email protected]:gstreams#./a.out

該程序與 GStreamer 0.10.36 相關聯

手臂平台:

#arm-linux-gcchelloworld.c -I /root/gstreamer_lib_for_arm/include/glib-2.0 -I/root/gstreamer_lib_for_arm/lib/glib-2.0/include -I /root/gstreamer_lib_for_arm/include/gstreamer-0.10 -L/root /gstreamer_lib_for_arm/lib -l gstreamer-0.10 -l glib-2.0 -lgmodule-2.0 -l gobject-2.0 -l gthread-2.0

#cpa.out /opt/rootfs/work //nfs目錄

然後在船上運行一個出然而

同時可以測試mp3播放。下面是程序(編譯的時候記得用上面的方法編譯):

https://www.cnblogs.com/phinecos/archive/2009/06/07/1498166.html

///問題1*** 找不到工作的 zlib 庫和頭文件 ***有了新的線索

///問題2錯誤:找不到野牛

#sudoapt-get 安裝野牛

///問題3錯誤:找不到彈性

#sudoapt-get 安裝 flex