LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: yupashu

想用C++写点东西了,大家都需要什么?

[复制链接]
发表于 2006-2-20 22:24:30 | 显示全部楼层
Post by leros_H
能写个flashget的linux版就好了!管理一下下载是件很好的事!


写一个库,也许比较好。这样不管是 command line 还是 GUI 多可以用。
回复 支持 反对

使用道具 举报

发表于 2006-2-20 22:53:07 | 显示全部楼层
C++现在真是没有理想的跨平台GUI库:QT写出来太早了,没法利用C++标准库的东西;gtk+是C的库,其绑定gtkmm确实符合标准C++,但是用的人少了些,而且不是原生库多少受到gtk的限制;wxWidget太像令人讨厌的MFC;别的也就更不用提了……

倒是想把那个bitstormlite改成带CLI支持的程序,但是最近没有时间……不知道楼主能不能跟gxcooo商量一下,他弄他的mono的时候还有人继续发扬C++/boost的效率,呵呵……
回复 支持 反对

使用道具 举报

发表于 2006-2-21 00:27:55 | 显示全部楼层
Post by 终极幻想
这个已经可以了,不需要gnome的支持。我早就用上了。。。不知道为什么你们总是这么说。

ff兄怎么实现的。我看看stardict,依赖gnome的一大堆。。。
equery g stardict | grep gnome
`-- gnome-base/libbonobo-2.10.1 [ gnome ]
  `-- gnome-base/orbit-2.12.5
  `-- dev-util/intltool-0.34.2 [ !gnome-base/bonobo-activation ]
`-- gnome-base/libgnome-2.12.0.1 [ gnome ]
  `-- gnome-base/gconf-2.12.1
  `-- gnome-base/gnome-vfs-2.12.2
   `-- gnome-base/gnome-mime-data-2.4.2
   `-- net-libs/gnutls-1.2.10 [ ssl !gnome-extra/gnome-vfs-sftp gnutls !ssl ]
`-- gnome-base/libgnomeui-2.12.1 [ gnome ]
  `-- gnome-base/libgnomecanvas-2.12.0
   `-- gnome-base/libglade-2.5.1
  `-- gnome-base/libbonoboui-2.10.1-r1
  `-- gnome-base/gnome-keyring-0.4.6
`-- app-text/scrollkeeper-0.3.14-r2 [ gnome ]
回复 支持 反对

使用道具 举报

发表于 2006-2-21 11:11:22 | 显示全部楼层
China Linux Forum上还有个libdict的库,据称速度比stardict要快,不过还不支持模糊查找。可以用这个做个小词典,GTK+做界面。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-21 19:42:31 | 显示全部楼层
终极幻想兄,刚才我已经试过了,我没有GNOME,能装上,但是找不到词典(词典正确安装,sdcv可以认出来),你是怎么装的?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-21 20:20:17 | 显示全部楼层
stardict 可以用了,刚才看了一下代码,在 stardict.cpp 里, 189-197行的跳转改一下就OK了,看来只是判断词典的代码有点问题,顺便说一下,LFS要用的话得装一个叫popt的小东西
回复 支持 反对

使用道具 举报

发表于 2006-2-22 02:12:32 | 显示全部楼层
通过Kademlia做功能类似迅雷的下载软件,没有中央服务器的。
可以一起写。
回复 支持 反对

使用道具 举报

发表于 2006-2-22 02:25:33 | 显示全部楼层
Post by Lolita
ff兄怎么实现的。我看看stardict,依赖gnome的一大堆。。。


--disable-gnome-support
Disable gnome support

兄弟,你也许要手动编译了。gentoo似乎默认没加入这个选项。


Post by yupashu
终极幻想兄,刚才我已经试过了,我没有GNOME,能装上,但是找不到词典(词典正确安装,sdcv可以认出来),你是怎么装的?


你的字典放哪里了,你的prefix 指定的是什么?
我的目录输出:(我的似乎不支持发音,不过我不用发音,就懒得管了)

