xmake-repo icon indicating copy to clipboard operation
xmake-repo copied to clipboard

packages(vulkansdk) not found - on M2 MacOS

Open gabriellanzer opened this issue 1 year ago • 12 comments

Xmake Version

2.8.5

Operating System Version and Architecture

macOS Sonoma 14.0

Describe Bug

Either running xrepo install vulkansdk or using add_requires("imgui v1.89.9-docking", {configs = {glfw_vulkan = true}}) in my xmake.lua cannot find the vulkansdk package:

error: The packages(vulkansdk) not found, please run xrepo update-repo first! error: execv(xmake require -j 10 --extra={system=false} vulkansdk) failed(255)

I tried running xrepo update-repo and updating xmake with xmake update to no avail. Is this package legacy? I can see it exists in the GitHub repo.

Expected Behavior

To be able to download and install vulkansdk package as it's in the Github repo.

Project Configuration

add_rules("plugin.vsxmake.autoupdate")
add_rules("plugin.compile_commands.autoupdate")

add_rules("mode.debug", "mode.release")

add_requires("glm 0.9.9+8", {alias = "glm"})
add_requires("glfw", "glad", "fmt", "glslang", "vulkan-headers", "volk")
add_requires("imgui v1.89.9-docking", {configs = {glfw_opengl3 = true, glfw_vulkan = true}})

target("MyProject-0.0.1")
    set_kind("binary")
    add_packages("glm", "imgui", "glfw", "glad", "fmt",
                 "glslang", "vulkan-headers", "volk")

    add_includedirs("src")

    add_headerfiles("src/**.h")

    add_files("src/**.cpp", "src/**.c*")

    set_languages("c++20")

    add_defines("USE_STL_LIB")
    -- add_defines("USE_EASTL_LIB");

    if is_mode("debug") then
	    set_targetdir("bin/Debug/")
    elseif is_mode("release") then
	    set_targetdir("bin/Release/")
    end
target_end()

Additional Information and Error Logs

No more information needed.

gabriellanzer avatar Nov 20 '23 07:11 gabriellanzer