我正在尝试为Windows编译Blender。我已按照blender wiki上的说明进行操作
当我在命令提示符下运行命令“make full”时,出现以下错误:
-- 64 bit compiler detected.
-- Visual Studio 2013 detected.
CMake Warning at build_files/cmake/platform/platform_win32.cmake:436 (message):
LLVM debug libs not present on this system. Using release libs for debug
builds.
Call Stack (most recent call first):
CMakeLists.txt:931 (include)
-- OSL not found
CMake Error at CMakeLists.txt:1573 (message):
Missing:
"E:/blender-git/blender/../lib/win64_vc12/python/include/python3.6/Python.h",
Set the cache entry 'PYTHON_INCLUDE_DIR' to point to a valid python include
path. Containing Python.h for python version "3.6"
-- Configuring incomplete, errors occurred!
See also "E:/blender-git/build_windows_Full_x64_vc12_Release/CMakeFiles/CMakeOutput.log".
Microsoft (R) Build Engine version 12.0.40629.0
[Microsoft .NET Framework, version 4.0.30319.42000]
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1009: Project file does not exist.
Switch: E:\blender-git\blender\..\build_windows_Full_x64_vc12_Release\Blender.sln
"Build Failed"
在我看来,CMake找不到所需的python文件。我安装了Python 3.6。看来我应该能够更改“PYTHON_INCLUDE_DIR”的值以指向python安装文件夹,但是没有提示应在哪个文件中进行更改。
最佳答案
您可以在CMake本身的高级选项中进行更改。但是您确定您遵循了正确的步骤,似乎您忘记了获取平台的svn lib文件。
关于python - 编译Windows的Blender时出错-找不到OSL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50557030/