building with msvc 2005

albin

05-05-2006 15:44:02

Hi

I am trying to build pyogre (latest from svn), following instructions in the wiki. Problem is, the wraper-code won't compile (see compiler output below). Is the build instructions in the wiki up to date? Swig-version is 1.3.24 and ogre 1.0.7. Has anyone ran in to this before?

thanks,
Albin Holmren


------ Build started: Project: pyogre, Configuration: Debug Py24 Win32 ------
Compiling...
EventSystem.cxx
IndexBufferProxy.cxx
ogre_wrap.cxx
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(120) : warning C4244: 'return' : conversion from '__w64 int' to 'int', possible loss of data
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(387) : warning C4996: 'strcpy' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(412) : warning C4996: 'strncpy' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\string.h(156) : see declaration of 'strncpy'
Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(678) : warning C4311: 'type cast' : pointer truncation from 'void *' to 'unsigned long'
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(685) : warning C4311: 'type cast' : pointer truncation from 'void *' to 'unsigned long'
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(687) : warning C4996: 'strcpy' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(697) : warning C4311: 'type cast' : pointer truncation from 'void *' to 'unsigned long'
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(1092) : warning C4996: 'sprintf' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) : see declaration of 'sprintf'
Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(1945) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7146) : error C2146: syntax error : missing ';' before identifier 'PyTypeObject'
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7146) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7147) : error C3861: '_PySwigObject_type': identifier not found
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7150) : error C2146: syntax error : missing ';' before identifier 'PyObject'
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7150) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7150) : error C2086: 'int SWIGEXPORT' : redefinition
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7146) : see declaration of 'SWIGEXPORT'
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7152) : error C2065: 'SWIG_POINTER_OWN' : undeclared identifier
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7156) : error C2144: syntax error : 'void' should be preceded by ';'
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7156) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7156) : error C2086: 'int SWIGEXPORT' : redefinition
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7146) : see declaration of 'SWIGEXPORT'
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7160) : error C2039: 'ty' : is not a member of 'PySwigObject'
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(639) : see declaration of 'PySwigObject'
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7160) : error C3861: 'SWIG_Python_ConvertPtrAndOwn': identifier not found
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7165) : error C2144: syntax error : 'void' should be preceded by ';'
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7165) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7165) : error C2086: 'int SWIGEXPORT' : redefinition
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7146) : see declaration of 'SWIGEXPORT'
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7167) : error C2065: 'swig_module_info' : undeclared identifier
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7167) : error C2065: 'mi' : undeclared identifier
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7167) : error C3861: 'SWIG_Python_GetModule': identifier not found
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7169) : error C2227: left of '->size' must point to class/struct/union/generic type
type is ''unknown-type''
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7170) : error C2227: left of '->types' must point to class/struct/union/generic type
type is ''unknown-type''
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7170) : error C2227: left of '->str' must point to class/struct/union/generic type
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7170) : error C2227: left of '->types' must point to class/struct/union/generic type
type is ''unknown-type''
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7172) : error C3861: 'PySwigObject_type': identifier not found
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7368) : warning C4267: 'argument' : conversion from 'size_t' to 'unsigned long', possible loss of data
e:\dev\pyogre2\pyogre\ogre\ogre_wrap.cxx(7472) : warning C4267: 'argument' : conversion from 'size_t' to 'unsigned long', possible loss of data
VertexBufferProxy.cxx
Generating Code...
Build log was saved at "file://e:\dev\pyogre2\scripts\vc80\pyogre\Debug Py24\BuildLog.htm"
pyogre - 23 error(s), 11 warning(s)

dermont

07-05-2006 02:35:18

The build instructions in the wiki need updating. The current combination is Swig-version is 1.3.27 and ogre 1.0.6.
Ogre 1.0.7 compiles but hasn't been tested so there may be updates required to run properly.

Try compiling "Release Py24" first.

albin

07-05-2006 22:17:34

problem solved. swig version 1.3.28 seems to work fine. Thanks, dermont.