1

我下载了 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)
4

1 回答 1

0

娜娜的进化速度非常快。目前仅使用 C++11 编译。我建议您在以下位置下载发行版:

Nana - 现代 C++ GUI 库 / Sourceforge

或者更好,使用GitHub 上的最后修复:

娜娜修补程序

安装非常简单。基本上你复制 nana 的源代码(很小:0.5 MB 的 zip 文件)并告诉你的构建系统它在哪里。按照链接了解详细信息。

于 2015-04-09T23:41:24.937 回答