2011年12月29日 星期四
2011年9月21日 星期三
hello_module.ko with linux2.6.38 gcc and arm-linux-gcc



2011年8月26日 星期五
unfinish goto fish
http://gfans.bryan.tw/2010/11/30/1361
windows 7 android-sdk eclipse
http://ig-max.blogspot.com/2010/10/windows-7-android.html
Ubuntu/Debian Linux 安裝 華為 E220 3.5G USB Card Driver
http://www.hksilicon.com/kb/articles/2181/UbuntuDebian-Linux-E220-35G-USB-Card-Driver
ubunto下安裝busybox
http://flykof.pixnet.net/blog/post/22995832-ubunto%E4%B8%8B%E5%AE%89%E8%A3%9Dbusybox
華為 3.5g 網卡安裝
testing 3.5g huawei on ubuntu 10.10
on ubuntu 9 or 8
android Build Environment windows 7
http://changyy.pixnet.net/blog/post/29474494-android-%E9%96%8B%E7%99%BC%E6%95%99%E5%AD%B8%E7%AD%86%E8%A8%98---%E8%A8%AD%E5%AE%9A-windows-%E4%B9%8B-android-ndk-
Build android kernel image ubuntu
http://cianer.com/androidg1/28-building-android-kernel-images
android 開發筆記
http://changyy.pixnet.net/blog/post/29474494-android-%E9%96%8B%E7%99%BC%E6%95%99%E5%AD%B8%E7%AD%86%E8%A8%98---%E8%A8%AD%E5%AE%9A-windows-%E4%B9%8B-android-ndk-
2011年6月16日 星期四
mjpeg-setreamer 參數
##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問題如下
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 訊息
//*************
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.htmlhttp://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
2011年5月26日 星期四
ubuntu gcc 4.4.3 降級 gcc 4.3
$ sudo apt-get install gcc-4.3 g++-4.3
2、修gcc相关链接
$ cd /usr/bin
$sudo ln -snf gcc-4.3 gcc
$sudo ln -snf g++-4.3 g++
$sudo ln -snf cpp-4.3 cpp
3、如是64bit系统,则还需装如下包。
$ sudo apt-get install g++-multilib g++-4.3-multilib
gcc 4.3 gcc 3.4 快速切換
使用 update-alternatives 工具
sudo update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-3.4 30
sudo update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-4.4 40
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-3.4 30
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 40
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-3.4 30
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.4 40
設定後 sudo update-alternatives --config gcc
Selection Path 優先級 Status
------------------------------------------------------------
0 /usr/bin/gcc-3.4 40 auto mode
* 1 /usr/bin/gcc-3.4 40 manual mode
2 /usr/bin/gcc-4.4 30 manual mode
Press enter to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/bin/gcc-4.4 to provide /usr/bin/gcc (gcc) in manual mode.
可看到版本切換摟
look: gcc -v
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
2011年5月23日 星期一
Fedora 9設置nfs
#gedit /etc/exports
编辑nfs 服务的配置文件(注意:第一次打开时该文件是空的),添加以下内容:
/opt/abc/123 *(rw,sync,no_root_squash)
其中:
/opt/abc/123 表示将要共享的的目录,它可以作
为开发板的根文件系统通过nfs 挂接;
* 表示所有的客户机都可以挂接此目录
rw 表示挂接此目录的客户机对该目录有读写的权力
no_root_squash 表示允许挂接此目录的客户机享有该主机的root 身份
,但默认安装的Fedora 系统开启了防火墙,这会导致NFS 服务
无法正常使用。因此先关闭防火墙,在命令行输入“lokkit”命令
选择其中(*)Disabled,然后选择“OK”退出,这样就永久的关闭了防火墙。
下面是启动 NFS 服务的方法和步骤:
(1)通过命令启动和停止nfs 服务
在命令行下运行:
#/etc/init.d/nfs start
这将启动nfs 服务,可以输入以下命令检验nfs 该服务是否启动。
# mount -t nfs localhost:/opt/abc/123 /mnt/
如果没有出现错误信息, 您将可以浏览到/mnt 目录中的内容和
/opt/FriendlyARM/mini6410/root_qtopia_qt4 是一致的。
使用这个命令可以停止 nfs 服务:
#/etc/init.d/nfs stop
(2)通过图形界面启动NFS 服务
为了在每次开机时系统都自动启动该服务,可以输入
# serviceconf
打开系统服务
2. 修改/etc/hosts.allow
sshd:ALL
portmap:192.168.10.0/255.255.255.0:allow
portmap:ALL:deny
nfsd:192.168.10.0/255.255.255.0
3. 启动Fedora 9 nfs server
[root@localhost v2.0]# service nfs start.如果在启动之后需要修改exports,可以exportfs -rv重新输出.
4. 可以在本机测试[root@localhost v2.0]# mount -t nfs 192.168.10.6:/pub /var/nfs
5. 在目标板上运行.下面是我第一次在目标板上运行的结果,查询了之后发现是防火墙的问题.
[root@falinux ~]$ mount -t nfs -o nolock 192.168.10.6:/home/leffy/edfa/v2.0 /mnt/win
mount: RPC: Unable to receive; errno = No route to host
mount: nfsmount failed: Bad file descriptor
mount: Mounting 192.168.10.6:/home/leffy/edfa/v2.0 on /mnt/win failed: Bad file descriptor
6. 关闭防火墙[root@localhost v2.0]# service iptables stop[root@localhost v2.0]# service iptables statusiptables: Firewall is not running.
可以看到防火墙已经半闭以上Fedora 9 nfs系统介绍.
2011年5月11日 星期三
Mjpeg Webcam
2011年5月9日 星期一
eclipse for qt java install
... /usr/local ]#chmod +x jxx-linux-i586-rpm.bin
... /usr/local ]#./jxxx-linux-i586-rpm.bin
[root@localhost ~]#java –version
http://www.cnblogs.com/images/cnblogs_com/oomusou/JRE3.jpg
(解壓後eclipse-SDK-3.2.1-linux-gtk.tar.gz)執行
選擇或鍵入 http://download.eclipse.org/tools/cdt/releases/helios 此相關pending 後勾選全部下載
2011年4月26日 星期二
2011年4月23日 星期六
GPS模組
超前科技電子
http://goods.ruten.com.tw/item/show?21103139574039Cambozola Stream Viewer
http://www.charliemouse.com:8080/code/cambozola/config.html2011年4月18日 星期一
linux 網路
http://www.cs.nctu.edu.tw/~yslin/library/linuxc/main.htm
一些linux的基本指令還附加解釋
http://www.study-area.org/network/networkfr.htm
鳥哥
http://linux.vbird.org/
Linux system call Quick reference
http://www.scribd.com/doc/3470451/LINUX-System-Call-Quick-Reference
新手ubuntu wt 非官方指南
http://ubuntuguide.org/wiki/Ubuntu_tw#.E5.A6.82.E4.BD.95.E5.AE.89.E8.A3.9D_KDE.3F
2011年4月12日 星期二
[Android 教學]
孫傳雄談科技[Android 教學] Android SDK 下載安裝中文教學課程講義
http://blog.chinatimes.com/tomsun/archive/2010/09/07/536320.htmljackie blog
http://blog.yam.com/jackiefu/article/36772586