-
-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vulkansdk package not found with MinGW profile #5531
Comments
you can open a pr to improve find_vulkansdk.lua to find it from mingw env. |
It should be found. You can add some logs to debug here.
|
The problem somewhere with
If plat is windows, At the end, |
it will continue to find vulkan-1.lib if not found.
|
it will continue to find vulkan-1.lib if not found.
|
We need to improve vulkan package and find script. diff --git a/xmake/modules/detect/sdks/find_vulkansdk.lua b/xmake/modules/detect/sdks/find_vulkansdk.lua
index 6ddeddd27..3d7b70993 100644
--- a/xmake/modules/detect/sdks/find_vulkansdk.lua
+++ b/xmake/modules/detect/sdks/find_vulkansdk.lua
@@ -36,7 +36,8 @@ function _find_vulkan_from_paths(paths, opt)
-- find library
local result = {links = {}, linkdirs = {}, includedirs = {}}
- local linkinfo = find_library(libname, paths, {suffixes = {libsuffix}})
+ local linkinfo = find_library(libname, paths, {suffixes = {libsuffix}, plat = "mingw"})
+ print(linkinfo)
if linkinfo then
result.sdkdir = path.directory(linkinfo.linkdir)
result.bindir = path.join(result.sdkdir, binsuffix) $ mingw
$ xmake f -c
checking for platform ... mingw
checking for architecture ... x86_64
checking for mingw directory ... C:/Users/star/scoop/apps/msys2/2024-07-27/mingw64
{
link = "vulkan-1",
filename = "vulkan-1.lib",
kind = "static",
linkdir = "C:\Users\star\scoop\apps\vulkan\current\lib"
}
{
link = "vulkan-1",
filename = "vulkan-1.lib",
kind = "static",
linkdir = "C:\Users\star\scoop\apps\vulkan\current\lib"
}
{
link = "vulkan-1",
filename = "vulkan-1.lib",
kind = "static",
linkdir = "C:\Users\star\scoop\apps\vulkan\current\lib"
}
warning: The library vulkan for x86_64 is not found! |
you can open a pr to improve it if it works. |
thanks |
Xmake Version
2.9.4
Operating System Version and Architecture
Windows 11 23H2 22631.4037
Describe Bug
This issue is specific only for
mingw
profile.When I add
vulkansdk
package to my root xmake.lua, then I see the following error:But I have installed VulkanSDK in my system and appropriate env variables are present:
Note: I am able to build project with vulkan using old CMake files. Just want to migrate to xmake.
I am also able to build project with msvc windows profile.
From what I found in modules/detect/sdks/find_vulkansdk.lua, neither
_find_vulkan_from_paths
nor_find_vulkan_from_system
find vulkan.Expected Behavior
vulkansdk package found and project successfully built.
Project Configuration
Additional Information and Error Logs
xmake f -p mingw -vD -y
The text was updated successfully, but these errors were encountered: