[Bf-cycles] Compile error after bvh commit

Thomas Dinges blender at dingto.org
Tue Apr 24 20:09:12 CEST 2012


I meant line 111, sorry. :)

Am 24.04.2012 20:08, schrieb Thomas Dinges:
> Hi Brecht,
> thanks for your efforts but I still get errors:
>
> intern\cycles\bvh\bvh_binning.cpp(71) : error C2065: 'ssize_t':
> nichtdeklarierte
> r Bezeichner
>
> I think we need something like in BLI_winstuff.h (line 11 and following).
> If I copy the following code from the BLI file into bvh_binning.cpp it
> compiles fine:
>
> /* mingw using _SSIZE_T_ to declare ssize_t type */
> #ifndef _SSIZE_T_
> #  define _SSIZE_T_
> /* python uses HAVE_SSIZE_T */
> #  ifndef HAVE_SSIZE_T
> #    define HAVE_SSIZE_T 1
> #    ifndef FREE_WINDOWS64
> typedef long ssize_t;
> #    endif
> #  endif
> #endif
>
> Regards,
> Thomas
>
> Am 24.04.2012 20:02, schrieb Brecht Van Lommel:
>> I committed a fix, hopefully it helps.
>>
>> Brecht.
>>
>> 2012/4/24 Thomas Dinges<blender at dingto.org>:
>>> Hi Brecht,
>>> I can't compile the tomato Branch and Cycles after the recent bvh
>>> changes. (MSVC, Scons)
>>>
>>> The error log:
>>>
>>> Compiling ==>   'bvh_binning.cpp'
>>> bvh_binning.cpp
>>> Compiling ==>   'bvh_build.cpp'
>>> intern\cycles\util\util_boundbox.h(29) : error C2871: 'std': Es ist kein
>>> Namespa
>>> ce mit diesem Namen vorhanden
>>> Compiling ==>   'bvh_node.cpp'
>>> bvh_build.cpp
>>> intern\cycles\bvh\bvh_binning.cpp(69) : error C2065: 'ssize_t':
>>> nichtdeklarierte
>>> r Bezeichner
>>> intern\cycles\bvh\bvh_binning.cpp(69) : error C2146: Syntaxfehler:
>>> Fehlendes ';'
>>>    vor Bezeichner 'i'
>>> intern\cycles\bvh\bvh_binning.cpp(69) : error C2065: 'i':
>>> nichtdeklarierter Beze
>>> ichner
>>> intern\cycles\bvh\bvh_binning.cpp(71) : error C2065: 'i':
>>> nichtdeklarierter Beze
>>> ichner
>>> intern\cycles\bvh\bvh_binning.cpp(71) : error C2065: 'i':
>>> nichtdeklarierter Beze
>>> ichner
>>> intern\cycles\bvh\bvh_binning.cpp(71) : error C3861: "ssize_t":
>>> Bezeichner wurde
>>>    nicChtompiling ==>   'bvh_sort.cpp'
>>>    gefunden.
>>> intern\cycles\bvh\bvh_binnibnvgh._cnpopd(e7.1c)p p:
>>>    error C2065: 'i': nichtdeklarierter Bezeichner
>>> intern\cycles\bvh\bvh_binning.cpp(72) : error C2065: 'i':
>>> nichtdeklarierter Beze
>>> ichner
>>> intern\cycles\bvh\bvh_binning.cpp(75) : error C2065: 'i':
>>> nichtdeklarierter Beze
>>> ichner
>>> intern\cycles\bvh\bvh_binning.cpp(76) : error C2065: 'i':
>>> nichtdeklarierter Beze
>>> ichner
>>> intern\cycles\bvh\bvh_binning.cpp(93) : error C2065: 'i':
>>> nichtdeklarierter Beze
>>> ichner
>>> intern\cycles\bvh\bvh_binning.cpp(93) : error C3861: "ssize_t":
>>> Bezeichner wurde
>>>    nicht gefunden.
>>> intern\cycles\bvh\bvh_binning.cpp(95) : error C2065: 'i':
>>> nichtdeklarierter Beze
>>> ichner
>>> intern\cycles\bvh\bvh_binning.cpp(168) : error C2065: 'ssize_t':
>>> nichtdeklariert
>>> er Bezeichner
>>> intern\cycles\bvh\bvh_binning.cpp(168) : error C2146: Syntaxfehler:
>>> Fehlendes ';
>>> ' vor Bezeichner 'l'
>>> intern\cycles\bvh\bvh_binning.cpp(168) : error C2065: 'l':
>>> nichtdeklarierter Bez
>>> eichner
>>> intern\cycles\bvh\bvh_binning.cpp(168) : error C2065: 'r':
>>> nichtdeklarierter Bez
>>> eichner
>>> intern\cycles\bvh\bvh_binning.cpp(170) : error C2065: 'l':
>>> nichtdeklarierter Bez
>>> eichner
>>> intern\cycles\bvh\bvh_binning.cpp(170) : error C2065: 'r':
>>> nichtdeklarierter Bez
>>> eichner
>>> intern\cycles\bvh\bvh_binning.cpp(170) : fatal error C1903:
>>> Weiterverarbeitung n
>>> acihn tveorrnh\ecryicgleems \Fuethille\ru tniilc_hbto umnödgbloixc.hh;(
>>> 2K9o)m p
>>> :i leirerrourn gC 2w8i7r1d:  a'bsgtedb'r:o cEhse ni.s
>>> t kein Namespace mit diesem Namen vorhanden
>>> bvh_sort.cpp
>>> Compiling ==>   'bvh_split.cpp'
>>> intern\cycles\util\util_boundbox.h(29) : error C2871: 'std': Es ist kein
>>> Namespa
>>> ce mit diesem Namen vorhanden
>>> bvh_split.cpp
>>> intern\cycles\util\util_boundbox.h(29) : error C2871: 'std': Es ist kein
>>> Namespa
>>> ce mit diesem Namen vorhanden
>>> intern\cycles\util\util_boundbox.h(29) : error C2871: 'std': Es ist kein
>>> Namespa
>>> ce mit diesem Namen vorhanden
>>> Compiling ==>   'kernel.cpp'
>>> Compiling ==>   'attribute.cpp'
>>> kernel.cpp
>>> attribute.cpp
>>> scons: ***
>>> [D:\blender_dev\code\build\soc-2011-tomato\intern\cycles\bvh\bvh_binn
>>> ing.obj] Error 2
>>>
>>> Regards,
>>> Thomas
>>>
>>> --
>>> Thomas Dinges
>>> Blender Developer, Artist and Musician
>>>
>>> www.dingto.org
>>>
>>> _______________________________________________
>>> Bf-cycles mailing list
>>> Bf-cycles at blender.org
>>> http://lists.blender.org/mailman/listinfo/bf-cycles
>> _______________________________________________
>> Bf-cycles mailing list
>> Bf-cycles at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-cycles
>


-- 
Thomas Dinges
Blender Developer, Artist and Musician

www.dingto.org



More information about the Bf-cycles mailing list