我下载了 nana c++ gui 库。我正在尝试在 windows 下编译这个库。
我正在使用本教程: nanapro.org - 安装 nana
第二步:在您使用的IDE中创建一个静态链接库解决方案,并将放置在“NanaPath/source”及其所有子目录中的所有文件添加到解决方案中。然后编译解决方案,你会在“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)