2011年6月16日 星期四

mjpeg-setreamer 參數

http://www.lt-net.cn/forum.php?mod=viewthread&tid=15

##http://111.184.129.75:8080/?action=stream
##http://192.168.1.202:8080/?action=snapshot
## This example shows how to invoke mjpg-streamer from the command line
#./mjpg_streamer -o "output_http.so -p 8080 -w ./www" -i "input_uvc.so -f 30 -d /dev/video0" -o "output_file.so -f /home/iii/mjpeg/mjpg-streamer-r63/images -d 1000"
##官方網頁
#http://111.184.129.75:8080/stream.html

2011年6月7日 星期二

qt 4.7 opensource-ererywhere with phonon問題如下

step1:http://linux-arm-porting.blogspot.com/2010/03/qt-media-player-on-mini2440.html
step2:http://felipec.wordpress.com/2010/10/08/my-arm-development-notes/


照step2裝了
gst-plugins-base gstreamer liboil zlib-1.2.5
glib gst-plugins-good libid3tag-0.15.1b libxml2-2.7.8
gst-openmax gst-plugins-ugly libmad-0.15.1b

export PKG_CONFIG_PATH=/opt/arm/gst/lib/pkgconfig
export C_INCLUDE_PATH='/opt/arm/gst/include' LDFLAGS='-L/opt/arm/gst/lib'
./configure --prefix=/opt/qt-4.7arm/ -opensource -embedded arm -xplatform qws/linux-arm-g++ -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -no-openssl -no-opengl -no-cups -no-qvfb -qt-mouse-tslib -qt-libtiff -qt-libmng -qt-mouse-pc -no-mouse-linuxtp -webkit -phonon -phonon-backend -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -L/opt/arm/gst/lib -L/opt/arm/gst/lib/gstreamer-0.10 -force-pkg-config -v

問題如下:
iii@ubuntu:~/qt-everywhere-opensource-src-4.7.0-arm$ sudo ./configure --prefix=/opt/qt-4.7arm/ -opensource -embedded arm -xplatform qws/linux-arm-g++ -phonon -phonon-backend -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -L/opt/arm/gst/lib -L/opt/arm/gst/lib/gstreamer-0.10 -force-pkg-config -v
Determining system architecture... (Linux:2.6.35-28-generic:i686)
32-bit Intel 80x86 (i386)
'arm' is supported
'i386' is supported
System architecture: 'arm'
Host architecture: 'i386'

You have asked to use pkg-config and are cross-compiling.
Please make sure you have a correctly set-up pkg-config
environment!


Warning: PKG_CONFIG_PATH has not been set. This could mean
the host compiler's .pc files will be used. This is probably
not what you want.

Precompiled-headers support disabled.
/home/iii/qt-everywhere-opensource-src-4.7.0-arm/config.tests/unix/fvisibility.test: 64: arm-linux-g++: not found
Symbol visibility control disabled.

This is the Qt for Embedded Linux Open Source Edition.

You are licensed to use this software under the terms of
the Lesser GNU General Public License (LGPL) versions 2.1.
You are also licensed to use this software under the terms of
the GNU General Public License (GPL) versions 3.

Type '3' to view the GNU General Public License version 3.
Type 'L' to view the Lesser GNU General Public License version 2.1.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.

Do you accept the terms of either license? yes

