2016-07-24 108 views
0

我想使用MinGW64 5.3.0与Netbeans 8.0.2建立一个简单的vulkan示例。但由于某种原因,即使在链接器选项中指定了依赖位置和文件名,它似乎也不想查找glf3.dll文件。没有规则,使目标`glfw3.dll'

错误消息:

C:\Tools\MinGW\msys\1.0\bin\make.exe -f Makefile CONF=Debug 
"/C/Tools/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf 
make.exe[1]: Entering directory `/c/Users/gkovalechyn/Documents/NetBeansProjects/VulkanTests' 
"/C/Tools/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW_64-Windows/vulkantests.exe 
make.exe[2]: Entering directory `/c/Users/gkovalechyn/Documents/NetBeansProjects/VulkanTests' 
mkdir -p build/Debug/MinGW_64-Windows 
rm -f "build/Debug/MinGW_64-Windows/main.o.d" 
g++ -m64 -std=c++11 -c -g -I../../../../../Libraries/glm -I../../../../../Libraries/glfw-3.2.bin.WIN64/include -I../../../../../Tools/VulkanSDK/1.0.17.0/Include -MMD -MP -MF "build/Debug/MinGW_64-Windows/main.o.d" -o build/Debug/MinGW_64-Windows/main.o main.cpp 
make.exe[2]: *** No rule to make target `glfw3.dll', needed by `dist/Debug/MinGW_64-Windows/vulkantests.exe'. Stop. 
make.exe[2]: Leaving directory `/c/Users/gkovalechyn/Documents/NetBeansProjects/VulkanTests' 
make.exe[1]: *** [.build-conf] Error 2 
make.exe[1]: Leaving directory `/c/Users/gkovalechyn/Documents/NetBeansProjects/VulkanTests' 
make.exe": *** [.build-impl] Error 2 

连接器设置:

Linker settings

证明该DLL存在该文件夹中:

Proof

+0

尝试清理所有并重建。 –

+0

我已经试过,仍然是同样的错误。 – gkovalechyn

回答

1

解决它自己。我必须告诉Netbeans库的确切路径,而不是将它们添加为其他依赖项。

所以基本上,转到项目属性,生成 - >连接器 - >库。从那里添加库文件,而不是图书馆,它应该工作。

相关问题