Hello,
I am following instructions here:
https://developer.blender.org/docs/handbook/building_blender/
I am running on Windows 10 and have VS2022, VS2019, and gcc installed.
To build, I am just running make
with no arguments.
This causes MSVC2019 to get selected. (Blender prioritizes this over 2022, but I get the same issue with both.)
Building blender with VS2019 for x64 in C:\blender..\build_windows_x64_vc16_Release
I am seeing the following error:
C:\blender\lib\windows_x64\pthreads\lib\pthreadVC3.lib : fatal error LNK1107: invalid or corrupt file: cannot read at 0
x83 [C:\build_windows_x64_vc16_Release\intern\cycles\kernel\zstd_compress.vcxproj]
Subsequently some other failures also occur, but this was the first issue.
Thank you!
can you check if C:\blender\lib\windows_x64\pthreads\lib\pthreadVC3.lib
exists and what its filesize is?
k:\BlenderGit\blender\lib\windows_x64\pthreads\lib>dir
Directory of k:\BlenderGit\blender\lib\windows_x64\pthreads\lib
2025-06-03 07:08 AM <DIR> .
2025-06-03 07:10 AM <DIR> ..
2025-06-03 07:08 AM 193,150 pthreadVC3.lib
1 File(s) 193,150 bytes
Thank you very much for taking the time to help me with this!
In my case the file is much smaller which seems to confirm that it’s corrupt or invalid:
Directory of C:\blender\lib\windows_x64\pthreads\lib
06/03/2025 03:52 PM .
06/03/2025 03:52 PM …
06/03/2025 03:52 PM 131 pthreadVC3.lib
1 File(s) 131 bytes
looks like something has gone wrong with git lfs
try running git lfs fetch
and git lfs pull
in your C:\blender\lib\windows_x64
folder
This solved the issue for me. Thank you so much!