[Bf-committers] Boolops and msvc7/scons
Johnny Matthews
johnny.matthews at gmail.com
Sat Oct 29 05:51:11 CEST 2005
I am trying to put together the sconscript file for boolops and this is
what I have so far...
#!/usr/bin/python
Import ('user_options_dict')
Import ('library_env')
bop_env = library_env.Copy ()
source_files = [
'intern/BOP_BBox.cpp',
'intern/BOP_BSPNode.cpp',
'intern/BOP_BSPTree.cpp',
'intern/BOP_Edge.cpp',
'intern/BOP_Face2Face.cpp',
'intern/BOP_Face.cpp',
'intern/BOP_Interface.cpp',
'intern/BOP_Material.cpp',
'intern/BOP_MaterialContainer.cpp',
'intern/BOP_MathUtils.cpp',
'intern/BOP_Merge.cpp',
'intern/BOP_Mesh.cpp',
'intern/BOP_Segment.cpp',
'intern/BOP_Splitter.cpp',
'intern/BOP_Tag.cpp',
'intern/BOP_Triangulator.cpp',
'intern/BOP_Vertex.cpp'
]
bop_env.Append (CPPPATH = ['.'])
bop_env.Append (CPPPATH = ['intern'])
bop_env.Append (CPPPATH = ['extern'])
bop_env.Append (CPPPATH = ['#intern/moto/include'])
bop_env.Append (CPPPATH = ['#intern/container'])
bop_env.Append (CPPPATH = ['#intern/memutil'])
bop_env.Library
(target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_BOP',
source=source_files)
But when I compile, I get the following error...
cl /nologo /EHsc /J /W3 /Gd /MT /Og /Ot /Ob1 /Op /G6 /DWIN32 /D_CONSOLE
/DWITH_QUICKTIME /D_LIB /DUSE_OPENAL /DFTGL
_LIBRARY_STATIC /DGAMEBLENDER=0 /DNDEBUG /DNAN_BUILDINFO /DBUILD_DATE
/I\usr\include /c source\creator\buildinfo.c
/FoC:\blendercvs\build\win32\source\creator\dynamic_buildinfo.obj
buildinfo.c
cl /nologo /EHsc /J /W3 /Gd /MT /Og /Ot /Ob1 /Op /G6 /TP /DWIN32
/D_CONSOLE /DWITH_QUICKTIME /D_LIB /DUSE_OPENAL /D
FTGL_LIBRARY_STATIC /DGAMEBLENDER=0 /DNDEBUG
/IC:\blendercvs\build\win32\intern\boolop /Iintern\boolop /Iintern\boo
lop /IC:\blendercvs\build\win32\intern\boolop\intern
/Iintern\boolop\intern /Iintern\boolop\intern /IC:\blendercvs\
build\win32\intern\boolop\extern /Iintern\boolop\extern
/Iintern\boolop\extern /Iintern\moto\include /Iintern\conta
iner /Iintern\memutil /c intern\boolop\intern\BOP_MaterialContainer.cpp
/FoC:\blendercvs\build\win32\intern\boolop\
intern\BOP_MaterialContainer.obj
BOP_MaterialContainer.cpp
intern\boolop\intern\BOP_MaterialContainer.cpp(212) : warning C4244:
'argument' : conversion from 'MT_Scalar' to 'f
loat', possible loss of data
intern\boolop\intern\BOP_MaterialContainer.cpp(217) : warning C4244:
'argument' : conversion from 'MT_Scalar' to 'f
loat', possible loss of data
C:\Program Files\Microsoft Visual C++ Toolkit
2003\include\xutility(1136) : error C2679: binary '=' : no operator f
ound which takes a right-hand operand of type 'const BOP_Material' (or
there is no acceptable conversion)
C:\Program Files\Microsoft Visual C++ Toolkit
2003\include\vector(862) : see reference to function template
instantiation 'void
std::fill<std::vector<_Ty>::_Tptr,_Ty>(_FwdIt,_FwdIt,const _Ty &)' being
compiled
with
[
_Ty=BOP_Material,
_FwdIt=std::vector<BOP_Material>::_Tptr
]
C:\Program Files\Microsoft Visual C++ Toolkit
2003\include\vector(809) : while compiling class-template mem
ber function 'void
std::vector<_Ty>::_Insert_n(std::vector<_Ty>::iterator,std::vector<_Ty>::size_type,const
_Ty &)'
with
[
_Ty=BOP_Material
]
c:\blendercvs\blender\intern\boolop\intern\BOP_MaterialContainer.h(41) :
see reference to class template in
stantiation 'std::vector<_Ty>' being compiled
with
[
_Ty=BOP_Material
]
scons: ***
[C:\blendercvs\build\win32\intern\boolop\intern\BOP_MaterialContainer.obj]
Error 2
scons: building terminated because of errors.
Any thoughts?
More information about the Bf-committers
mailing list