我正在尝试使用MinGW64 5.3.0使用Netbeans 8.0.2构建一个简单的vulkan示例。但由于某些原因,即使在链接器选项中指定了依赖项位置和文件名,它似乎也不想找到glf3.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
链接器设置:
证明该DLL存在于该文件夹中:
答案 0 :(得分:1)
自己解决了。我不得不告诉Netbeans库的确切路径,而不是将它们作为附加依赖项添加。
基本上,转到项目属性,Build - >链接器 - >库。从那里添加库FILES,而不是库,它应该工作。