cargo在windows系统下编译成exe,用everything搜索路径

用户: Terminal#95-140 (错误信息显示 Everything SDK DLL 找不到)

复制代码
PS D:\code\ai\obscura> python -m mcp_server_everything_search 
Failed to load Everything SDK DLL: Could not find module 'D:\dev\tools\Everything-SDK\dll\Everything64.dll'

: DLL 实际在 D:\install\apply\Everything-SDK\dll\Everything64.dll,但代码在找 D:\dev\tools\Everything-SDK\dll\Everything64.dll。路径是通过免费云服务器的环境变量 EVERYTHING_SDK_PATH 配置的。


用户 : D:\install\apply\Everything-SDK\dll\Everything64.dll 应当在这里,怎么解决?

: 设置环境变量 EVERYTHING_SDK_PATH = D:\install\apply\Everything-SDK\dll\Everything64.dll


用户: EVERYTHING_SDK_PATH 三丰云环境变量设置好了,检查是什么

: 检查结果:

  • 环境变量已设置为:D:\install\apply\Everything-SDK\dll\Everything64.dll
  • DLL 文件存在

需要新终端或手动设置环境变量后运行。


用户: 测试everything能否搜到cl.exe

: 搜索结果 - 找到 43 个 cl.exe 文件,包括:

  • VS 2022 BuildTools: D:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.44.35207\bin\Hostx64\x64\cl.exe
  • VS 2022 Community: D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\bin\Hostx64\x64\cl.exe

用户 : https://github.com/h4ckf0r0day/obscura 运行这个项目,缺少的编译安装工具,先用Everything搜索

: 搜索结果汇总:

工具 状态 路径
Rust (1.94) C:\Program Files\Rust stable MSVC 1.94\bin\
CMake VS BuildTools 内置
MSVC (cl.exe) VS BuildTools 内
Ninja D:\Android\Sdk\cmake\3.22.1\bin\ninja.exe

用户: 把已经安装的编译开发工具写入 本地工具.md

: 已创建 本地工具.md(file:///d:/code/ai/obscura/本地工具.md)


用户: 帮你运行编译

: 运行 cargo build --release

错误:link.exe not found - 缺少 MSVC 链接器


: 需要设置 VS 环境变量,添加 MSVC 工具链路径到 PATH

再次编译,错误:LNK1181: 无法打开输入文件 "kernel32.lib" - 缺少 Windows SDK


用户: Windows SDK for Windows 10 2004 (10.0.19041.0) 与 Windows 10 版本 2004 一起发布... 下载哪个?

: 建议下载 Windows SDK for Windows 10 2004 (10.0.19041.0)


用户: 继续编译

:

  1. 确认 Windows SDK 已安装:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\um\x64\kernel32.Lib
  2. 设置环境变量后编译
  3. 编译进展,V8 下载失败(网络问题)

用户: D:\install\pro\rust\rusty_v8_release_x86_64-pc-windows-msvc.lib.gz 下载好了,继续编译运行

:

  1. 复制 V8 库文件到 C:\Users\U937\.cargo\.rusty_v8\

  2. 配置 RUSTY_V8_ARCHIVE 环境变量

  3. 重新编译 - 成功!

    Finished release profile [optimized] target(s) in 3m 24s

相关推荐
YCOSA20255 小时前
雨晨 Windows 11 IoT 企业版 LTSC 26H2 轻装 26300.9278 自用版
windows·物联网
丈剑走天涯7 小时前
基于 Python 3 语法的 PyCharm 练习示例,涵盖列表操作、类型判断及数据清洗等核心知识点
windows·python·pycharm
AxureMost7 小时前
Dopamine 3.0.10 音乐播放器
windows
MayZork7 小时前
Windows 与 Linux 下 vcpkg 的安装部署指南
linux·运维·windows
Source.Liu8 小时前
【Dioxus】Windows 环境下 Rust + Dioxus 安装配置笔记
windows·rust·dioxus
落魄大学生之流水线上谋生计8 小时前
LangGraph 基本用法指南
java·windows·python·langchain
sukalot10 小时前
windows 驱动实例分析系列: libusb驱动分析-应用层源码篇(三)
windows·驱动开发
sxd200113 小时前
Vmware和multicast
linux·windows·vmware·无线桥接·multicast
执子星海15 小时前
Registry Win32 API详解
c++·windows·microsoft·visualstudio·微软
defrag25715 小时前
Win9x下用Win32程序调用Win16函数
windows