我一直在試圖爲C++安裝nana庫。我使用這些指南: https://github.com/qPCR4vir/nana-docs/wiki/Installation爲C++構建nana時出現「make」錯誤
https://github.com/qPCR4vir/nana-docs/wiki/Install-and-use-nana-with-mingw---step-by-step
我就死在那說:「創建一個IDE內的靜態鏈接庫解決方案的一部分/構建你使用的系統,並添加所有這些都放在文件在NanaPath/source及其所有子目錄中添加項目,然後編譯解決方案,您將在類似於NanaPath/build/bin/IDEName的路徑中獲得一個靜態鏈接文件NanaStatic。「
我下載了MinGW,git和cmake就像它說的那樣。我打開了bat文件,運行帶有鏈接的「git clone」,運行
cmake -G "MinGW Makefiles"
它做到了,併成功完成。然後我試圖運行「讓」,它得到了6%,這時候出現了:
In file included from C:/Users/.../nana/verbose_prepocessor.hpp:99:0,
from C:\Users\...\nana\source\deploy.cpp:242:C/Users/.../nana/include/filesystem/filesystem.hpp:71:39: fatal error: experimental/filesystem: No such file or directory
# include<experimental/filesystem>
^
compilation terminated.
make[2]: *** [CMakeFiles\nana.dir\build.make:163: CMakeFiles/nana.dir/source/deploy.cpp.obj] Error 1
make[1]: *** [CMakeFiles\Makefile2:67: CMakeFiles/nana.dir/all] Error 2
make: *** [Makefile:129: all] Error 2
我嘗試使用的代碼(Git和SourceForge上)的不同來源,但這並沒有有所作爲。我嘗試使用GUI cmake,但是我沒有識別MinGW的其他錯誤。我在網上尋找答案,但他們大部分都回到我正在使用的指南。我用gcc/g ++ --version檢查了我的GCC和G ++版本,它們都是6.3.0。
我會採取任何建議/意見,謝謝!
你使用什麼編譯器?編輯:對不起,我一定還是睡着了...... – riodoro1
g ++從https://nuwen.net/mingw.html下載了我嘗試了建議的http://tdm-gcc.tdragon.net/,但找不到「open_distro_window .bat「 – Cindy
嘗試使用'-DNANA_CMAKE_NANA_FILESYSTEM_FORCE = True'運行cmake並查看它是否有幫助。 – riodoro1