在 Windows x64 上构建 xlnt 库
Build xlnt library on Windows x64
我尝试从rep构建xlnt库
https://github.com/tfussell/xlnt 在Windows x64上使用cmake: cmake -G "MinGW Makefiles"
并得到错误:
CMake Error at cmake/xlnt.cmake:70 (add_library): 找不到源文件:
../第三方/miniz/miniz.c
尝试扩展 .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx 调用堆栈(最近一次调用优先): CMakeLists.txt:74 (包括)
CMake 错误:CMake 无法确定目标的链接器语言:xlnt.shared CMake 错误:无法确定目标"xlnt.shared"的链接语言。
我是 cmanke 的初学者,但在目录中包含:
xlnt\第三方\miniz.c
我能做些什么来解决这个建筑问题?感谢您的回答
github上的问题:https://github.com/tfussell/xlnt/issues/57
我成功编译库:
待办事项:
- 编辑"cmake/xlnt.cmake":更改路径形式。/自。/
SET(MINIZ ./third-party/miniz/miniz.c ./third-party/miniz/miniz.h)
SET(PUGIXML ./third-party/pugixml/src/pugixml.hpp ./third-party/pugixml/src/pugixml.cpp ./third-party/pugixml/src/pugiconfig.hpp)
我认为这是路径错误。我在项目中发布了关于它的信息。
-
cmake -G "NMake Makefiles"
- VS 编译器的.configure
-
nmake
- 由VS编译器编译
相关文章:
- C++为构建时间获取QDateTime的可靠方法
- 无法在 CLion 中构建 C++ 项目
- 函数向量_指针有不同的原型,我可以构建一个吗
- 如何使用ndk-build.cmd构建Android.so文件
- libssh 的函数在构建 libssh 时无法在 Qt 和 cmake 错误中找到
- 使用cmake从源代码构建MySQL连接器/C++失败(与以前的声明冲突)
- VSCode-有一个红色下划线,但程序构建和运行正确,并且出现配音错误
- 构建可组合有向图(扫描仪生成器的汤普森构造算法)
- 无法使用Qt Creator在Windows中构建yaml-cpp
- 构建一个由C和C++文件组成的库
- llvm构建器向基本块添加终止符
- FLTK 2.0构建和演示,适用于VS2019的2011年左右的代码库
- 如何跨平台将二进制资源构建到程序中?
- 将 OpenCV 与 CMAKE 中的项目一起构建为第三方库的正确方法
- 如何解决 Ninja c++ 构建和执行问题
- 使用 cmake 的 LLVM 构建在 tsan_libdispatch_mac.cc 期间失败; "Error: conflicting types for ..."
- CMake WxWidgets项目成功地在Linux上构建,但没有在Windows上构建
- 更改命令行 qt5 源代码构建配置的正确/快速方法
- 用CMake构建C++协议
- 在 Windows x64 上构建 xlnt 库