Patch for compiling Blender 2.76 on non-x86 architectures.
Closed, ResolvedPublic

Description

System Information
ArchlInux ARM on Asus Chromebook C201 (RK3288, CPU:4*Cortex-A17, GPU:Mali-764 (4 cœurs))

Blender Version
Broken: 2.76

Short description of error
Blender doesn't compile because of a not tested include in intern/cycles/util/util_optimization.h

Exact steps for others to reproduce the error
make =>
fatal error: x86intrin.h: no such file or directory

To resolve this problem

change the test:

#if defined(_MSC_VER)

#include <intrin.h>

#else

#include <x86intrin.h>

#endif

to

#if defined(_MSC_VER)

#include <intrin.h>

#elif defined(GNUC) && (defined(x86_64) || defined(i386))

#include <x86intrin.h>

#elif defined(GNUC) && defined(ARM_NEON)
#include <arm_neon.h>
#endif

Here an example of tests for more architectures: http://stackoverflow.com/questions/11228855/header-files-for-simd-intrinsics

I made the package this way for my system, works fine (full OpenGL, so no hw acceleration, but work nicely for simple scenes with LLVMpipe, need to manage to build it with OpenGL ES):

Dirty patched PKGBUILD for ARchlinux ARM:

Add Comment