shader-slang / slang-python

Superseded by github.com/shader-slang/slang-torch
MIT License
26 stars 3 forks source link

Slang fails to find python312.lib on windows #16

Open cshenton-work opened 4 months ago

cshenton-work commented 4 months ago

Windows 11 Python 3.12.2 with installer Slangpy 1.1.22

When attempting to run the example square.slang kernel, a compilation error:

LINK : fatal error LNK1104: cannot open file 'python312.lib'
ninja: build stopped: subcommand failed.

How can I point your build system towards my python312.lib at ~\AppData\Local\Programs\Python\Python312\libs? I've set a LIB environment variable but that doesn't seem to remedy it.

cshenton-work commented 4 months ago

Resolved by adding that path to LIBPATH environment variable also. I will leave this issue open as a "needs documentation" issue.