阴性
原产地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 能够覆盖测试路径.