如何从源代码编译Blender?

问题描述:

我刚刚下载了blender souce如何从源代码编译Blender?

如何构建它?

我试过make命令,但我得到这个:

alt text

顺便说一句,我使用Cygwin的Windows上这样做。

+0

请注意,本文中引用的手写makefile已从Blender中删除,现在Blender使用CMake。 Cygwin支持已被移除一段时间了。 – ideasman42 2017-02-26 14:04:52

像Blender这样庞大而复杂的项目往往有很多依赖和复杂性,这使得构建它们自己成为一项非常艰巨的任务。通常,源代码会附带构建指令,告诉您如何构建它。 But you often can find them on the web, too.

+1

你原来的回答也没关系:) – Moeb 2010-02-15 18:24:58

+0

从你提供的链接中,Windows编译太困难了。如果我在我的Redhat机器上试用它,它会在'Ubuntu Gutsy,Hardy,Jaunty','Arch Linux'和'Gentoo'中具备什么资格?我指的是这里提供的发行版:http://wiki.blender.org/index.php/Dev:Doc/Building_Blender/2.4x/Linux – Moeb 2010-02-15 18:31:35

只需检查您的sdl-config是否设置为环境变量。


如果不是,然后设置到SDL-配置所在的目录(setenv命令)
如果SDL-配置不存在,尝试并安装它(我知道Ubuntu的sudo aptitude install libsdl1.2-dev)。
一旦安装,然后检查是否路径已被列入环境变量(env命令)

如果有任何发行版缺失,从这里下载(适用于Linux,http://wiki.blender.org/index.php/Dev:Doc/Building_Blender/2.4x/Linux

那么,你也许应该开始在http://wiki.blender.org/index.php/Dev:Doc/Building_Blender

Cygwin是混乱,但可能。在Windows上,我强烈建议在VisualStudio下编译。看看

http://wiki.blender.org/index.php/Dev:Doc/Hackers_Guide/Building/Cygwin_Make

如果你想建立在Cygwin中。