[Bf-committers] Error on compilation with cmake for windows

loopduplicate at burningtoken.com loopduplicate at burningtoken.com
Thu Apr 15 04:13:48 CEST 2010


fixed by including lib/windows/pthreads/include in these files:

     trunk/blender/source/blender/gpu/CMakeLists.txt
     trunk/blender/source/creator/CMakeLists.txt
----
or by copying over the contents of /lib/windows/pthreads/include to /source/blender/blenlib
----

On 4/14/2010 1:01 PM, loopduplicate at burningtoken.com wrote:
> Broken for me too.  Patch did not work either.  MSVStudio + cmake win32
> Peace
>
> On 4/14/2010 7:47 AM, (Ry)akiotakis (An)tonis was all like:
>    
>> On 14 April 2010 14:36, lguillaume<lecocqguillaume at gmail.com>   wrote:
>>
>>      
>>> Hi,
>>>
>>> Since a few days, I can't compile blender 2.5 on vc++ express 9 with cmake.
>>> There is 2 errors about the need of pthreads.h
>>>
>>>        
>>      
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>
> Same here, MinGW/Scons. The fix is, along similar lines:
>
> Index: source/blender/gpu/SConscript
> ===================================================================
> --- source/blender/gpu/SConscript	(revision 28190)
> +++ source/blender/gpu/SConscript	(working copy)
> @@ -9,5 +9,7 @@
>   incs += ' #/extern/glew/include #intern/guardedalloc
> #intern/smoke/extern ../imbuf .'
>
>   incs += ' ' + env['BF_OPENGL_INC']
> +if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'win64-vc', 'linuxcross'):
> +	incs += ' ' + env['BF_PTHREADS_INC']
>
>   env.BlenderLib ( 'bf_gpu', sources, Split(incs), defines = defs,
> libtype=['core','player'], priority=[160,110] )
> Index: source/creator/SConscript
> ===================================================================
> --- source/creator/SConscript	(revision 28190)
> +++ source/creator/SConscript	(working copy)
> @@ -11,6 +11,10 @@
>   incs += ' ../kernel/gen_system #/extern/glew/include ../blender/gpu'
>   incs += ' ' + env['BF_OPENGL_INC']
>
> +if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'win64-vc', 'linuxcross'):
> +	incs += ' ' + env['BF_PTHREADS_INC']
> +
> +
>   defs = []
>   if env['WITH_BF_QUICKTIME']:
>   	incs += ' ' + env['BF_QUICKTIME_INC']
>
>
> Thanks Guillaume!
>    



More information about the Bf-committers mailing list