@customize-agent/cad-native

中文文档
1.0.3发布于 2026/10/29GPL-3.0-or-later零依赖近 30 天下载 2304

预建的本地DWG侧车(LibreDWG 0.14),用于自定义代理

中文使用文档
文档目录6 节
  1. 构建 LibreDWG 0.14
  2. macOS / Linux 系统
  3. 视窗 (MSVC / CMake)
  4. 搭建侧车
  5. macOS / Linux 系统
  6. 视窗( MSVC, 无 MinGW)

阴性

原产地DWG-至DXF-组码侧车. 它读取了带有LibreDWG的 C API 的 DWG,并写出一个 DXF 双流来 stdout. 没错 没有 调用 dwg_write_dxf; 现有 buildCadScene 输入输出时不改变.

  • LibreDWG: GNU 官员 0.14 (简体中文) 稳定源
  • 源文件存档 SHA256: 62ebb73b984f865960f20ed26619ea5f8789d5e3fd088fa40a2598384da81275
  • 相应的源归档被运出为 libredwg-0.14.tar.xz 在此目录中列出GPL 兼容性.
  • 许可证:GPL-3.0-or-later (LibreDWG);这个侧车源是GPL-3.0-or-later作为衍生作品.
  • 侧车由土建在每个站台上. 这样做 没有 与MinGW的交叉编译:macOS使用Clang,Windows使用MSVC.

构建 LibreDWG 0.14

使用来自 https://ftp.gnu.org/gnu/libredwg/libredwg-0.14.tar.xz (中文(简体) )。 。 。 .

macOS / Linux 系统

tar -xJf libredwg-0.14.tar.xz
cd libredwg-0.14
./configure --prefix="$PWD/install" --disable-shared --enable-static \
  --disable-bindings --disable-docs --disable-python \
  --disable-dxf --disable-json --disable-write --disable-werror --disable-dependency-tracking
make -j4

静态图书馆是 src/.libs/libredwg.a。 。 。 .

视窗 (MSVC / CMake)

使用 CMake 和 MSVC( 无 MinGW) 构建相同的 LibreDWG 0. 14 源, 生产 redwg.lib。 。 。 . 上游源船为CMake建造;保留 DEBUG_CLASSES 如果 Windows 构建需要完成 DWG 对象覆盖,则启用.

搭建侧车

macOS / Linux 系统

bash build-macos.sh /path/to/libredwg-0.14   # or build-linux.sh

视窗( MSVC, 无 MinGW)

使用官员 libredwg-0.14-win64.zip 从LibreDWG 0.14发行。 脚本生成一个 MSVC 从官方 DLL 从库导入 dumpbin编号 :lib,用 CMake + 编译侧车 Visual Studio 2022, 和副本 libredwg-0.dll 及其运行时间 DLL 在可执行文件旁边 :

.\build-windows.ps1 -LibreDwgWin64Zip C:\path\to\libredwg-0.14-win64.zip

侧车连接 静态 MSVC CRT (英语:CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded) (中文(简体) ). 绝对不能 取决于 VCRUNTIME140.dll 或 UCRT:没有 VC++ 的最终用户机 2015-2022 (英语) 重载时无法启动( 退出) 0xC0000135,没有stderr。 构建脚本 以 dumpbin /dependents 并失败于任何 MSVC/ UCRT 运行时间 DLL .

构建脚本将结果写入平台目录:

  • 马可斯: native/darwin-arm64/cad-native 或者说 native/darwin-x64/cad-native
  • 林纳: native/linux-x64/cad-native
  • 窗口 : native/win32-x64/cad-native.exe (加上同一目录中的运行时间 DLLs)

@customize-agent/knowledge 取决于此软件包和解析 native/<platform>-<arch>/cad-native 内部; CUSTOMIZE_CAD_NATIVE_BINARY 能够覆盖测试路径.

版本与发布记录

@customize-agent/cad-native 共发布 5 个版本,首次发布于 2026/10/27;过去 12 个月发布了 5 个版本。

版本发布日期距今
1.0.3latest2026/10/2913 天前
1.0.22026/10/2814 天前
1.0.12026/10/2715 天前
1.0.02026/10/2715 天前
0.0.0-stage2026/10/2715 天前

关于 @customize-agent/cad-native 的常见问题

@customize-agent/cad-native 是什么?

预建的本地DWG侧车(LibreDWG 0.14),用于自定义代理

如何安装 @customize-agent/cad-native?

在项目目录运行 npm install @customize-agent/cad-native,或使用 pnpm add / yarn add / bun add。

@customize-agent/cad-native 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/customize-agent__cad-native 是否存在。

@customize-agent/cad-native 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.19.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@customize-agent/cad-native 可以商用吗?

@customize-agent/cad-native 使用 GPL-3.0-or-later 许可。强 Copyleft:分发包含该代码的软件时,整个作品需以 GPL-3.0 兼容许可开源,并附带专利与反锁定条款。仅内部使用不触发此义务。以上为概括,不构成法律意见,请以许可原文为准。

@customize-agent/cad-native 的下载量有多少?

根据 npm 官方下载统计,@customize-agent/cad-native 在 2026/10/11 – 2026/11/09 这 30 天内被下载 2,304 次,日均约 77 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@customize-agent/cad-native 还在维护吗?

最新版本 1.0.3 发布于 2026/10/29(13 天前);至今共发布 5 个版本,其中过去 12 个月发布了 5 个;首次发布于 2026/10/27。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。