繁体   English   中英

在Windows x64上构建xlnt库

[英]Build xlnt library on Windows x64

我尝试从rep构建xlnt库

在Windows x64上使用cmake的https://github.com/tfussell/xlnt:cmake -G“ MinGW Makefiles”

并得到错误:

cmake / xlnt.cmake:70(add_library)的CMake错误:找不到源文件:

../third-party/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的初学者,但是在目录nessessry文件中包含:

xlnt \\ third-party \\ miniz.c

我该如何解决这个建筑问题? 感谢您的回答

在github上发布: https : //github.com/tfussell/xlnt/issues/57

我成功编译了库:

去做:

  1. 编辑“ 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)

我认为那是路径错误。 我在项目中发布了有关它的信息。

  1. cmake -G "NMake Makefiles" -用于VS编译器的.configure
  2. nmake由VS编译器编译

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM