没有制定目标“glfw3.dll”的规则
No rule to make target `glfw3.dll'
我正在尝试使用 Netbeans 8.0.2 使用 MinGW64 5.3.0 构建一个简单的 vulkan 示例。但出于某种原因,它似乎不想找到 glf3.dll 文件,即使在链接器选项中指定了依赖位置和文件名。
错误信息:
C:\Tools\MinGW\msys.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 存在于该文件夹中的证据:
自己解决了。我不得不告诉 Netbeans 库的确切路径,而不是将它们添加为附加依赖项。
基本上,转到项目属性,Build -> Linker -> Libraries。从那里添加库文件,而不是库,它应该可以工作。
我正在尝试使用 Netbeans 8.0.2 使用 MinGW64 5.3.0 构建一个简单的 vulkan 示例。但出于某种原因,它似乎不想找到 glf3.dll 文件,即使在链接器选项中指定了依赖位置和文件名。
错误信息:
C:\Tools\MinGW\msys.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 存在于该文件夹中的证据:
自己解决了。我不得不告诉 Netbeans 库的确切路径,而不是将它们添加为附加依赖项。
基本上,转到项目属性,Build -> Linker -> Libraries。从那里添加库文件,而不是库,它应该可以工作。