[Bf-committers] Building Blender

Ray Molenkamp ray at lazydodo.com
Mon Apr 30 18:39:23 CEST 2018


-Sorry for the late response, I'm currently traveling so connectivity is spotty at best.

you should be able to make a build with 2015 given 3 conditions are met

1) you have msvc 2015 update 3 or higher

2 You have a full set of our libs in the right place

3) you run 'make full 2015 x64' in the blender source folder.

--Ray


On 4/30/2018 7:09 AM, John Emmas wrote:
> 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 at blender.org
> https://lists.blender.org/mailman/listinfo/bf-committers



More information about the Bf-committers mailing list