c++ - 调试外部 CMake 项目(hunter_add_package)?
问题描述
我克隆了这个仓库“https://github.com/ethereum-mining/ethminer.git”。我使用 CMake 构建和调试了它,但是当我到达 CpuMiner.cpp (第 281 行)中的以下代码时,我无法调试它,因为在同一个项目中没有关于 ethash::search 函数的源代码。
auto r = ethash::search(context, header, boundary, nonce, blocksize);
if (r.solution_found)
该项目使用这个cmake指令:hunter_add_package(ethash) find_package(ethash CONFIG REQUIRED)
我不确定 Hunter 是如何工作的,找到 ethash repo 但可能 repo URL 是:“https://github.com/chfast/ethash.git”
如何在 ethminer 中调试 ethash 项目?我正在使用 Linux。
解决方案
推荐阅读
- python - 有没有办法解码八位字节流文件
- usb - 如何正确进行 USB 控制传输(libusb)?
- java - 如何推迟事件触发/接收
- python - 根据python中的历史数据预测事件时间
- python - 将字符串列表设为大写并填写少于 5 个字符的字符串
- android - Output.json 将应用版本代码显示为版本名称
- wordpress - 如何将运输区域名称添加到 WooCommerce 管理订单列表中的新列
- excel - 用希伯来语书写时出现文本框问题
- azure - 我们如何通过 Azure Function 在 CRM 中更新这个 JSON
- angular - Angular上的传单Esri地理编码不导入地理编码类