Fix for shared library not found and compile issues in Windows#848
Fix for shared library not found and compile issues in Windows#848abetlen merged 3 commits intoabetlen:mainfrom
Conversation
|
well I get this error after I apply this pr Traceback (most recent call last): |
|
@tk-master What are the contents in your |
|
Idk the usual I guess @sujeendran |
|
@tk-master - Interesting. Mine has libllama.dll instead of llama.dll which was the issue that I was facing. I guess you must have used another compiler to build the package. I have made a small change to look for both files. Can you try now? |
|
Seems to work, I guess having both those lines to load the .dll doesn't hurt. |
|
@sujeendran thank you. Yeah having both lines can't hurt, likely an msvc vs mingw difference. |

I noticed that the library .dll file that gets installed in python site-packages location is actually libllama.dll while it is trying to look for llama.dll in the code in windows machine. After making this change and reinstalling from source, everything started working fine for me.
Also updated README.md to include some extra info for Windows users trying to build using w64devkit like llama.cpp.
Setup: Windows 10 Pro, Intel CPU i7 12th gen.
Issues related: #568 #825 #751