2014-09-04 121 views
1

我下載了nana C++ gui庫。 我想在Windows下編譯這個庫。如何將nana編譯成靜態庫

我使用本教程: nanapro.org - Installing nana

第二步:創建你用哪一個 IDE內的靜態鏈接庫解決方案,並添加所有這些都放在「NanaPath /源」中的文件 以及其解決方案的所有子目錄。然後編譯 解決方案,您將在路徑 「NanaPath/build/bin/IDEName」中獲得靜態鏈接文件NanaStatic。

但我的輸出是:

"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .clean-conf 
make[1]: Entering directory '/cygdrive/c/Users/user/Documents/NetBeansProjects/CppStaticLibrary_1' 
rm -f -r build/Debug 
rm -f dist/Debug/Cygwin-Windows/libcppstaticlibrary_1.a 
make[1]: Leaving directory '/cygdrive/c/Users/user/Documents/NetBeansProjects/CppStaticLibrary_1' 


CLEAN SUCCESSFUL (total time: 2s) 

"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf 
make[1]: Entering directory '/cygdrive/c/Users/user/Documents/NetBeansProjects/CppStaticLibrary_1' 
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/Cygwin-Windows/libcppstaticlibrary_1.a 
make[2]: Entering directory '/cygdrive/c/Users/user/Documents/NetBeansProjects/CppStaticLibrary_1' 
mkdir -p build/Debug/Cygwin-Windows/_ext/2108599812 
rm -f build/Debug/Cygwin-Windows/_ext/2108599812/any.o.d 
g++ -c -g -I../../nana/include -std=c++11 -MMD -MP -MF build/Debug/Cygwin-Windows/_ext/2108599812/any.o.d -o build/Debug/Cygwin-Windows/_ext/2108599812/any.o ../../nana/source/any.cpp 
nbproject/Makefile-Debug.mk:75: recipe for target 'build/Debug/Cygwin-Windows/_ext/2108599812/any.o' failed 
make[2]: *** [build/Debug/Cygwin-Windows/_ext/2108599812/any.o] Error 1 
make[2]: Leaving directory '/cygdrive/c/Users/user/Documents/NetBeansProjects/CppStaticLibrary_1' 
nbproject/Makefile-Debug.mk:66: recipe for target '.build-conf' failed 
make[1]: *** [.build-conf] Error 2 
make[1]: Leaving directory '/cygdrive/c/Users/user/Documents/NetBeansProjects/CppStaticLibrary_1' 
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed 
make: *** [.build-impl] Error 2 


BUILD FAILED (exit value 2, total time: 1s) 
+0

這'G ++'命令應該產生一個錯誤,如果它失敗了,但我沒有看到它在輸出。那個'Makefile-Debug.mk'從哪裏來的?你能手動運行那個'g ++'命令嗎?它工作嗎?它錯誤嗎? – 2014-09-04 23:33:47

回答