stable-diffusion.cpp icon indicating copy to clipboard operation
stable-diffusion.cpp copied to clipboard

Build differences and issue linking m on Windows with Vulkan

Open zhouraym opened this issue 5 months ago • 1 comments

Hi,

Thank you for your great work on this project!

I'm trying to build the project on Windows using the instructions in your README. However, I noticed that the release binary I compiled is different from the one you've provided in the Releases section — both in size and behavior. Could you share more details about how you built your official release? Are there any additional build steps, flags, or environment settings that aren't included in the README?

Additionally, I encountered a build error on Windows when targeting Vulkan. The issue comes from this part of the CMake code:

if (MATH_LIBRARY)
    if (NOT WIN32 OR NOT DEFINED ENV{ONEAPI_ROOT})
        target_link_libraries(ggml-base PRIVATE m)
    endif()
endif()

zhouraym avatar Jul 21 '25 10:07 zhouraym

Releases are build via Github CI. You should be able to inspect them under 'Actions' in this project. Direct link to latest master release windows vulkan build: https://github.com/leejet/stable-diffusion.cpp/actions/runs/16272721121/job/45944181356

idostyle avatar Jul 21 '25 12:07 idostyle