/opt/stardict/share/
/opt/stardict/share/locale
/opt/stardict/share/locale/de
/opt/stardict/share/locale/de/LC_MESSAGES
/opt/stardict/share/locale/de/LC_MESSAGES/stardict.mo
/opt/stardict/share/locale/cs
/opt/stardict/share/locale/cs/LC_MESSAGES
/opt/stardict/share/locale/cs/LC_MESSAGES/stardict.mo
/opt/stardict/share/locale/hu
/opt/stardict/share/locale/hu/LC_MESSAGES
/opt/stardict/share/locale/hu/LC_MESSAGES/stardict.mo
/opt/stardict/share/locale/mk
/opt/stardict/share/locale/mk/LC_MESSAGES
/opt/stardict/share/locale/mk/LC_MESSAGES/stardict.mo
/opt/stardict/share/locale/nl
/opt/stardict/share/locale/nl/LC_MESSAGES
/opt/stardict/share/locale/nl/LC_MESSAGES/stardict.mo
/opt/stardict/share/locale/ru
/opt/stardict/share/locale/ru/LC_MESSAGES
/opt/stardict/share/locale/ru/LC_MESSAGES/stardict.mo
/opt/stardict/share/locale/sk
/opt/stardict/share/locale/sk/LC_MESSAGES
/opt/stardict/share/locale/sk/LC_MESSAGES/stardict.mo
/opt/stardict/share/locale/uk
/opt/stardict/share/locale/uk/LC_MESSAGES
/opt/stardict/share/locale/uk/LC_MESSAGES/stardict.mo
/opt/stardict/share/locale/vi
/opt/stardict/share/locale/vi/LC_MESSAGES
/opt/stardict/share/locale/vi/LC_MESSAGES/stardict.mo
/opt/stardict/share/locale/zh_CN
/opt/stardict/share/locale/zh_CN/LC_MESSAGES
/opt/stardict/share/locale/zh_CN/LC_MESSAGES/stardict.mo
/opt/stardict/share/locale/zh_TW
/opt/stardict/share/locale/zh_TW/LC_MESSAGES
/opt/stardict/share/locale/zh_TW/LC_MESSAGES/stardict.mo
/opt/stardict/share/stardict
/opt/stardict/share/stardict/dic
/opt/stardict/share/stardict/dic/stardict-guojibiaozhunhanzidacidian-2.4.2
/opt/stardict/share/stardict/dic/stardict-guojibiaozhunhanzidacidian-2.4.2/guojibiaozhunhanzidacidian.dict.dz
/opt/stardict/share/stardict/dic/stardict-guojibiaozhunhanzidacidian-2.4.2/guojibiaozhunhanzidacidian.idx
/opt/stardict/share/stardict/dic/stardict-guojibiaozhunhanzidacidian-2.4.2/guojibiaozhunhanzidacidian.ifo
/opt/stardict/share/stardict/dic/stardict-stardict1.3-2.4.2
/opt/stardict/share/stardict/dic/stardict-stardict1.3-2.4.2/stardict1.3.dict.dz
/opt/stardict/share/stardict/dic/stardict-stardict1.3-2.4.2/stardict1.3.idx
/opt/stardict/share/stardict/dic/stardict-stardict1.3-2.4.2/stardict1.3.ifo
/opt/stardict/share/stardict/dic/stardict-langdao-ec-gb-2.4.2
/opt/stardict/share/stardict/dic/stardict-langdao-ec-gb-2.4.2/langdao-ec-gb.dict.dz
/opt/stardict/share/stardict/dic/stardict-langdao-ec-gb-2.4.2/langdao-ec-gb.idx
/opt/stardict/share/stardict/dic/stardict-langdao-ec-gb-2.4.2/langdao-ec-gb.ifo
/opt/stardict/share/stardict/dic/stardict-hanyuchengyucidian-2.4.2
/opt/stardict/share/stardict/dic/stardict-hanyuchengyucidian-2.4.2/hanyuchengyucidian.idx
/opt/stardict/share/stardict/dic/stardict-hanyuchengyucidian-2.4.2/hanyuchengyucidian.ifo
/opt/stardict/share/stardict/dic/stardict-hanyuchengyucidian-2.4.2/hanyuchengyucidian.dict.dz
/opt/stardict/share/stardict/dic/stardict-langdao-ce-gb-2.4.2
/opt/stardict/share/stardict/dic/stardict-langdao-ce-gb-2.4.2/langdao-ce-gb.idx
/opt/stardict/share/stardict/dic/stardict-langdao-ce-gb-2.4.2/langdao-ce-gb.ifo
/opt/stardict/share/stardict/dic/stardict-langdao-ce-gb-2.4.2/langdao-ce-gb.dict.dz
/opt/stardict/share/stardict/dic/stardict-cdict-gb-2.4.2
/opt/stardict/share/stardict/dic/stardict-cdict-gb-2.4.2/cdict-gb.idx
/opt/stardict/share/stardict/dic/stardict-cdict-gb-2.4.2/cdict-gb.ifo
/opt/stardict/share/stardict/dic/stardict-cdict-gb-2.4.2/cdict-gb.dict.dz
/opt/stardict/share/stardict/dic/stardict-xiandaihanyucidian-2.4.2
/opt/stardict/share/stardict/dic/stardict-xiandaihanyucidian-2.4.2/xiandaihanyucidian.dict.dz
/opt/stardict/share/stardict/dic/stardict-xiandaihanyucidian-2.4.2/xiandaihanyucidian.idx
/opt/stardict/share/stardict/dic/stardict-xiandaihanyucidian-2.4.2/xiandaihanyucidian.ifo
/opt/stardict/share/stardict/dic/stardict-oxford-gb-2.4.2
/opt/stardict/share/stardict/dic/stardict-oxford-gb-2.4.2/oxford-gb.idx
/opt/stardict/share/stardict/dic/stardict-oxford-gb-2.4.2/oxford-gb.ifo
/opt/stardict/share/stardict/dic/stardict-oxford-gb-2.4.2/oxford-gb.dict.dz
/opt/stardict/share/stardict/dic/stardict-gaojihanyudacidian-2.4.2
/opt/stardict/share/stardict/dic/stardict-gaojihanyudacidian-2.4.2/gaojihanyudacidian.dict.dz
/opt/stardict/share/stardict/dic/stardict-gaojihanyudacidian-2.4.2/gaojihanyudacidian.idx
/opt/stardict/share/stardict/dic/stardict-gaojihanyudacidian-2.4.2/gaojihanyudacidian.ifo
/opt/stardict/share/stardict/dic/stardict-21shijishuangxiangcidian-2.4.2
/opt/stardict/share/stardict/dic/stardict-21shijishuangxiangcidian-2.4.2/21shijishuangxiangcidian.dict.dz
/opt/stardict/share/stardict/dic/stardict-21shijishuangxiangcidian-2.4.2/21shijishuangxiangcidian.idx
/opt/stardict/share/stardict/dic/stardict-21shijishuangxiangcidian-2.4.2/21shijishuangxiangcidian.ifo
/opt/stardict/share/stardict/dic/stardict-cedict-gb-2.4.2
/opt/stardict/share/stardict/dic/stardict-cedict-gb-2.4.2/cedict-gb.dict.dz
/opt/stardict/share/stardict/dic/stardict-cedict-gb-2.4.2/cedict-gb.idx
/opt/stardict/share/stardict/dic/stardict-cedict-gb-2.4.2/cedict-gb.ifo
/opt/stardict/share/stardict/dic/stardict-xiangya-medical-2.4.2
/opt/stardict/share/stardict/dic/stardict-xiangya-medical-2.4.2/xiangya-medical.dict.dz
/opt/stardict/share/stardict/dic/stardict-xiangya-medical-2.4.2/xiangya-medical.idx
/opt/stardict/share/stardict/dic/stardict-xiangya-medical-2.4.2/xiangya-medical.ifo
/opt/stardict/share/stardict/dic/stardict-xdict-ec-gb-2.4.2
/opt/stardict/share/stardict/dic/stardict-xdict-ec-gb-2.4.2/xdict-ec-gb.idx
/opt/stardict/share/stardict/dic/stardict-xdict-ec-gb-2.4.2/xdict-ec-gb.ifo
/opt/stardict/share/stardict/dic/stardict-xdict-ec-gb-2.4.2/xdict-ec-gb.dict.dz
/opt/stardict/share/stardict/dic/stardict-xdict-ce-gb-2.4.2
/opt/stardict/share/stardict/dic/stardict-xdict-ce-gb-2.4.2/xdict-ce-gb.dict.dz
/opt/stardict/share/stardict/dic/stardict-xdict-ce-gb-2.4.2/xdict-ce-gb.idx
/opt/stardict/share/stardict/dic/stardict-xdict-ce-gb-2.4.2/xdict-ce-gb.ifo
/opt/stardict/share/stardict/treedict
/opt/stardict/share/stardict/treedict/stardict-treedict-infoBrowse-zh_CN-2.4.2
/opt/stardict/share/stardict/treedict/stardict-treedict-infoBrowse-zh_CN-2.4.2/infoBrowse-zh_CN.tdx.gz
/opt/stardict/share/stardict/treedict/stardict-treedict-infoBrowse-zh_CN-2.4.2/infoBrowse-zh_CN.dict.dz
/opt/stardict/share/stardict/treedict/stardict-treedict-infoBrowse-zh_CN-2.4.2/infoBrowse-zh_CN.ifo
/opt/stardict/share/stardict/sounds
/opt/stardict/share/stardict/sounds/menushow.wav
/opt/stardict/share/stardict/sounds/buttonactive.wav
/opt/stardict/share/stardict/pixmaps
/opt/stardict/share/stardict/pixmaps/docklet_normal.png
/opt/stardict/share/stardict/pixmaps/index_wazard.png
/opt/stardict/share/stardict/pixmaps/splash.png
/opt/stardict/share/stardict/pixmaps/docklet_stop.png
/opt/stardict/share/stardict/pixmaps/index_appendix.png
/opt/stardict/share/stardict/pixmaps/docklet_scan.png
/opt/stardict/share/applications
/opt/stardict/share/applications/stardict.desktop
/opt/stardict/share/pixmaps
/opt/stardict/share/pixmaps/stardict.png


Post by yupashu
stardict 可以用了,刚才看了一下代码,在 stardict.cpp 里, 189-197行的跳转改一下就OK了,看来只是判断词典的代码有点问题,顺便说一下,LFS要用的话得装一个叫popt的小东西

BLFS 里边包括 popt 的安装。
至于字典的定位,没有问题,不需要改动任何东西。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-22 08:58:39 | 显示全部楼层
我的词典放到 /usr/share/stardict/dic 里了,本来是2.4.6和2.4.5 的都找不到词典,但是改了我刚才说的那个地方以后就没问题了, 我没指定prefix
我的LFS不是按照BLFS的tutorial 装的,我是用什么就装什么,其他的一概不要

下载工具我现在用prozilla和wget,图形界面的没有用过,难道 download for X 或者其他的GUI 下载工具很不好用么?
回复 支持 反对

使用道具 举报

发表于 2006-2-22 13:13:53 | 显示全部楼层
proz 还好,就是是不能动态的分配进程。

好吧,如果你没有指定prefix的话,那你应该装到 /usr/local/share/stardict/dic 里边才对。除非 stardict 本身配置有问题。
回复 支持 反对

使用道具 举报

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

本版积分规则

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