GStreamer移植

1. glib2移植 html

注意:不要設置環境變量 linux

1.1 下載glib2 svn

http://www.linuxfromscratch.org/blfs/view/svn/general/glib2.html 工具

1.2 host 編譯glib2 測試

./configure ui

make&make install spa

得到 glib-compile-schemas 工具,導出其所在路徑到PATH htm

1.3 交叉編譯glib2 get

./configure CC=arm-none-linux-gnueabi-gcc --host=arm-linux --prefix=/home/vincent/project/g30/Rootfs/usr glib_cv_stack_grows=no glib_cv_uscore=no ac_cv_func_posix_getpwuid_r=yes ac_cv_func_posix_getgrgid_r=yes ac_cv_lib_rt_clock_gettime=no glib_cv_monotonic_clock=yes it

make&make install

2. gstreamer移植

2.1 下載

http://gstreamer.freedesktop.org/modules/

2.2 交叉編譯

CC=arm-none-linux-gnueabi-gcc PKG_CONFIG_PATH=/home/vincent/project/g30/Rootfs/usr/lib/pkgconfig ./configure --build=i686-linux --host=arm-none-linux --prefix=/home/vincent/project/g30/Rootfs/usr --enable-playbin2 --disable-loadsave --disable-gtk-doc ac_cv_func_register_printf_function=no --disable-tests --disable-valgrind 

make&make install


3. 測試

制定頭文件路徑

-I$(TARGET_USR)/include/gstreamer-1.0 -I$(TARGET_USR)/include/glib-2.0

注:需將 glibconfig.h文件拷貝至$(TARGET_USR)/include/glib-2.0目錄

指定鏈接庫:

gstreamer:`pkg-config --cflags --libs gstreamer-1.0`

libffi:-lffi

相關文章
相關標籤/搜索