Topic: Compiling maratis

I want to try compiling the svn version so i grabbed tortoise SVN and checked out maratis but I cant seem to build it I do the
python scons thing but i get this


Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\James\Maratis\Scource\trunk\dev>python scons.py
scons: Reading SConscript files ...
sys.platform: win32
Build in release mode
Using 3rdparty libraries in folder: C:\Users\James\Maratis\Scource\3rdparty
Manual use final dir : C:\Users\James\Maratis\Scource\trunk\dev\prod\win32_i386\
release\Examples\ManualUse
scons: done reading SConscript files.
scons: Building targets ...
cl /Fobuild\win32_i386\release\3rdparty\assimp\code\JoinVerticesProcess.obj /c C
:\Users\James\Maratis\Scource\3rdparty\assimp\code\JoinVerticesProcess.cpp /TP /
nologo /EHsc /nologo /GR /FC /W1 /O2 /Ot /MD /arch:SSE2 /DWIN32 /D_MBCS /DNDEBUG
/DASSIMP_BUILD_BOOST_WORKAROUND /DASSIMP_BUILD_NO_OWN_ZLIB /Ibuild\win32_i386\r
elease\3rdparty\assimp /IC:\Users\James\Maratis\Scource\3rdparty\assimp /Ibuild\
win32_i386\release\3rdparty\assimp\include /IC:\Users\James\Maratis\Scource\3rdp
arty\assimp\include /Ibuild\win32_i386\release\3rdparty\assimp\code\BoostWorkaro
und /IC:\Users\James\Maratis\Scource\3rdparty\assimp\code\BoostWorkaround /Ibuil
d\win32_i386\release\3rdparty\zlib /IC:\Users\James\Maratis\Scource\3rdparty\zli
b
JoinVerticesProcess.cpp
c:\users\james\maratis\scource\3rdparty\assimp\code\vertex.h(268) : error C2039:
'plus' : is not a member of 'std'
c:\users\james\maratis\scource\3rdparty\assimp\code\vertex.h(268) : error C2065:
'plus' : undeclared identifier
c:\users\james\maratis\scource\3rdparty\assimp\code\vertex.h(268) : error C2974:
'Assimp::Vertex::BinaryOp' : invalid template argument for 'op', type expected
        c:\users\james\maratis\scource\3rdparty\assimp\code\vertex.h(236) : see
declaration of 'Assimp::Vertex::BinaryOp'
        c:\users\james\maratis\scource\3rdparty\assimp\code\vertex.h(216) : see
declaration of 'Assimp::Vertex::BinaryOp'
        c:\users\james\maratis\scource\3rdparty\assimp\code\vertex.h(196) : see
declaration of 'Assimp::Vertex::BinaryOp'
c:\users\james\maratis\scource\3rdparty\assimp\code\vertex.h(272) : error C2039:
'minus' : is not a member of 'std'
c:\users\james\maratis\scource\3rdparty\assimp\code\vertex.h(272) : error C2065:
'minus' : undeclared identifier
c:\users\james\maratis\scource\3rdparty\assimp\code\vertex.h(272) : error C2974:
'Assimp::Vertex::BinaryOp' : invalid template argument for 'op', type expected
        c:\users\james\maratis\scource\3rdparty\assimp\code\vertex.h(236) : see
declaration of 'Assimp::Vertex::BinaryOp'
        c:\users\james\maratis\scource\3rdparty\assimp\code\vertex.h(216) : see
declaration of 'Assimp::Vertex::BinaryOp'
        c:\users\james\maratis\scource\3rdparty\assimp\code\vertex.h(196) : see
declaration of 'Assimp::Vertex::BinaryOp'
scons: *** [build\win32_i386\release\3rdparty\assimp\code\JoinVerticesProcess.ob
j] Error 2
scons: building terminated because of errors.

Last edited by Rapdorian (2013-02-27 17:50:52)

Re: Compiling maratis

Hi,
it seems to be a known bug with recent version of visual studio, after they move some std functions somewhere else,
I added : #include <functional> to Vertex.h

try to update svn and compile again.

if you see the same error again, add "#include <functional>" to the code file

Re: Compiling maratis

Thank you I had too change 1 additional file then it went on perfectly


as a side note is there some way to export a level from blender with the model and its lighting?

Last edited by Rapdorian (2013-02-28 15:31:20)