Compiling the latest blender

using https://wiki.blender.org/wiki/Building_Blender/Windows?fbclid=IwAR36pVI9523Mn7FZEKh3tCVtVRynOV4Bn4UyHsJxesc5AUg8Gjc9X3wFBBM#Building_Blender_on_Windows, I installed Visual Studio 2017 Community Edition, Subversion for Windows, Git and CMake.

I downloaded the libraries using SVN, and used git to get the code (following the instructions) Now, I’m at the compiler error portion of my adventure.

No explicit msvc version requested, autodetecting version.


** Visual Studio 2017 Developer Command Prompt v15.9.2
** Copyright © 2017 Microsoft Corporation


[vcvarsall.bat] Environment initialized for: ‘x64’
Compiler Detection successful, detected VS2017
Building blender with VS2017 for x64 in D:\Blender-Source\blender…\build_windows_Full_x64_vc15_Release
loading initial cache file D:\Blender-Source\blender\build_files\cmake\config\blender_full.cmake
– Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.17134.
– 64 bit compiler detected.
– Visual Studio 2017 detected.
CMake Warning at build_files/cmake/platform/platform_win32.cmake:447 (message):
LLVM debug libs not present on this system. Using release libs for debug
builds.
Call Stack (most recent call first):
CMakeLists.txt:930 (include)

– OSL not found
CMake Error at CMakeLists.txt:1540 (message):
Missing:
“D:/Blender-Source/blender/…/lib/win64_vc14/python/include/python3.7/Python.h”,

Set the cache entry ‘PYTHON_INCLUDE_DIR’ to point to a valid python include
path. Containing Python.h for python version “3.7”

– Configuring incomplete, errors occurred!
See also “D:/Blender-Source/build_windows_Full_x64_vc15_Release/CMakeFiles/CMakeOutput.log”.

Any help would be appreciated :slight_smile:

watching this because I too have all the above mentioned and would like to compile my own…

1 Like

I made one step forward in my journey, in my blender-source folder I did:

svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/win64_vc14/python lib/win64_vc14/python

now it compiles further, still has errors. Will keep posting.

I ended up getting all the missing libraries from the svn site. now I get:

LINK : fatal error LNK1181: cannot open input file ‘D:\Blender-Source\blender…\lib\win64_vc14\boost\lib\libboost_wave-vc140-mt-s-x64-1_68.lib’ [D:\Blender-Source\build_windows_Full_x64_vc15_Release\source\creator\blender.vcxproj]

Build FAILED.

LINK : fatal error LNK1181: cannot open input file ‘D:\Blender-Source\blender…\lib\win64_vc14\boost\lib\libboost_wave-vc140-mt-s-x64-1_68.lib’ [D:\Blender-Source\build_windows_Full_x64_vc15_Release\source\blenderplayer\blenderplayer.vcxproj]
LINK : fatal error LNK1181: cannot open input file ‘D:\Blender-Source\blender…\lib\win64_vc14\boost\lib\libboost_wave-vc140-mt-s-x64-1_68.lib’ [D:\Blender-Source\build_windows_Full_x64_vc15_Release\source\creator\blender.vcxproj]
0 Warning(s)
2 Error(s)

Time Elapsed 00:00:06.85

Did you copy and paste enough? LOL Several of us has gotten that error the last few days. If you run the “make full” or “make release” again, it seems to work.

make full didn’t work: D:\Blender-Source\blender…\lib\win64_vc14\boost\lib\libboost_wave-vc140-mt-s-x64-1_68.lib missing

make release didn’t work: D:\Blender-Source\blender…\lib\win64_vc14\boost\lib\libboost_wave-vc140-mt-s-x64-1_68.lib missing or what not.

make lite worked :slight_smile:

You probably just skipped the libs when you did that, LOL.

I did: svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/win64_vc14 lib/win64_vc14, which is supposed to get you all the libraries, I guess svn has a limit to how much it will get for you in one shot.

Edit: NVM, I see what you meant.

I think I have the same problem and I think it’s related to not receiving all the libraries

Here’s what the site tells me to do:

Here are the libraries I’m supposed to get:

Here’s what I got (I didn’t even get the python library I manually downloaded that myself by typing it in):
image

Anyone with some coding experience tell me why I’m unable to download all of them?

My guess is that SVN can’t handle large amounts of data, and just quits. I had to manually svn the missing libraries.

svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/win64_vc14/OpenColorIO lib/win64_vc14/OpenColorIO

and so on.

Just cd to blender source folder and do ./make full nobuild.
That will pull all libraries all 6 Gigs of them, then do ./make release.

got it working

You go to the folder where you keep your library eg.

cd C:\blender-git\lib\win64_vc14

You then run:

svn cleanup

Which unlocks it or something and allows you to download again
followed by:

svn up

Which updates and downloads all the missing stuff
If you get that “server sent a truncated http response body” error again. Redo all the steps until you get everything

3 Likes