Creating qmake. Please wait...
make: Nothing to be done for `first'.
floatmath auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o floatmath.o floatmath.cpp
make: arm-linux-g++: Command not found
make: *** [floatmath.o] Error 127
floatmath disabled.
mmx auto-detection... ()
arm-linux-g++ -c -pipe -mmmx -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o mmx.o mmx.cpp
make: arm-linux-g++: Command not found
make: *** [mmx.o] Error 127
mmx disabled.
3dnow auto-detection... ()
arm-linux-g++ -c -pipe -m3dnow -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o 3dnow.o 3dnow.cpp
make: arm-linux-g++: Command not found
make: *** [3dnow.o] Error 127
3dnow disabled.
sse auto-detection... ()
arm-linux-g++ -c -pipe -msse -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o sse.o sse.cpp
make: arm-linux-g++: Command not found
make: *** [sse.o] Error 127
sse disabled.
sse2 auto-detection... ()
arm-linux-g++ -c -pipe -msse2 -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o sse2.o sse2.cpp
make: arm-linux-g++: Command not found
make: *** [sse2.o] Error 127
sse2 disabled.
neon auto-detection... ()
arm-linux-g++ -c -pipe -mfpu=neon -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o neon.o neon.cpp
make: arm-linux-g++: Command not found
make: *** [neon.o] Error 127
neon disabled.
zlib auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o zlib.o zlib.cpp
make: arm-linux-g++: Command not found
make: *** [zlib.o] Error 127
zlib disabled.
libjpeg auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o libjpeg.o libjpeg.cpp
make: arm-linux-g++: Command not found
make: *** [libjpeg.o] Error 127
libjpeg disabled.
libtiff auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o libtiff.o libtiff.cpp
make: arm-linux-g++: Command not found
make: *** [libtiff.o] Error 127
libtiff disabled.
libmng auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o libmng.o libmng.cpp
make: arm-linux-g++: Command not found
make: *** [libmng.o] Error 127
libmng disabled.
libpng auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o libpng.o libpng.cpp
make: arm-linux-g++: Command not found
make: *** [libpng.o] Error 127
libpng disabled.
DB2 auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o db2.o db2.cpp
make: arm-linux-g++: Command not found
make: *** [db2.o] Error 127
DB2 disabled.
InterBase auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o ibase.o ibase.cpp
make: arm-linux-g++: Command not found
make: *** [ibase.o] Error 127
InterBase disabled.
MySQL (thread-safe) auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o mysql.o ../mysql/mysql.cpp
make: arm-linux-g++: Command not found
make: *** [mysql.o] Error 127
MySQL (thread-safe) disabled.
MySQL (thread-unsafe) auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o mysql.o mysql.cpp
make: arm-linux-g++: Command not found
make: *** [mysql.o] Error 127
MySQL (thread-unsafe) disabled.
OCI auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o oci.o oci.cpp
make: arm-linux-g++: Command not found
make: *** [oci.o] Error 127
OCI disabled.
ODBC auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o odbc.o odbc.cpp
make: arm-linux-g++: Command not found
make: *** [odbc.o] Error 127
ODBC disabled.
iODBC auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o iodbc.o iodbc.cpp
make: arm-linux-g++: Command not found
make: *** [iodbc.o] Error 127
iODBC disabled.
PostgreSQL auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o psql.o psql.cpp
make: arm-linux-g++: Command not found
make: *** [psql.o] Error 127
PostgreSQL disabled.
SQLite2 auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o sqlite2.o sqlite2.cpp
make: arm-linux-g++: Command not found
make: *** [sqlite2.o] Error 127
SQLite2 disabled.
unknown SQL driver: sqlite_symbian
TDS auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o tds.o tds.cpp
make: arm-linux-g++: Command not found
make: *** [tds.o] Error 127
TDS disabled.
NIS auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o nis.o nis.cpp
make: arm-linux-g++: Command not found
make: *** [nis.o] Error 127
NIS disabled.
Cups auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -o cups.o cups.cpp
make: arm-linux-g++: Command not found
make: *** [cups.o] Error 127
Cups disabled.
D-Bus auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -o dbus.o dbus.cpp
make: arm-linux-g++: Command not found
make: *** [dbus.o] Error 127
D-Bus disabled.
Glib auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/opt/arm/gst/lib/glib-2.0/include -I/opt/arm/gst/include/glib-2.0 -I/opt/arm/gst/include/gstreamer-0.10/gst -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -o glib.o glib.cpp
make: arm-linux-g++: Command not found
make: *** [glib.o] Error 127
Glib disabled.
Phonon support cannot be enabled due to functionality tests!
Turn on verbose messaging (-v) to ./configure to see the final report.
If you believe this message is in error you may use the continue
switch (-continue) to ./configure to continue.

2011年6月6日 星期一

ubuntu qt 編譯環境 -lfreetype -lXrender -lgthread-2.0 訊息

出現 -lfreetype -lXrender -lgthread-2.0 缺少此訊息安裝上去方便使用
//*************
sudo apt-get install libx11-dev libfreetype6-dev libavahi-gobject-dev libSM-dev libXrender-dev libfontconfig-dev libXext-dev
****//


題外話要安裝 MAD: MPEG Audio Decoder 解碼器如下參考

ftp://ftp.mars.org/pub/mpeg/

install libid3tag

1. download libid3tag-0.15.1b

2. ./configure

3. make && sudo make install

install libmad

1. download libmad-0.15.0b

2. ./configure

3. make && sudo make install


ref:

编译gstreamer app: http://bh-wang.iteye.com/blog/1005000

編譯arm qt 4.6 phonon: http://linux-arm-porting.blogspot.com/2010/03/qt-media-player-on-mini2440.html
http://felipec.wordpress.com/2009/12/21/gstreamer-development-in-embedded-with-sbox2/#comments

mpg 套件:http://www.underbit.com/products/mad/
gstream:http://blog.csdn.net/fei1700/archive/2008/12/21/3571270.aspx