Re: [Bf-committers] Linux build error: svn 35825

2011-03-30 Thread Richard Shaw
On Wed, Mar 30, 2011 at 10:31 AM, Campbell Barton  wrote:
> On Wed, Mar 30, 2011 at 3:03 PM, Richard Shaw  wrote:
>> On Mon, Mar 28, 2011 at 8:11 AM, Richard Shaw  wrote:
>>> On Mon, Mar 28, 2011 at 6:44 AM, Campbell Barton  
>>> wrote:
 This is used by a macro to check if python interpreter is active:
 #define PYC_INTERPRETER_ACTIVE
 (((PyThreadState*)_Py_atomic_load_relaxed(&_PyThreadState_Current)) !=
 NULL)

 Py 3.1 works a bit differently, you could just check if
 PyThreadState_GET() is not NULL, in py3.2 that aborts blender so I had
 to look at pythons source.
>>
>> Campbell,
>>
>> That did the trick. My patch worked on the first try (which only
>> impresses me because I'm not a C programmer so I guessed at the
>> syntax).
>>
>> I got a good build but grep'ing through the build log I did find these 
>> warnings:
>>
>> Parsing file 
>> /builddir/buil/builddir/build/BUILD/blender-2.56.svn35889/source/blender/makesrna/intern/rna_ui_api.c:77:
>> Warning: include file UI_icons.h not found, perhaps you forgot to add
>> its directory to INCLUDE_PATH?
>> Prep/builddir/build/BUILD/blender-2.56.svn35889/intern/iksolver/intern/TNT/vecadaptor.h:254:
>> Warning: include file iostream not found, perhaps you forgot to add
>> its directory to INCLUDE_PATH?
>>
>> Anything to worry about?
>>
>> Thanks,
>> Richard
>
> Thats strange, if the file isnt found blender shouldnt build, the
> include is added
> ./source/blender/makesrna/intern/CMakeLists.txt:145
>
> Just built with gcc4.6 and it doesn't give any warnings about missing
> includes with  RNA.

Never mind. After investigating I'm pretty sure the error is from
doxygen and not the build process.

Thanks,
Richard
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] Linux build error: svn 35825

2011-03-30 Thread Campbell Barton
On Wed, Mar 30, 2011 at 3:03 PM, Richard Shaw  wrote:
> On Mon, Mar 28, 2011 at 8:11 AM, Richard Shaw  wrote:
>> On Mon, Mar 28, 2011 at 6:44 AM, Campbell Barton  
>> wrote:
>>> This is used by a macro to check if python interpreter is active:
>>> #define PYC_INTERPRETER_ACTIVE
>>> (((PyThreadState*)_Py_atomic_load_relaxed(&_PyThreadState_Current)) !=
>>> NULL)
>>>
>>> Py 3.1 works a bit differently, you could just check if
>>> PyThreadState_GET() is not NULL, in py3.2 that aborts blender so I had
>>> to look at pythons source.
>
> Campbell,
>
> That did the trick. My patch worked on the first try (which only
> impresses me because I'm not a C programmer so I guessed at the
> syntax).
>
> I got a good build but grep'ing through the build log I did find these 
> warnings:
>
> Parsing file 
> /builddir/buil/builddir/build/BUILD/blender-2.56.svn35889/source/blender/makesrna/intern/rna_ui_api.c:77:
> Warning: include file UI_icons.h not found, perhaps you forgot to add
> its directory to INCLUDE_PATH?
> Prep/builddir/build/BUILD/blender-2.56.svn35889/intern/iksolver/intern/TNT/vecadaptor.h:254:
> Warning: include file iostream not found, perhaps you forgot to add
> its directory to INCLUDE_PATH?
>
> Anything to worry about?
>
> Thanks,
> Richard

Thats strange, if the file isnt found blender shouldnt build, the
include is added
./source/blender/makesrna/intern/CMakeLists.txt:145

Just built with gcc4.6 and it doesn't give any warnings about missing
includes with  RNA.
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] Linux build error: svn 35825

2011-03-30 Thread Richard Shaw
On Mon, Mar 28, 2011 at 8:11 AM, Richard Shaw  wrote:
> On Mon, Mar 28, 2011 at 6:44 AM, Campbell Barton  wrote:
>> This is used by a macro to check if python interpreter is active:
>> #define PYC_INTERPRETER_ACTIVE
>> (((PyThreadState*)_Py_atomic_load_relaxed(&_PyThreadState_Current)) !=
>> NULL)
>>
>> Py 3.1 works a bit differently, you could just check if
>> PyThreadState_GET() is not NULL, in py3.2 that aborts blender so I had
>> to look at pythons source.

Campbell,

That did the trick. My patch worked on the first try (which only
impresses me because I'm not a C programmer so I guessed at the
syntax).

I got a good build but grep'ing through the build log I did find these warnings:

Parsing file 
/builddir/buil/builddir/build/BUILD/blender-2.56.svn35889/source/blender/makesrna/intern/rna_ui_api.c:77:
Warning: include file UI_icons.h not found, perhaps you forgot to add
its directory to INCLUDE_PATH?
Prep/builddir/build/BUILD/blender-2.56.svn35889/intern/iksolver/intern/TNT/vecadaptor.h:254:
Warning: include file iostream not found, perhaps you forgot to add
its directory to INCLUDE_PATH?

Anything to worry about?

Thanks,
Richard
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] Linux build error: svn 35825

2011-03-28 Thread Richard Shaw
On Mon, Mar 28, 2011 at 6:44 AM, Campbell Barton  wrote:
> This is used by a macro to check if python interpreter is active:
> #define PYC_INTERPRETER_ACTIVE
> (((PyThreadState*)_Py_atomic_load_relaxed(&_PyThreadState_Current)) !=
> NULL)
>
> Py 3.1 works a bit differently, you could just check if
> PyThreadState_GET() is not NULL, in py3.2 that aborts blender so I had
> to look at pythons source.

Dang... I was hoping it wasn't a Python 3.1 problem I may give up
on keeping an up-to-date build for Fedora 14 and just stick with my
last successful build.

Thanks,
Richard
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] Linux build error: svn 35825

2011-03-28 Thread Campbell Barton
This is used by a macro to check if python interpreter is active:
#define PYC_INTERPRETER_ACTIVE
(((PyThreadState*)_Py_atomic_load_relaxed(&_PyThreadState_Current)) !=
NULL)

Py 3.1 works a bit differently, you could just check if
PyThreadState_GET() is not NULL, in py3.2 that aborts blender so I had
to look at pythons source.

On Sun, Mar 27, 2011 at 8:58 PM, Richard Shaw  wrote:
> Here's the error:
> error: /builddir/build/SPECS/blender.spec:153: parseExpressionBoolean returns 
> -1
> /builddir/build/BUILD/blender-2.56.svn35825/source/blender/python/generic/py_capi_utils.c:61:2:
> error: implicit declaration of function '_Py_atomic_load_relaxed'
>
> Richard
> ___
> Bf-committers mailing list
> Bf-committers@blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>



-- 
- Campbell
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


[Bf-committers] Linux build error: svn 35825

2011-03-27 Thread Richard Shaw
Here's the error:
error: /builddir/build/SPECS/blender.spec:153: parseExpressionBoolean returns -1
/builddir/build/BUILD/blender-2.56.svn35825/source/blender/python/generic/py_capi_utils.c:61:2:
error: implicit declaration of function '_Py_atomic_load_relaxed'

Richard
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers