python - 编译Windows的Blender时出错-找不到OSL

标签 python windows compiler-errors blender

我正在尝试为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/

相关文章:

python - 使用 python 抓取黄页 href

c# - 如何使用 SuperWebSocket 创建 WebSocket 服务器

c++ - 为什么我的类(class)没有链接?

c++ - 如何在 C++ 中更改事件桌面墙纸

Windows 上的 Ruby 脚本进程监控

excel - 调用返回 ArrayList 的函数

C# 编译器期望右大括号

python - 如何使用Snakemake中的expand函数对列表进行排列或组合

python - python抽象基类可以继承自C扩展吗?

python - Pandas 数据框中几列的总和