主题 : 急:移植spcaview到mini2440问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 9151
精华: 0
发帖: 20
金钱: 150 两
威望: 57 点
综合积分: 40 分
注册时间: 2009-09-19
最后登录: 2013-10-10
楼主  发表于: 2009-12-29 10:31

 急:移植spcaview到mini2440问题

版主请急救以下问题。主要是现用spcaview来采集摄像头上数据存放成avi文件. 我移植spcaview到mini2440时出现Segmentation fault。我用的是spcaview-20061208.tar.gz。按照网上的方法先编译SDL-1.2.13.tar.gz。
以下我在mini2440上运行显示的信息。谢谢!
[root@FriendlyARM /tmp]# ./spcaview -d /dev/video0 -f jpg -s 320x240
Spcaview version: 1.1.7 date: 06:11:2006 (C) mxhaard@magic.fr
size width: 320 height: 240
Initializing SDL.
SDL initialized.
bpp 3 format 21
Using video device /dev/video0.
Initializing v4l.
**************** PROBING CAMERA *********************
Camera found: Generic Zc0305b
Bridge found: ZC301-2
Bridge find ZC301-2 number 13
StreamId: JPEG Camera
quality 1 autoexpo 1 Timeframe 0 lightfreq 50
Bridge find ZC301-2 number 13
Available Resolutions width 640  heigth 480 native  
Available Resolutions width 352  heigth 288 decoded  
Available Resolutions width 320  heigth 240 native *
Available Resolutions width 176  heigth 144 decoded  
unable to probe size !!
*****************************************************
grabbing method default MMAP asked
VIDIOCGMBUF size 2457616  frames 2  offets[0]=0 offsets[1]=1228808
VIDIOCGPICT
brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0
depth=8 palette=4
VIDIOCSPICT
brightness=32768 hue=0 color=0 contrast=32768 whiteness=0
depth=24 palette=21

Segmentation fault
[root@FriendlyARM /tmp]#
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-12-29 11:34
用GDB远程调试一把看看什么地方Segmentation fault了?
http://www.aiothome.net/read.php?tid-1396.html
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 9151
精华: 0
发帖: 20
金钱: 150 两
威望: 57 点
综合积分: 40 分
注册时间: 2009-09-19
最后登录: 2013-10-10
2楼  发表于: 2009-12-30 09:59

 回 1楼(kasim) 的帖子

非常感谢版主!我先试试。
级别: 新手上路
UID: 37929
精华: 0
发帖: 1
金钱: 5 两
威望: 1 点
综合积分: 2 分
注册时间: 2011-02-18
最后登录: 2011-03-01
3楼  发表于: 2011-02-18 19:38
我也遇到了同样的问题,请问你现在解决了吗?能告诉我吗?