BlenderCN论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

楼主: kidux

Blender编译及生成2014_9更新

[复制链接]
发表于 2012-5-15 08:34:30 | 显示全部楼层
能出个详细的点的教程不。。

英语不太好
回复 支持 反对

使用道具 举报

发表于 2012-7-27 15:17:23 | 显示全部楼层
没生成成功,想参考一下
回复 支持 反对

使用道具 举报

发表于 2012-12-26 18:19:11 | 显示全部楼层
HardyKevin 发表于 2011-7-9 01:29
谢谢指点,编译及生成都挺顺利的,可运行生成的blender.exe时出现这个错误,请问是什么原因?如何解决?

...

是不是在Py_Initialize()那个函数那里挂了?
是因为INSTALL这个项目没编。
在VS 的Configuration Manager中把这个项目勾上就行了
回复 支持 反对

使用道具 举报

发表于 2013-1-29 07:35:47 | 显示全部楼层
本帖最后由 840411814 于 2013-1-29 21:49 编辑

http://wiki.blender.org/index.ph ... /Linux/Ubuntu/CMake
http://wiki.blender.org/index.php/Dev:2.5/Doc/Building_Blender/Linux/Ubuntu/Scons

系统是ubuntu12.04 lts 32位,已经更新
两种方法都不成功,菜鸟不太懂,求指教。

步骤是这样
sudo apt-get update; sudo apt-get install subversion build-essential

~/.subversion/servers在这个文件里加一行ssl-trust-default-ca = no

cd ~mkdir blender-svncd blender-svn
svn co https://svn.blender.org/svnroot/bf-blender/trunk/blender
cd ~/blender-svn
./blender/build_files/build_environment/install_deps.sh

接下来是两种方式
cmake
  1. sudo apt-get install cmake cmake-curses-gui

  2. cd ~/blender-svn/blender
  3. make

  4. 然后就提示错误

  5. -- HAVE_STDBOOL_H = 1
  6. CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
  7. Please set them or make sure they are set and tested correctly in the CMake files:
  8. /home/user/blender-svn/blender/extern/carve/Boost_INCLUDE_DIR
  9.    used as include directory in directory /home/user/blender-svn/blender/extern/carve
  10. /home/user/blender-svn/blender/intern/audaspace/Boost_INCLUDE_DIR
  11.    used as include directory in directory /home/user/blender-svn/blender/intern/audaspace
  12. /home/user/blender-svn/blender/intern/bsp/Boost_INCLUDE_DIR
  13.    used as include directory in directory /home/user/blender-svn/blender/intern/bsp
  14. /home/user/blender-svn/blender/intern/locale/Boost_INCLUDE_DIR
  15.    used as include directory in directory /home/user/blender-svn/blender/intern/locale
  16. /home/user/blender-svn/blender/source/gameengine/BlenderRoutines/Boost_INCLUDE_DIR
  17.    used as include directory in directory /home/user/blender-svn/blender/source/gameengine/BlenderRoutines
  18. /home/user/blender-svn/blender/source/gameengine/Converter/Boost_INCLUDE_DIR
  19.    used as include directory in directory /home/user/blender-svn/blender/source/gameengine/Converter
  20. /home/user/blender-svn/blender/source/gameengine/Ketsji/Boost_INCLUDE_DIR
  21.    used as include directory in directory /home/user/blender-svn/blender/source/gameengine/Ketsji
  22. Boost_INCLUDE_DIR (ADVANCED)
  23.    used as include directory in directory /home/user/blender-svn/blender/intern/cycles
  24.    used as include directory in directory /home/user/blender-svn/blender/intern/cycles/blender
  25.    used as include directory in directory /home/user/blender-svn/blender/intern/cycles/bvh
  26.    used as include directory in directory /home/user/blender-svn/blender/intern/cycles/device
  27.    used as include directory in directory /home/user/blender-svn/blender/intern/cycles/doc
  28.    used as include directory in directory /home/user/blender-svn/blender/intern/cycles/doc/license
  29.    used as include directory in directory /home/user/blender-svn/blender/intern/cycles/kernel
  30.    used as include directory in directory /home/user/blender-svn/blender/intern/cycles/render
  31.    used as include directory in directory /home/user/blender-svn/blender/intern/cycles/subd
  32.    used as include directory in directory /home/user/blender-svn/blender/intern/cycles/util

  33. -- Configuring incomplete, errors occurred!
