OpenImageIO源代码中一处头文件包含顺序的错误导致无法编译成功。 可手动应用此文中提供的补丁以解决问题。
https://github.com/OpenImageIO/oiio/issues/473
亮点 :
This problem also was reported in Blender community:
http://lists.blender.org/pipermail/bf-committers/2012-November/038164.html
http://blenderartists.org/forum/showthread.php?272473-Troubles-building-Blender-on-32bit-Linux-with-cmake
And Blender's install_deps.sh script uses the following patch to avoid the build failure:
diff --git a/src/libutil/SHA1.cpp b/src/libutil/SHA1.cpp
index b9e6c8b..c761185 100644
--- a/src/libutil/SHA1.cpp
+++ b/src/libutil/SHA1.cpp
@@ -8,9 +8,9 @@
// If compiling with MFC, you might want to add #include "StdAfx.h"
+#include "SHA1.h"
#include "hash.h"
#include "dassert.h"
-#include "SHA1.h"
#ifdef SHA1_UTILITY_FUNCTIONS
#define SHA1_MAX_FILE_BUFFER 8000
HxLauncher: Launch Android applications by voice commands