LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2480|回复: 25

qt-feidian发布!linux下方便地播放沸点电视的qt前端

[复制链接]
发表于 2006-5-11 13:02:21 | 显示全部楼层 |阅读模式
下载
http://lianwei3.googlepages.com/home2
tips:如果状态显示”connected",但mplayer无法出现,就多试点几次“Player"按钮。
发表于 2006-5-11 15:17:17 | 显示全部楼层
哦,怎么改为qt了?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-11 15:41:24 | 显示全部楼层
qt比gtk可以节省不少的编程工作量
回复 支持 反对

使用道具 举报

发表于 2006-5-11 17:02:22 | 显示全部楼层
弱弱问一下,没有qmake这个命令阿。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-11 18:26:34 | 显示全部楼层
需要先装qt
回复 支持 反对

使用道具 举报

发表于 2006-5-11 18:36:07 | 显示全部楼层
RH9、2.6.16-rc6-mm2,无法编译
  1. [bigcat@grand-ocean feidian-0.0.1]$ ls
  2. main.cpp
  3. [bigcat@grand-ocean feidian-0.0.1]$ sudo qmake -project
  4. [bigcat@grand-ocean feidian-0.0.1]$ sudo qmake
  5. [bigcat@grand-ocean feidian-0.0.1]$ sudo make
  6. make: *** Warning: File `main.cpp' has modification time in the future (2006-05-11 18:45:45 > 2006-05-11 18:33:01.275239)
  7. g++ -c -pipe -Wall -W -O2 -march=i386 -mcpu=i686 -g -DGLX_GLXEXT_LEGACY -fno-use-cxa-atexit -fno-exceptions  -DQT_NO_DEBUG -I/usr/lib/qt-3.1/mkspecs/default -I. -I. -I/usr/lib/qt-3.1/include -o main.o main.cpp
  8. main.cpp: In function `int scan_port(char*, int, int)':
  9. main.cpp:80: `write' undeclared (first use this function)
  10. main.cpp:80: (Each undeclared identifier is reported only once for each
  11.    function it appears in.)
  12. main.cpp:86: `close' undeclared (first use this function)
  13. main.cpp:326:20: main.moc: 没有那个文件或目录
  14. make: *** [main.o] Error 1
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-11 19:21:01 | 显示全部楼层
Post by bigcat00
RH9、2.6.16-rc6-mm2,无法编译
  1. [bigcat@grand-ocean feidian-0.0.1]$ ls
  2. main.cpp
  3. [bigcat@grand-ocean feidian-0.0.1]$ sudo qmake -project
  4. [bigcat@grand-ocean feidian-0.0.1]$ sudo qmake
  5. [bigcat@grand-ocean feidian-0.0.1]$ sudo make
  6. make: *** Warning: File `main.cpp' has modification time in the future (2006-05-11 18:45:45 > 2006-05-11 18:33:01.275239)
  7. g++ -c -pipe -Wall -W -O2 -march=i386 -mcpu=i686 -g -DGLX_GLXEXT_LEGACY -fno-use-cxa-atexit -fno-exceptions  -DQT_NO_DEBUG -I/usr/lib/qt-3.1/mkspecs/default -I. -I. -I/usr/lib/qt-3.1/include -o main.o main.cpp
  8. main.cpp: In function `int scan_port(char*, int, int)':
  9. main.cpp:80: `write' undeclared (first use this function)
  10. main.cpp:80: (Each undeclared identifier is reported only once for each
  11.    function it appears in.)
  12. main.cpp:86: `close' undeclared (first use this function)
  13. main.cpp:326:20: main.moc: 没有那个文件或目录
  14. make: *** [main.o] Error 1
复制代码

moc main.cpp -o main.moc

qmake -project
qmake
make
-----------------------
更新到0.0.1a已修正该问题
回复 支持 反对

使用道具 举报

发表于 2006-5-12 00:12:24 | 显示全部楼层
-__-!!
总算装上了,不过居然是个WINE,让我摔到了桌子底下……但是能有更多的电视频道可看还是要感谢楼主的开发。多谢!!!!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-12 00:21:39 | 显示全部楼层
~v~

网上有播放的shell教本,但感到很不方便,所以就开发了这个。
这里用搜索端口的办法播放的,我打算想实现通过查看$HOME/.wine/drive_c//windows/temp/*.asx
文件的办法播放,但qt的文件内容字符匹配内容我不是很清楚。不知谁对此有所了解。
回复 支持 反对

使用道具 举报

发表于 2006-5-12 09:20:52 | 显示全部楼层
文件内容字符匹配?
如果是文本文件,用Qstring的find不行么?或者contains。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表