复制代码

Scons

  1. cd ~/blender-svn/blender
  2. python scons/scons.py

  3. 然后就提示错误

  4. scons: Reading SConscript files ...
  5. Command-line arguments
  6.     No  command-line arguments given
  7. Command-line targets
  8.     No targets given, using default
  9. Using config file: build_files/scons/config/linux-config.py
  10. user-config.py not found, no user overrides
  11. Build with parallel jobs: 1
  12. Build with debug symbols: False

  13. Missing: Python.h and/or pyconfig.h in "/usr/include/python3.3m"
  14.          Set 'BF_PYTHON_INC' to point to valid include path(s),
  15.          containing Python.h and pyconfig.h for Python version "3.3".

  16.          Example: python scons/scons.py BF_PYTHON_INC=../Python/include
复制代码



回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-1-29 15:01:51 | 显示全部楼层
http://wiki.blender.org/index.ph ... /Linux/Ubuntu/CMake

加了一段惊叹号:::
The preferred way to install dependencies under Linux is now to use the install_deps.sh script featured with Blender sources. It currently supports Debian (and derived), Fedora and Suse distributions. In this case, you should only install those dependencies:
回复 支持 反对

使用道具 举报

发表于 2013-1-29 21:51:24 | 显示全部楼层
楼上是跟我说吗?
用google翻译,大概明白,ubuntu派生于debian的,应该也是用它推荐的install_deps.sh脚本来安装依赖

点评

编译成功后写个教程放论坛。自己理解的东西写上来,再帮你看看,改改。  详情 回复 发表于 2013-1-31 13:24
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-1-31 13:24:27 | 显示全部楼层
840411814 发表于 2013-1-29 21:51
楼上是跟我说吗?
用google翻译,大概明白,ubuntu派生于debian的,应该也是用它推荐的install_deps.sh脚本 ...

编译成功后写个教程放论坛。自己理解的东西写上来,再帮你看看,改改。
回复 支持 反对

使用道具 举报

发表于 2013-4-13 17:13:24 | 显示全部楼层
求教楼主,编译的时候报这个错是怎么回事?
4>------ Build started: Project: bf_freestyle, Configuration: Debug Win32 ------
4>Build started 2013/4/13 17:13:16.
4>InitializeBuildStatus:
4>  Touching "bf_freestyle.dir\Debug\bf_freestyle.unsuccessfulbuild".
4>CustomBuild:
4>  All outputs are up-to-date.
4>ClCompile:
4>  Functions1D.cpp
4>c:\program files\microsoft visual studio 10.0\vc\include\xmemory(208): error C2440: 'initializing' : cannot convert from 'int' to 'Freestyle::ViewShape *'
4>          Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast

点评

官方只支持vs2008编译哦。  详情 回复 发表于 2013-4-13 21:18
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-4-13 21:18:45 | 显示全部楼层
…… 发表于 2013-4-13 17:13
求教楼主,编译的时候报这个错是怎么回事?
4>------ Build started: Project: bf_freestyle, Configuratio ...

官方只支持vs2008编译哦。
回复 支持 反对

使用道具 举报

发表于 2013-4-19 13:14:53 | 显示全部楼层
请教楼主
我基本上是按CC书上的流程来实现的
tortoiseSVN下载源码和库——>Cmake编译——>VC2008build
build有2个错误:
-----------------------------------------------------
C:\blender_source\blender\extern\libmv\third_party\ceres\internal\ceres/collections_port.h(41) : fatal error C1083: Cannot open include file: 'unordered_map': No such file or directory
-----------------------------------------------------
122>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\extern_ceres.lib'
-----------------------------------------------------
========== Build: 119 succeeded, 2 failed, 2 up-to-date, 3 skipped ==========

此外  在Cmake配置时 有如下标红
Cmake warning at Cmakelist.txt:2082(message)
"numpy" path could not be found in
……

还希望LZ指点详细些,不胜感激
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

Blender最新中文教学视频|Blender头条|小黑屋|手机版|Archiver|Blender中国 ( 蜀ICP备17002929号 )360网站安全检测平台

GMT+8, 2019-1-16 15:07 , Processed in 0.035132 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表