shadowsocks-qt5
shadowsocks-qt5 copied to clipboard
Consider removing zbar dependency
zbar 已经好几年没更新过了,而且依赖的是 qt4,为了一个 zbar 装 qt4 有点不值。 不妨考虑用 qrencode,但是不能 decode 二维码。 其实从屏幕读取二维码的操作我几乎从没用过,就算需要,也可以用浏览器的插件解码。 或者也可以 fork zbar,升级到 qt5.
qrencode has been used already.
I tend to replace zbar with a bundled quirc since it's not shipped by most Linux distros. :(
供参考:KDE 那帮家伙搞出了个新玩意 prison。 从这里看来运行时不依赖 KDE 框架(编译需要 extra-cmake-module),基于 libdmtx 与 qrencode,不太清楚 windows 上是否可用
你看一下介绍,这个是用来生成二维码的。zbar是用来解码的! 生成二维码我们直接使用了qrencode
抱歉,,没仔细看
编译zbar并不非得需要Qt,我直接用--without-gtk --without-python --without-npapi --without-xshm --without-xv --disable-video --without-qt参数编译zbar,在mac下编译的ss-qt5可以正常读取图片和用capturer读取二维码。
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.
@librehat Any updates regarding the zbar issue?
@meoow 关键是 Linux 下包之间的依赖问题,ss-qt5 依赖 zbar,zbar 又依赖 qt4. 如果自己编译打包安装当然可以避免这个问题,但更新不方便,而且能用包管理器的地方还是用来得舒心。
For the latest 3.0.0 version, will zbar be replaced with an alternative?
@baimafeima Sorry I didn't have time replacing zbar with something else
Some candidates for replacing zbar:
- https://github.com/glassechidna/zxing-cpp
- 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 It looks like zxing-cpp is not maintained anymore.
Without a good candidate, I'm afraid we can't just remove zbar yet. I'd suggest you package zbar without Qt4
@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.
@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 Can't you use AppImage? Not all distributions support flatpak out of box
@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.