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
_______________________________________________
Bf-committers mailing list
Bf-committers@blender.org
https://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to