【问题标题】:CMake Cant Find Some Image LibsCMake 找不到一些图像库
【发布时间】:2014-08-19 06:52:14
【问题描述】:

我正在尝试编译 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

【问题讨论】:

    标签: c++ build visual-studio-2013 cmake blender


    【解决方案1】:

    您下载了源文件但忘记了它的依赖项。对于每个平台,blender 在其SVN repo 中提供其依赖项。

    这是你需要做的:

    1. 在搅拌机目录之外创建文件夹结构“lib/win64_vc12”
    2. cd 在那个目录下,打开你的命令提示符(假设你已经安装了 SVN)并输入

    svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/win64_vc12

    请记住,它是一个大约 6.5Gb 的巨大存储库。

    完成后,在 cmake 中再次运行 configure,它应该可以工作了。

    【讨论】:

    • 我也这样做了,下载了 SVN 存储库(现在是 8 个演出!)但仍然没有骰子。似乎 cmake 需要了解各种第三方库的目录,但我不确定告诉它的最佳方法是什么。
    • 我犯的一个愚蠢的错误是将 lib 文件夹放在搅拌机 (git) 文件夹中。它需要在层次结构的文件夹中。之后它能够找到所有的部门。
    【解决方案2】:

    听起来您在尝试运行make full之前缺少一步...

    您将需要运行 install_deps.sh 脚本或打印构建 Blender 所需的所有主要依赖项的列表(--show-deps 选项)并手动安装它们。

    有关更新的开发环境要求,请参阅 Blender 官方维基 --> https://wiki.blender.org/wiki/Building_Blender/Linux/Ubuntu

    自动依赖安装 Linux 下安装依赖的首选方式现在是使用 install_deps.sh 脚本 以 Blender 资源为特色。它目前支持 Debian(和 派生的)、Fedora、Suse 和 Arch 发行版。使用时 install_deps.sh 脚本,你只需要安装以下 依赖:

    git,构建必备

    然后,获取源代码并运行 install_deps.sh

    cd ~/blender-git
    ./blender/build_files/build_environment/install_deps.sh
    

    【讨论】:

      猜你喜欢
      • 2018-09-12
      • 1970-01-01
      • 1970-01-01
      • 2022-09-28
      • 2015-07-12
      • 2011-12-26
      • 2013-04-21
      • 2017-10-30
      相关资源
      最近更新 更多