我正在尝试编译Blender 2.7我正在尝试生成Visual Studio 12(2013)项目文件使用CMake,但问题是我遇到错误
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
CMake Warning at CMakeLists.txt:1089 (message):
Using HARDCODED libpng locations
Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
Found Freetype: C:/Users/Alfrek/Desktop/Blender 2.7/blender-2.71/../lib/win64_vc12/freetype/lib/freetype2ST.lib
Could NOT find OpenEXR (missing: _openexr_LIBRARIES OPENEXR_INCLUDE_DIR)
CMake Warning at CMakeLists.txt:1172 (message):
Using HARDCODED OpenEXR locations
Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
CMake Warning at CMakeLists.txt:1191 (message):
Using HARDCODED libtiff locations
Could NOT find Boost
CMake Warning at CMakeLists.txt:1230 (message):
USING HARDCODED boost locations
Could NOT find OpenImageIO (missing: OPENIMAGEIO_LIBRARY OPENIMAGEIO_INCLUDE_DIR)
CMake Error at CMakeLists.txt:1928 (message):
Apple and Windows require pre-compiled libs at:
'C:/Users/Alfrek/Desktop/Blender 2.7/blender-2.71/../lib/win64_vc12'
我不知道该怎么办
我有一台Windows 7 64位计算机和我正在使用Visual Studio Professional 2013
您下载了源文件,但忘记了其依赖性。对于每个平台,Blender在其SVN repo中提供其依赖项。
这是您需要做的:
svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/win64_vc12
请记住,它的巨大回购约为6.5Gb。
完成后,在cmake中再次运行配置,它应该可以工作。
听起来您在尝试运行make full
...之前缺少了一步
您将需要运行install_deps.sh脚本或打印生成Blender所需的所有主要依赖项的列表(--show-deps选项)并手动安装它们。
请参阅官方Blender Wiki了解更新的开发环境要求-> https://wiki.blender.org/wiki/Building_Blender/Linux/Ubuntu
自动依赖项安装现在,在Linux下安装依赖项的首选方法是使用install_deps.sh脚本。带有Blender来源。目前,它支持Debian(和派生),Fedora,Suse和Arch发行版。使用时install_deps.sh脚本,只需要安装以下内容依赖关系:
git,build-essential
然后,获取源代码并运行install_deps.sh
cd ~/blender-git ./blender/build_files/build_environment/install_deps.sh