[英]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
我成功編譯了庫:
去做:
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編譯器編譯
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.