[Bf-committers] compiling VideoTexture on mac osx

Mathias Panzenböck grosser.meister.morti at gmx.net
Mon Nov 3 22:21:48 CET 2008


I guess that means that are different python version. The python C API misses
"const correctness" in some places. This seems to have changed between those two
version [1]. PyModule_AddObject needs the name of the object as 2nd parameter.
It does not change this string so you can pass a const char* even if it wants a
char*. Just add a cast.

	-panzi

[1] compare:
http://www.python.org/doc/2.4/api/moduleObjects.html
http://www.python.org/doc/2.5/api/moduleObjects.html

jmsoler at free.fr schrieb:
> That's the same rev on mac osx 10.5 ix86.
> 
> Selon Alphonso Bedoya <alphonso.bedoya at gmail.com>:
> 
>> FWIW, I've successfully compiled rev 17309 on Intel OX 10.4 with scons.
>>
>> On Mon, Nov 3, 2008 at 10:28 AM,  <jmsoler at free.fr> wrote:
>>>
>>> At least one problem  again :
>>>
>>> source/gameengine/VideoTexture/PyTypeList.cpp: In member function 'void
>>> PyTypeList::reg(PyObject*)':
>>> source/gameengine/VideoTexture/PyTypeList.cpp:81: error: invalid conversion
>> from
>>> 'const char*' to 'char*'
>>> source/gameengine/VideoTexture/PyTypeList.cpp:81: error:   initializing
>> argument
>>> 2 of 'int PyModule_AddObject(PyObject*, char*, PyObject*)'
>>> scons: ***
>>>
> [/Users/me/developpement/bf-blender/build/darwin/source/gameengine/VideoTexture/PyTypeList.o]
>>> Error 1
>>>
>>>
>>> jms
>>> _______________________________________________
>>> Bf-committers mailing list
>>> Bf-committers at blender.org
>>> http://lists.blender.org/mailman/listinfo/bf-committers
>>>
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
>>
> 
> 
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
> 



More information about the Bf-committers mailing list