Open PTALTS-LK opened 6 months ago
@PTALTS-LK 你好,我们这边用archlinux编译过,是能够编译成功的. 你的代码是最新的吗?有没有看INSTALL文件,然后安装好相应的库? 如果都没问题,那么请试一下,将文件CMakeLists.txt的671行注释,再重新编译一下.不确定是否是这个原因,等你的反馈.谢谢.
@PTALTS-LK 你好,我们这边用archlinux编译过,是能够编译成功的. 你的代码是最新的吗?有没有看INSTALL文件,然后安装好相应的库? 如果都没问题,那么请试一下,将文件CMakeLists.txt的671行注释,再重新编译一下.不确定是否是这个原因,等你的反馈.谢谢.
671行似乎不能直接注释
我使用yay(aur助手)安装dsview yay -S dsview
@PTALTS-LK 在行的开头用#就可以注释了
@PTALTS-LK 你没拉最新代码吧.
@PTALTS-LK 你没拉最新代码吧.
我使用的是aur包,并不是直接从github clone的源码
❯ yay -S dsview
AUR Explicit (1): dsview-1:1.3.2-1
:: PKGBUILD 是最新的,跳过下载: dsview
1 dsview (构建文件已存在)
==> 清理哪些软件包的构建文件?
==> [N]没有 [A]全部 [Ab]中止 [I]已安装 [No]未安装 或 (1 2 3, 1-3, ^4)
==>
1 dsview (构建文件已存在)
==> 显示哪些包的差异?
==> [N]没有 [A]全部 [Ab]中止 [I]已安装 [No]未安装 或 (1 2 3, 1-3, ^4)
==>
==> 正在创建软件包:dsview 1:1.3.2-1 (2024年06月05日 星期三 17时09分30秒)
==> 获取源代码...
-> 找到 DSView-1.3.2.tar.gz
==> 警告: 正在跳过源文件 PGP 签名校验。
==> 正在验证 source 文件,使用sha384sums...
DSView-1.3.2.tar.gz ... 通过
:: (1/1) 正在解析 SRCINFO: dsview
==> 正在创建软件包:dsview 1:1.3.2-1 (2024年06月05日 星期三 17时09分31秒)
==> 正在检查运行时依赖关系...
==> 正在检查编译时依赖关系
==> 获取源代码...
-> 找到 DSView-1.3.2.tar.gz
==> 正在验证 source 文件,使用sha384sums...
DSView-1.3.2.tar.gz ... 通过
==> 正在删除现存的 $srcdir/ 目录...
==> 正在释放源码...
-> 正在解压缩 DSView-1.3.2.tar.gz,使用 bsdtar
==> 正在开始 prepare()...
==> 源代码已就绪。
==> 正在创建软件包:dsview 1:1.3.2-1 (2024年06月05日 星期三 17时09分32秒)
==> 正在检查运行时依赖关系...
==> 正在检查编译时依赖关系
==> 警告: 使用现存的 $srcdir/ 树
==> 正在删除现存的 $pkgdir/ 目录...
==> 正在开始 build()...
-- The C compiler identification is GNU 14.1.1
-- The CXX compiler identification is GNU 14.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "2.1.1")
-- Checking for one of the modules 'glib-2.0'
----- glib-2.0:
-- includes:/usr/include/glib-2.0/usr/lib/glib-2.0/include/usr/include/sysprof-6/usr/include
-- libraries:/usr/lib/libglib-2.0.*
----- python3:
-- includes:/usr/include/python3.12
-- libraries:/usr/lib/libpython3.12.so
----- FFTW:
-- includes:/usr/include
-- libraries:/usr/lib/libfftw3.so
----- libusb-1.0:
-- includes:/usr/include/libusb-1.0
-- libraries:/usr/lib/libusb-1.0.so
----- zlib:
-- includes:/usr/include
-- libraries:/usr/lib/libz.so
----- Qt5:
-- includes:/usr/include/qt//usr/include/qt/QtCore/usr/lib/qt//mkspecs/linux-g++
----- boost:
-- includes:/usr/include
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Output dir: /home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/build.dir
-- Configuring done (0.6s)
-- Generating done (0.0s)
-- Build files have been written to: /home/pcxlk/.cache/yay/dsview/src/build
[1/327] Generating DSView/pv/moc_log.cpp
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/log.h:41: Note: No relevant classes found. No output generated.
[18/327] Generating DSView/pv/moc_sigsession.cpp
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/sigsession.h:0: Note: No relevant classes found. No output generated.
[56/327] Generating DSView/pv/config/moc_appconfig.cpp
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/config/appconfig.h:0: Note: No relevant classes found. No output generated.
[57/327] Generating DSView/pv/moc_appcontrol.cpp
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/appcontrol.h:0: Note: No relevant classes found. No output generated.
[60/327] Generating DSView/pv/data/decode/moc_annotationrestable.cpp
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/data/decode/annotationrestable.h:0: Note: No relevant classes found. No output generated.
[61/327] Generating DSView/pv/data/decode/moc_decoderstatus.cpp
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/data/decode/decoderstatus.h:0: Note: No relevant classes found. No output generated.
[63/327] Generating DSView/pv/ui/moc_msgbox.cpp
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/ui/msgbox.h:0: Note: No relevant classes found. No output generated.
[65/327] Generating DSView/pv/ui/moc_dscombobox.cpp
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/ui/dscombobox.h:0: Note: No relevant classes found. No output generated.
[66/327] Generating DSView/pv/moc_ZipMaker.cpp
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/ZipMaker.h:0: Note: No relevant classes found. No output generated.
[67/327] Generating DSView/pv/moc_dsvdef.cpp
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/dsvdef.h:0: Note: No relevant classes found. No output generated.
[70/327] Generating DSView/pv/dialogs/moc_applicationpardlg.cpp
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/dialogs/applicationpardlg.h:0: Note: No relevant classes found. No output generated.
[76/327] Generating DSView/pv/utility/moc_encoding.cpp
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/utility/encoding.h:34: Note: No relevant classes found. No output generated.
[77/327] Generating DSView/pv/utility/moc_path.cpp
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/utility/path.h:36: Note: No relevant classes found. No output generated.
[78/327] Generating DSView/pv/utility/moc_array.cpp
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/utility/array.h:35: Note: No relevant classes found. No output generated.
[79/327] Generating DSView/pv/ui/moc_fn.cpp
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/ui/fn.h:54: Note: No relevant classes found. No output generated.
[88/327] Generating DSView/pv/moc_deviceagent.cpp
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/deviceagent.h:238: Note: No relevant classes found. No output generated.
[90/327] Building C object CMakeFiles/DSView.dir/common/minizip/ioapi.c.o
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/ioapi.c: 在函数‘fopen_file_func’中:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/ioapi.c:99:49: 警告:unused parameter ‘opaque’ [-Wunused-parameter]
99 | static voidpf ZCALLBACK fopen_file_func (voidpf opaque, const char* filename, int mode)
| ~~~~~~~^~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/ioapi.c: 在函数‘fopen64_file_func’中:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/ioapi.c:117:51: 警告:unused parameter ‘opaque’ [-Wunused-parameter]
117 | static voidpf ZCALLBACK fopen64_file_func (voidpf opaque, const void* filename, int mode)
| ~~~~~~~^~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/ioapi.c: 在函数‘fread_file_func’中:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/ioapi.c:165:48: 警告:unused parameter ‘opaque’ [-Wunused-parameter]
165 | static uLong ZCALLBACK fread_file_func (voidpf opaque, voidpf stream, void* buf, uLong size)
| ~~~~~~~^~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/ioapi.c: 在函数‘fwrite_file_func’中:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/ioapi.c:172:49: 警告:unused parameter ‘opaque’ [-Wunused-parameter]
172 | static uLong ZCALLBACK fwrite_file_func (voidpf opaque, voidpf stream, const void* buf, uLong size)
| ~~~~~~~^~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/ioapi.c: 在函数‘ftell_file_func’中:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/ioapi.c:179:47: 警告:unused parameter ‘opaque’ [-Wunused-parameter]
179 | static long ZCALLBACK ftell_file_func (voidpf opaque, voidpf stream)
| ~~~~~~~^~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/ioapi.c: 在函数‘ftell64_file_func’中:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/ioapi.c:187:53: 警告:unused parameter ‘opaque’ [-Wunused-parameter]
187 | static ZPOS64_T ZCALLBACK ftell64_file_func (voidpf opaque, voidpf stream)
| ~~~~~~~^~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/ioapi.c: 在函数‘fseek_file_func’中:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/ioapi.c:194:48: 警告:unused parameter ‘opaque’ [-Wunused-parameter]
194 | static long ZCALLBACK fseek_file_func (voidpf opaque, voidpf stream, uLong offset, int origin)
| ~~~~~~~~^~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/ioapi.c: 在函数‘fseek64_file_func’中:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/ioapi.c:217:50: 警告:unused parameter ‘opaque’ [-Wunused-parameter]
217 | static long ZCALLBACK fseek64_file_func (voidpf opaque, voidpf stream, ZPOS64_T offset, int origin)
| ~~~~~~~~^~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/ioapi.c: 在函数‘fclose_file_func’中:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/ioapi.c:243:47: 警告:unused parameter ‘opaque’ [-Wunused-parameter]
243 | static int ZCALLBACK fclose_file_func (voidpf opaque, voidpf stream)
| ~~~~~~~^~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/ioapi.c: 在函数‘ferror_file_func’中:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/ioapi.c:250:47: 警告:unused parameter ‘opaque’ [-Wunused-parameter]
250 | static int ZCALLBACK ferror_file_func (voidpf opaque, voidpf stream)
| ~~~~~~~^~~~~~
[95/327] Building C object CMakeFiles/DSView.dir/common/minizip/zip.c.o
In file included from /home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/zip.c:186:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/crypt.h: 在函数‘decrypt_byte’中:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/crypt.h:35:62: 警告:unused parameter ‘pcrc_32_tab’ [-Wunused-parameter]
35 | static int decrypt_byte(unsigned long* pkeys, const z_crc_t* pcrc_32_tab)
| ~~~~~~~~~~~~~~~^~~~~~~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/zip.c: 在函数‘zip64local_SearchCentralDir’中:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/zip.c:521:5: 警告:this ‘for’ clause does not guard... [-Wmisleading-indentation]
521 | for (i=(int)uReadSize-3; (i--)>0;)
| ^~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/common/minizip/zip.c:529:7: 附注:...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
529 | if (uPosFound!=0)
| ^~
[107/327] Building CXX object CMakeFiles/DSView.dir/DSView/pv/dialogs/deviceoptions.cpp.o
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/dialogs/deviceoptions.cpp: In member function ‘void pv::dialogs::DeviceOptions::analog_probes(QGridLayout&)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/dialogs/deviceoptions.cpp:691:20: 警告:comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<bool>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
691 | if (ch_dex < _lst_probe_enabled_status.size()){
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[113/327] Building CXX object CMakeFiles/DSView.dir/DSView/pv/view/cursor.cpp.o
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/cursor.cpp: In constructor ‘pv::view::Cursor::Cursor(pv::view::View&, int, uint64_t)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/cursor.cpp:49:32: 警告:unused parameter ‘order’ [-Wunused-parameter]
49 | Cursor::Cursor(View &view, int order, uint64_t sampleIndex) :
| ~~~~^~~~~
[114/327] Building CXX object CMakeFiles/DSView.dir/DSView/pv/view/ruler.cpp.o
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/ruler.cpp: In member function ‘void pv::view::Ruler::draw_cursor_sel(QPainter&)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/ruler.cpp:728:14: 警告:变量‘i’被设定但未被使用 [-Wunused-but-set-variable]
728 | auto i = cursor_list.begin();
| ^
[115/327] Building CXX object CMakeFiles/DSView.dir/DSView/pv/view/view.cpp.o
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/view.cpp: In member function ‘void pv::view::View::add_cursor(QColor, uint64_t)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/view.cpp:1047:30: 警告:unused parameter ‘color’ [-Wunused-parameter]
1047 | void View::add_cursor(QColor color, uint64_t sampleIndex)
| ~~~~~~~^~~~~
[117/327] Building CXX object CMakeFiles/DSView.dir/DSView/pv/view/viewport.cpp.o
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp: In member function ‘virtual void pv::view::Viewport::mousePressEvent(QMouseEvent*)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp:659:23: 警告:unused variable ‘cursor_list’ [-Wunused-variable]
659 | auto &cursor_list = _view.get_cursorList();
| ^~~~~~~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp: In member function ‘void pv::view::Viewport::onLogicMouseRelease(QMouseEvent*)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp:949:12: 警告:switch 没有处理枚举值‘CURS_MOVE’ [-Wswitch]
949 | switch (_action_type)
| ^
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp:949:12: 警告:switch 没有处理枚举值‘DSO_XM_STEP0’ [-Wswitch]
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp:949:12: 警告:switch 没有处理枚举值‘DSO_XM_STEP1’ [-Wswitch]
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp:949:12: 警告:switch 没有处理枚举值‘DSO_XM_STEP2’ [-Wswitch]
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp:949:12: 警告:switch 没有处理枚举值‘DSO_YM’ [-Wswitch]
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp:949:12: 警告:switch 没有处理枚举值‘DSO_TRIG_MOVE’ [-Wswitch]
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp: In member function ‘void pv::view::Viewport::onDsoMouseRelease(QMouseEvent*)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp:1092:12: 警告:switch 没有处理枚举值‘CURS_MOVE’ [-Wswitch]
1092 | switch (_action_type)
| ^
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp:1092:12: 警告:switch 没有处理枚举值‘LOGIC_EDGE’ [-Wswitch]
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp:1092:12: 警告:switch 没有处理枚举值‘LOGIC_MOVE’ [-Wswitch]
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp:1092:12: 警告:switch 没有处理枚举值‘LOGIC_ZOOM’ [-Wswitch]
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp:1092:12: 警告:switch 没有处理枚举值‘LOGIC_JUMP’ [-Wswitch]
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp: In member function ‘void pv::view::Viewport::onAnalogMouseRelease(QMouseEvent*)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp:1182:50: 警告:unused parameter ‘event’ [-Wunused-parameter]
1182 | void Viewport::onAnalogMouseRelease(QMouseEvent *event)
| ~~~~~~~~~~~~~^~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp: In member function ‘virtual void pv::view::Viewport::mouseDoubleClickEvent(QMouseEvent*)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp:1292:19: 警告:unused variable ‘cursor_list’ [-Wunused-variable]
1292 | auto &cursor_list = _view.get_cursorList();
| ^~~~~~~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp:1322:19: 警告:unused variable ‘cursor_list’ [-Wunused-variable]
1322 | auto &cursor_list = _view.get_cursorList();
| ^~~~~~~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp: In member function ‘virtual void pv::view::Viewport::wheelEvent(QWheelEvent*)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp:1355:17: 警告:‘int QWheelEvent::x() const’ is deprecated: Use position() [-Wdeprecated-declarations]
1355 | x = event->x();
| ~~~~~~~~^~
In file included from /usr/include/qt/QtGui/QNativeGestureEvent:1,
from /home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.h:32,
from /home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp:23:
/usr/include/qt/QtGui/qevent.h:229:16: 附注:在此声明
229 | inline int x() const { return int(p.x()); }
| ^
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp:1356:25: 警告:‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta() [-Wdeprecated-declarations]
1356 | delta = event->delta();
| ~~~~~~~~~~~~^~
/usr/include/qt/QtGui/qevent.h:219:16: 附注:在此声明
219 | inline int delta() const { return qt4D; }
| ^~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp:1357:36: 警告:‘Qt::Orientation QWheelEvent::orientation() const’ is deprecated: Use angleDelta() [-Wdeprecated-declarations]
1357 | isVertical = event->orientation() == Qt::Vertical;
| ~~~~~~~~~~~~~~~~~~^~
/usr/include/qt/QtGui/qevent.h:222:28: 附注:在此声明
222 | inline Qt::Orientation orientation() const { return qt4O; }
| ^~~~~~~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp: In member function ‘void pv::view::Viewport::update(int)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/viewport.cpp:1559:27: 警告:unused parameter ‘event’ [-Wunused-parameter]
1559 | void Viewport::update(int event)
| ~~~~^~~~~
[120/327] Building CXX object CMakeFiles/DSView.dir/DSView/pv/prop/binding/deviceoptions.cpp.o
In file included from /usr/include/boost/function/detail/requires_cxx11.hpp:9,
from /usr/include/boost/function/detail/prologue.hpp:12,
from /usr/include/boost/function.hpp:30,
from /home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/prop/binding/deviceoptions.h:27,
from /home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/prop/binding/deviceoptions.cpp:23:
/usr/include/boost/bind.hpp:36:1: 附注:‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
36 | BOOST_PRAGMA_MESSAGE(
| ^~~~~~~~~~~~~~~~~~~~
[121/327] Building CXX object CMakeFiles/DSView.dir/DSView/pv/view/header.cpp.o
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/header.cpp: In member function ‘virtual void pv::view::Header::wheelEvent(QWheelEvent*)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/header.cpp:332:17: 警告:‘int QWheelEvent::x() const’ is deprecated: Use position() [-Wdeprecated-declarations]
332 | x = event->x();
| ~~~~~~~~^~
In file included from /usr/include/qt/QtGui/QMouseEvent:1,
from /home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/../dock/keywordlineedit.h:27,
from /home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/header.h:31,
from /home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/header.cpp:23:
/usr/include/qt/QtGui/qevent.h:229:16: 附注:在此声明
229 | inline int x() const { return int(p.x()); }
| ^
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/header.cpp:333:25: 警告:‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta() [-Wdeprecated-declarations]
333 | delta = event->delta();
| ~~~~~~~~~~~~^~
/usr/include/qt/QtGui/qevent.h:219:16: 附注:在此声明
219 | inline int delta() const { return qt4D; }
| ^~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/header.cpp:334:36: 警告:‘Qt::Orientation QWheelEvent::orientation() const’ is deprecated: Use angleDelta() [-Wdeprecated-declarations]
334 | isVertical = event->orientation() == Qt::Vertical;
| ~~~~~~~~~~~~~~~~~~^~
/usr/include/qt/QtGui/qevent.h:222:28: 附注:在此声明
222 | inline Qt::Orientation orientation() const { return qt4O; }
| ^~~~~~~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/header.cpp:335:21: 警告:‘QPoint QWheelEvent::pos() const’ is deprecated: Use position() [-Wdeprecated-declarations]
335 | pos = event->pos();
| ~~~~~~~~~~^~
/usr/include/qt/QtGui/qevent.h:225:19: 附注:在此声明
225 | inline QPoint pos() const { return p.toPoint(); }
| ^~~
[122/327] Building CXX object CMakeFiles/DSView.dir/DSView/pv/toolbars/filebar.cpp.o
In file included from /usr/include/boost/bind/detail/requires_cxx11.hpp:9,
from /usr/include/boost/bind/bind.hpp:24,
from /usr/include/boost/bind.hpp:29,
from /home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/toolbars/filebar.cpp:22:
/usr/include/boost/bind.hpp:36:1: 附注:‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
36 | BOOST_PRAGMA_MESSAGE(
| ^~~~~~~~~~~~~~~~~~~~
[125/327] Building CXX object CMakeFiles/DSView.dir/DSView/pv/view/dsldial.cpp.o
In file included from /usr/include/c++/14.1.1/cassert:44,
from /home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/dsldial.cpp:24:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/dsldial.cpp: In member function ‘void pv::view::dslDial::paint(QPainter&, QRectF, QColor, QPoint, QString&)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/view/dsldial.cpp:102:25: 警告:comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
102 | assert(displayIndex < _unit.count());
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
[126/327] Building CXX object CMakeFiles/DSView.dir/DSView/pv/toolbars/logobar.cpp.o
In file included from /usr/include/boost/bind/detail/requires_cxx11.hpp:9,
from /usr/include/boost/bind/bind.hpp:24,
from /usr/include/boost/bind.hpp:29,
from /home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/toolbars/logobar.cpp:22:
/usr/include/boost/bind.hpp:36:1: 附注:‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
36 | BOOST_PRAGMA_MESSAGE(
| ^~~~~~~~~~~~~~~~~~~~
[131/327] Building CXX object CMakeFiles/DSView.dir/DSView/pv/dock/measuredock.cpp.o
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/dock/measuredock.cpp: In member function ‘void pv::dock::MeasureDock::update_dist()’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/dock/measuredock.cpp:641:12: 警告:变量‘bkColor’被设定但未被使用 [-Wunused-but-set-variable]
641 | QColor bkColor = AppConfig::Instance().GetStyleColor();
| ^~~~~~~
[145/327] Building CXX object CMakeFiles/DSView.dir/DSView/pv/prop/binding/decoderoptions.cpp.o
In file included from /usr/include/boost/function/detail/requires_cxx11.hpp:9,
from /usr/include/boost/function/detail/prologue.hpp:12,
from /usr/include/boost/function.hpp:30,
from /home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/prop/binding/../property.h:28,
from /home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/prop/binding/decoderoptions.h:28,
from /home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/prop/binding/decoderoptions.cpp:24:
/usr/include/boost/bind.hpp:36:1: 附注:‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
36 | BOOST_PRAGMA_MESSAGE(
| ^~~~~~~~~~~~~~~~~~~~
[148/327] Building CXX object CMakeFiles/DSView.dir/DSView/pv/dialogs/storeprogress.cpp.o
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/dialogs/storeprogress.cpp: In member function ‘virtual void pv::dialogs::StoreProgress::accept()’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/dialogs/storeprogress.cpp:208:29: 警告:comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
208 | if (start_index > total_count && end_index > total_count)
| ~~~~~~~~~~~~^~~~~~~~~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/dialogs/storeprogress.cpp:208:56: 警告:comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
208 | if (start_index > total_count && end_index > total_count)
| ~~~~~~~~~~^~~~~~~~~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/dialogs/storeprogress.cpp:180:15: 警告:unused variable ‘cursor_list’ [-Wunused-variable]
180 | auto &cursor_list = _view->get_cursorList();
| ^~~~~~~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/dialogs/storeprogress.cpp: In member function ‘void pv::dialogs::StoreProgress::save_run(ISessionDataGetter*)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/dialogs/storeprogress.cpp:280:24: 警告:comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::list<pv::view::Cursor*>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
280 | for (int i=0; i<cursor_list.size(); i++){
| ~^~~~~~~~~~~~~~~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/dialogs/storeprogress.cpp: In member function ‘void pv::dialogs::StoreProgress::export_run()’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/dialogs/storeprogress.cpp:320:24: 警告:comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::list<pv::view::Cursor*>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
320 | for (int i=0; i<cursor_list.size(); i++){
| ~^~~~~~~~~~~~~~~~~~~
[160/327] Building CXX object CMakeFiles/DSView.dir/DSView/pv/mainframe.cpp.o
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/mainframe.cpp: In member function ‘void pv::MainFrame::OnParentNaitveWindowEvent(int)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/mainframe.cpp:252:47: 警告:unused parameter ‘msg’ [-Wunused-parameter]
252 | void MainFrame::OnParentNaitveWindowEvent(int msg)
| ~~~~^~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/mainframe.cpp: In member function ‘virtual bool pv::MainFrame::eventFilter(QObject*, QEvent*)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/mainframe.cpp:411:9: 警告:unused variable ‘newWidth’ [-Wunused-variable]
411 | int newWidth = 0;
| ^~~~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/mainframe.cpp:412:9: 警告:unused variable ‘newHeight’ [-Wunused-variable]
412 | int newHeight = 0;
| ^~~~~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/mainframe.cpp:413:9: 警告:unused variable ‘newLeft’ [-Wunused-variable]
413 | int newLeft = 0;
| ^~~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/mainframe.cpp:414:9: 警告:unused variable ‘newTop’ [-Wunused-variable]
414 | int newTop = 0;
| ^~~~~~
[164/327] Building CXX object CMakeFiles/DSView.dir/DSView/pv/storesession.cpp.o
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/storesession.cpp: In member function ‘bool pv::StoreSession::meta_gen(pv::data::Snapshot*, std::string&)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/storesession.cpp:548:22: 警告:unused variable ‘status’ [-Wunused-variable]
548 | struct sr_status status;
| ^~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/storesession.cpp: In member function ‘void pv::StoreSession::export_exec(pv::data::Snapshot*)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/storesession.cpp:1159:24: 警告:unused variable ‘read_buf’ [-Wunused-variable]
1159 | unsigned char* read_buf = (unsigned char*)data_buffer;
| ^~~~~~~~
[167/327] Building CXX object CMakeFiles/DSView.dir/DSView/pv/prop/binding/probeoptions.cpp.o
In file included from /usr/include/boost/function/detail/requires_cxx11.hpp:9,
from /usr/include/boost/function/detail/prologue.hpp:12,
from /usr/include/boost/function.hpp:30,
from /home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/prop/binding/probeoptions.h:26,
from /home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/prop/binding/probeoptions.cpp:22:
/usr/include/boost/bind.hpp:36:1: 附注:‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
36 | BOOST_PRAGMA_MESSAGE(
| ^~~~~~~~~~~~~~~~~~~~
[180/327] Building CXX object CMakeFiles/DSView.dir/DSView/pv/config/appconfig.cpp.o
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/config/appconfig.cpp: In function ‘QString GetDecodeScriptDir()’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/config/appconfig.cpp:534:47: 警告:empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
534 | return path; QColor GetStyleColor();
| ^~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/config/appconfig.cpp:534:47: 附注:remove parentheses to default-initialize a variable
534 | return path; QColor GetStyleColor();
| ^~
| --
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/config/appconfig.cpp:534:47: 附注:or replace parentheses with braces to value-initialize a variable
[182/327] Building CXX object CMakeFiles/DSView.dir/DSView/pv/data/decode/annotationrestable.cpp.o
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/data/decode/annotationrestable.cpp: In member function ‘const char* AnnotationResTable::format_numberic(const char*, int)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/data/decode/annotationrestable.cpp:295:34: 警告:‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
295 | strncpy(all_wr, sub_str, sublen);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/data/decode/annotationrestable.cpp:288:69: 附注:length computed here
288 | unsigned int sublen = (unsigned int)strlen(sub_str);
| ~~~~~~^~~~~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/data/decode/annotationrestable.cpp:323:25: 警告:‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
323 | strncpy(all_wr, sub_str, sublen);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/data/decode/annotationrestable.cpp:315:60: 附注:length computed here
315 | unsigned int sublen = (unsigned int)strlen(sub_str);
| ~~~~~~^~~~~~~~~
[195/327] Building CXX object CMakeFiles/DSView.dir/DSView/pv/dock/keywordlineedit.cpp.o
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/dock/keywordlineedit.cpp: In member function ‘virtual void KeyLineEdit::wheelEvent(QWheelEvent*)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/dock/keywordlineedit.cpp:123:29: 警告:‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta() [-Wdeprecated-declarations]
123 | if (event->delta() > 0){
| ~~~~~~~~~~~~^~
In file included from /usr/include/qt/QtGui/QMouseEvent:1,
from /home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/dock/keywordlineedit.h:27,
from /home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/dock/keywordlineedit.cpp:22:
/usr/include/qt/QtGui/qevent.h:219:16: 附注:在此声明
219 | inline int delta() const { return qt4D; }
| ^~~~~
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/dock/keywordlineedit.cpp: In member function ‘void PopupLineEditInput::Popup(QWidget*)’:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/DSView/pv/dock/keywordlineedit.cpp:262:12: 警告:变量‘pt’被设定但未被使用 [-Wunused-but-set-variable]
262 | QPoint pt = mapToGlobal(editline->rect().bottomLeft());
| ^~
[278/327] Building C object CMakeFiles/DSView.dir/libsigrok4DSL/strutil.c.o
FAILED: CMakeFiles/DSView.dir/libsigrok4DSL/strutil.c.o
/usr/bin/cc -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -I/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/./DSView -I/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/./libsigrok4DSL -I/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/./libsigrokdecode4DSL -I/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/./common -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/python3.12 -I/usr/include/libusb-1.0 -I/home/pcxlk/.cache/yay/dsview/src/build -I/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2 -isystem /usr/include/qt -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtCore -isystem /usr/lib/qt/mkspecs/linux-g++ -isystem /usr/include/qt/QtWidgets -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -std=c99 -O3 -DNDEBUG -Wall -Wextra -Wno-return-type -Wno-ignored-qualifiers -O3 -fPIC -MD -MT CMakeFiles/DSView.dir/libsigrok4DSL/strutil.c.o -MF CMakeFiles/DSView.dir/libsigrok4DSL/strutil.c.o.d -o CMakeFiles/DSView.dir/libsigrok4DSL/strutil.c.o -c /home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/libsigrok4DSL/strutil.c
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/libsigrok4DSL/strutil.c: 在函数‘sr_parse_sizestring’中:
/home/pcxlk/.cache/yay/dsview/src/DSView-1.3.2/libsigrok4DSL/strutil.c:343:19: 错误:implicit declaration of function ‘strcasecmp’; did you mean ‘g_strcasecmp’? [-Wimplicit-function-declaration]
343 | if (*s && strcasecmp(s, "Hz"))
| ^~~~~~~~~~
| g_strcasecmp
[291/327] Building CXX object CMakeFiles/DSView.dir/DSView/pv/dock/moc_keywordlineedit.cpp.o
ninja: build stopped: subcommand failed.
==> 错误: 在 build() 中发生一个错误。
正在放弃...
-> 生成时出错: dsview-exit status 4
-> 无法安装以下软件包, 需要手动介入处理:
dsview - exit status 4
这是完整的输出
@PTALTS-LK 在行的开头用#就可以注释了
我直接注释了671行,得到下面输出
❯ cmake .
CMake Error at CMakeLists.txt:679 (endif):
Flow control statements are not properly nested.
-- Configuring incomplete, errors occurred!
我最近尝试使用AUR安装dsview时得到了编译错误