shadowsocks-qt5 icon indicating copy to clipboard operation
shadowsocks-qt5 copied to clipboard

Consider removing zbar dependency

Open ZeppLu opened this issue 8 years ago • 17 comments

zbar 已经好几年没更新过了,而且依赖的是 qt4,为了一个 zbar 装 qt4 有点不值。 不妨考虑用 qrencode,但是不能 decode 二维码。 其实从屏幕读取二维码的操作我几乎从没用过,就算需要,也可以用浏览器的插件解码。 或者也可以 fork zbar,升级到 qt5.

ZeppLu avatar Dec 29 '16 14:12 ZeppLu

qrencode has been used already. I tend to replace zbar with a bundled quirc since it's not shipped by most Linux distros. :(

librehat avatar Jan 01 '17 21:01 librehat

供参考:KDE 那帮家伙搞出了个新玩意 prison。 从这里看来运行时不依赖 KDE 框架(编译需要 extra-cmake-module),基于 libdmtx 与 qrencode,不太清楚 windows 上是否可用

ZeppLu avatar Jan 11 '17 07:01 ZeppLu

你看一下介绍,这个是用来生成二维码的。zbar是用来解码的! 生成二维码我们直接使用了qrencode

librehat avatar Jan 12 '17 21:01 librehat

抱歉,,没仔细看

ZeppLu avatar Jan 15 '17 12:01 ZeppLu

编译zbar并不非得需要Qt,我直接用--without-gtk --without-python --without-npapi --without-xshm --without-xv --disable-video --without-qt参数编译zbar,在mac下编译的ss-qt5可以正常读取图片和用capturer读取二维码。

meoow avatar Jan 21 '17 07:01 meoow

Please consider removing zbar. Shadowsocks has been accepted for inclusion in the Solus Project (https://dev.solus-project.com/T1999) however, it can't be packaged as zbar is too old to be allowed in the repositories there. If zbar is removed as a dependency I can package this up for inclusion within Solus.

joebonrichie avatar Aug 19 '17 10:08 joebonrichie

@librehat Any updates regarding the zbar issue?

baimafeima avatar Oct 27 '17 10:10 baimafeima

@meoow 关键是 Linux 下包之间的依赖问题,ss-qt5 依赖 zbar,zbar 又依赖 qt4. 如果自己编译打包安装当然可以避免这个问题,但更新不方便,而且能用包管理器的地方还是用来得舒心。

ZeppLu avatar Oct 27 '17 11:10 ZeppLu

For the latest 3.0.0 version, will zbar be replaced with an alternative?

baimafeima avatar Jan 04 '18 22:01 baimafeima

@baimafeima Sorry I didn't have time replacing zbar with something else

librehat avatar Jan 05 '18 22:01 librehat

Some candidates for replacing zbar:

  1. https://github.com/glassechidna/zxing-cpp
  2. https://github.com/dlbeer/quirc

I'm more inclined to replace zbar with zxing-cpp since zxing has been widely adopted and tested, it is also a CMake based project which means it is very easy to be packaged. However, they haven't released any stable versions, which might be a problem for a lot of distributions to ship it in their official repository.

librehat avatar Jan 17 '18 15:01 librehat

@librehat It looks like zxing-cpp is not maintained anymore.

baimafeima avatar Jan 18 '18 02:01 baimafeima

Without a good candidate, I'm afraid we can't just remove zbar yet. I'd suggest you package zbar without Qt4

librehat avatar Jan 18 '18 20:01 librehat

@baimafeima The link that @librehat posted still appears to be maintained, although the C++ port is not an "official" ZXing project anymore. I could be wrong.

tenten8401 avatar Feb 21 '18 13:02 tenten8401

@librehat Any updates on the zbar issue? What about getting a flatpak out in the meantime? It's recently reached 1.0, so you may want to take another look: https://flatpak.org/press/2018-08-20-flatpak-1.0/

baimafeima avatar Aug 28 '18 13:08 baimafeima

@baimafeima Can't you use AppImage? Not all distributions support flatpak out of box

librehat avatar Aug 30 '18 20:08 librehat

@librehat Yes, I could but I prefer not to use any executables but a sandboxed solution. As I am running Solus, flatpak and snaps are supported out of the box.

baimafeima avatar Sep 01 '18 19:09 baimafeima