Comments (13)
使用 launcher 可以点动托盘图标,但 launcher 不会被编译出来
from nekoray.
需要把 go 部分一起编译 ... (话说为什么要把 core 和 Matsuri 放一起 ...? 好怪)
from nekoray.
在 /usr/bin 下 launcher 无法启动
from nekoray.
就连本体也无法启动 ... 看来是不能打包了
from nekoray.
话说为什么要把 core 和 Matsuri 放一起 ...? 好怪
为了做内置的core,所以用了从 LibSagerNetCore 改的 libcore 库,允许两个项目共享部分代码,减少重复。
在 /usr/bin 下 launcher 无法启动
打包的话就不要带 launcher 了
/usr/bin/nekoray -appdata
这样可以把配置写到 $HOME/.config
解决 No permission to write
没有专门适配 fhs 可能还有其他问题。
from nekoray.
launcher 还是不能用
它以为它在我编译的文件夹里,实际在 /usr/bin,会找不到文件
然而不用 launcher 托盘图标就点不动
from nekoray.
开启 -appdata 后确实读不到图标,下版本修复吧
from nekoray.
试试 1.11
1.9到1.11改动较多,建议参照actions的编译流程
from nekoray.
现在的情况是这样的:
launcher
在 /usr/bin 文件夹还是无法使用,似乎路径在编译的时候就已经写死了
nekoray
可以正常启动并显示托盘图标,但托盘图标右键菜单点不动,并会在启动时出现相同的报错 (QSystemTrayIcon::setVisible: No Icon set
)
from nekoray.
QSystemTrayIcon::setVisible: No Icon set
是写法问题,初始化 QSystemTrayIcon 的时间点还没设置图标,图标是后面才读入的。在 Windows 和 Arch Linux 上面是不影响使用的。
托盘图标右键菜单点不动
你是用本地的QT编译的吗,QT版本?
launcher
打包的话就不要带 launcher 了。这是release用的,用来实现更新、设置ld参数强制使用软件自带的QT(不然用户系统上面QT版本对不上就运无法运行)
包管理可以保证QT版本兼容,因此不需要launcher
后续版本我会给一个打包参数,启用后配置写 XDG CONFIG 目录,把GUI上的更新按钮也去掉。
最近重构比较多,可能要等等。
from nekoray.
Qt 版本是 5.15.6 (5.15.6+kde+r177-1.1
),在开启 NKR_PACKAGE
编译参数之后,托盘图标仍然点不动
但使用 launcher
在可写目录启动自己编译的这个版本,托盘图标就能点得动 ...
看了下 launcher
的源码,就是直接启动,也没啥特别的啊 ... 神奇
from nekoray.
PKGBUILD写的有问题
from nekoray.
以我的水平,看来是不能让 Nekoray 上 AUR 了
貌似是因为自带的 3rdparty/ZxingQtReader.hpp
没跟上版本?
FAILED: CMakeFiles/nekoray.dir/ui/mainwindow.cpp.o
/usr/bin/c++ -DNKR_NO_GRPC -DNKR_PACKAGE -DNKR_VERSION=\"1.12-2022-10-01\" -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -I/home/yidaozhan/仓库/arch-packages/nekoray-git/src/nekoray/build -I/home/yidaozhan/仓库/arch-packages/nekoray-git/src/nekoray -I/home/yidaozhan/仓库/arch-packages/nekoray-git/src/nekoray/build/nekoray_autogen/include -I/home/yidaozhan/仓库/arch-packages/nekoray-git/src/nekoray/3rdparty/QHotkey/QHotkey -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtCore -isystem /usr/lib/qt/mkspecs/linux-g++ -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtSvg -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -fPIC -std=gnu++17 -MD -MT CMakeFiles/nekoray.dir/ui/mainwindow.cpp.o -MF CMakeFiles/nekoray.dir/ui/mainwindow.cpp.o.d -o CMakeFiles/nekoray.dir/ui/mainwindow.cpp.o -c '/home/yidaozhan/仓库/arch-packages/nekoray-git/src/nekoray/ui/mainwindow.cpp'
在從下述位置 include 的檔案: /usr/include/ZXing/ReadBarcode.h:10,
來自 /home/yidaozhan/仓库/arch-packages/nekoray-git/src/nekoray/3rdparty/ZxingQtReader.hpp:18,
來自 /home/yidaozhan/仓库/arch-packages/nekoray-git/src/nekoray/ui/mainwindow.cpp:26:
/usr/include/ZXing/Result.h:73:153: 附注:‘#pragma message: Warning: the return type of text() and ecLevel() will change to std::string. Please #define ZX_USE_UTF8 to transition before the next release.’
73 | "Warning: the return type of text() and ecLevel() will change to std::string. Please #define ZX_USE_UTF8 to transition before the next release.")
| ^
/home/yidaozhan/仓库/arch-packages/nekoray-git/src/nekoray/3rdparty/ZxingQtReader.hpp: 在构造函数‘ZXingQt::Result::Result()’中:
/home/yidaozhan/仓库/arch-packages/nekoray-git/src/nekoray/3rdparty/ZxingQtReader.hpp:120:63: 错误:no matching function for call to ‘ZXing::Result::Result(ZXing::DecodeStatus)’
120 | Result() : ZXing::Result(ZXing::DecodeStatus::NotFound) {} // required for qmetatype machinery
| ^
/usr/include/ZXing/Result.h:48:9: 附注:candidate: ‘ZXing::Result::Result(ZXing::DecoderResult&&, ZXing::Position&&, ZXing::BarcodeFormat)’
48 | Result(DecoderResult&& decodeResult, Position&& position, BarcodeFormat format);
| ^~~~~~
/usr/include/ZXing/Result.h:48:9: 附注: 备选需要 3 实参,但提供了 1 个
/usr/include/ZXing/Result.h:45:9: 附注:candidate: ‘ZXing::Result::Result(const std::string&, int, int, int, ZXing::BarcodeFormat, ZXing::SymbologyIdentifier, ZXing::Error, ZXing::ByteArray&&, bool, const std::string&)’
45 | Result(const std::string& text, int y, int xStart, int xStop, BarcodeFormat format, SymbologyIdentifier si, Error error = {},
| ^~~~~~
/usr/include/ZXing/Result.h:45:9: 附注: 备选需要 10 实参,但提供了 1 个
/usr/include/ZXing/Result.h:42:9: 附注:candidate: ‘ZXing::Result::Result()’
42 | Result() = default;
| ^~~~~~
/usr/include/ZXing/Result.h:42:9: 附注: 备选需要 0 实参,但提供了 1 个
/usr/include/ZXing/Result.h:30:7: 附注:candidate: ‘ZXing::Result::Result(const ZXing::Result&)’
30 | class Result
| ^~~~~~
/usr/include/ZXing/Result.h:30:7: 附注: no known conversion for argument 1 from ‘ZXing::DecodeStatus’ to ‘const ZXing::Result&’
/usr/include/ZXing/Result.h:30:7: 附注:candidate: ‘ZXing::Result::Result(ZXing::Result&&)’
/usr/include/ZXing/Result.h:30:7: 附注: no known conversion for argument 1 from ‘ZXing::DecodeStatus’ to ‘ZXing::Result&&’
/home/yidaozhan/仓库/arch-packages/nekoray-git/src/nekoray/3rdparty/ZxingQtReader.hpp: 在构造函数‘ZXingQt::Result::Result(ZXing::Result&&)’中:
/home/yidaozhan/仓库/arch-packages/nekoray-git/src/nekoray/3rdparty/ZxingQtReader.hpp:124:89: 警告:‘const ZXing::ByteArray& ZXing::Result::rawBytes() const’ is deprecated [-Wdeprecated-declarations]
124 | _rawBytes = QByteArray(reinterpret_cast<const char*>(ZXing::Result::rawBytes().data()),
| ~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/ZXing/Result.h:109:41: 附注:在此声明
109 | [[deprecated]] const ByteArray& rawBytes() const { return _rawBytes; }
| ^~~~~~~~
/home/yidaozhan/仓库/arch-packages/nekoray-git/src/nekoray/3rdparty/ZxingQtReader.hpp:125:64: 警告:‘const ZXing::ByteArray& ZXing::Result::rawBytes() const’ is deprecated [-Wdeprecated-declarations]
125 | Size(ZXing::Result::rawBytes()));
| ~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/ZXing/Result.h:109:41: 附注:在此声明
109 | [[deprecated]] const ByteArray& rawBytes() const { return _rawBytes; }
| ^~~~~~~~
/home/yidaozhan/仓库/arch-packages/nekoray-git/src/nekoray/3rdparty/ZxingQtReader.hpp: 在成员函数‘ZXing::DecodeStatus ZXingQt::Result::status() const’中:
/home/yidaozhan/仓库/arch-packages/nekoray-git/src/nekoray/3rdparty/ZxingQtReader.hpp:134:93: 警告:‘ZXing::DecodeStatus ZXing::Result::status() const’ is deprecated [-Wdeprecated-declarations]
134 | DecodeStatus status() const { return static_cast<DecodeStatus>(ZXing::Result::status()); }
| ~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/ZXing/Result.h:54:37: 附注:在此声明
54 | [[deprecated]] DecodeStatus status() const;
| ^~~~~~
[57/65] Building CXX object CMakeFiles/nekoray.dir/ui/dialog_manage_routes.cpp.o
ninja: build stopped: subcommand failed.
from nekoray.
Related Issues (20)
- BUG: archlinux pacman直接推送了4.0 beta2,导致问题,我应该将核心放在哪个目录中/usr/lib/nekobox/核心?? HOT 6
- BUG: systeam proxy doesn't work
- 暗色主题下,日志中蓝色的网址看不清楚,能否提供更容易辨识的颜色 HOT 3
- httpsplit HOT 1
- change xray core version in 3.x version HOT 1
- macos 13 也需要学习。Need macos 13 supporting,thank you!
- BUG: 帮助文档(新) / New Documents无法打开
- kekoneko
- Blue Screen: DPC Watchdog Violation
- BUG: 测速有问题 HOT 1
- BUG: 使用bpb面板生成的tls节点使用报错无法使用 HOT 1
- BUG: “找不到"hysteria2"核心。请前往设置”报错 HOT 1
- 建议为核心增加 with_dhcp tag
- BUG: 开启tun后切换节点显示start service: initialize inbound/tun[tun-in]: configure tun interface: device or resource busy HOT 1
- BUG: Inconsistent download speed HOT 1
- BUG: 全局代理,会出现本地ip连接ssh问题
- BUG:简单路由无法工作 HOT 8
- xray core
- BUG: Arch Linux的Wayland环境,在NekoBos4.0及以上版本中,无法正常启动代理 HOT 4
- 能不能为CF创建的workers-vless/trojan的(ws+tls)加个启用“分片(Fragment)”功能 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nekoray.