[Bf-committers] Building Blender

John Emmas john at creativepost.co.uk
Mon Apr 30 15:09:11 CEST 2018


I (almost) managed to build Blender with VS2015 at my first attempt !!

The main problem is that when compiling some of the modules, I see this 
output :-

       #error "Cannot find pointer size"

which is coming from this section in 'atomic_ops_utils.h' :-

       #if defined(__SIZEOF_POINTER__)
       #  define LG_SIZEOF_PTR __SIZEOF_POINTER__
       #elif defined(UINTPTR_MAX)
       #  if (UINTPTR_MAX == 0xFFFFFFFF)
       #    define LG_SIZEOF_PTR 4
       #  elif (UINTPTR_MAX == 0xFFFFFFFFFFFFFFFF)
       #    define LG_SIZEOF_PTR 8
       #  endif
       #elif defined(__WORDSIZE)  /* Fallback for older glibc and cpp */
       #  if (__WORDSIZE == 32)
       #    define LG_SIZEOF_PTR 4
       #  elif (__WORDSIZE == 64)
       #    define LG_SIZEOF_PTR 8
       #  endif
       #endif

       #ifndef LG_SIZEOF_PTR
       #  error "Cannot find pointer size"
       #endif

So I'm guessing that neither __SIZEOF_POINTER__ nor UNITPTR_MAX nor 
__WORDSIZE are defined anywhere.  Could this be a missing #include 
maybe?  I assume other devs are building Blender successfully with VS2015?

John


More information about the Bf-committers mailing list