[Bf-committers] scons/freebsd with gameengine question

Kester Maddock Christopher.Maddock.1 at uni.massey.ac.nz
Wed Apr 6 13:17:48 CEST 2005


It looks to me like a conflict between your standard C and your standard C++ 
headers.

The only thing I can think of is: 1. to go through and replace all the 
#include <iostream.h> etc with #include <iostream> (or viceversa)
2. #define __CUSTOM_STREAM
3. Try and isolate it - create an empty file with just #include <iostream> in 
it and see if that compiles.   Keep adding (system) include files from 
KX_IpoConvert.cpp until it breaks.

As far as I know, the game engine doesn't use any ctype functions (only some 
output stream functions.)

Kester

On Wednesday 06 April 2005 01:47, Hans Lambermont wrote:
> Chris Want wrote:
> > I'm not a Scons or FreeBSD expert, but I would recommend
> > adding a line:
> >
> > kx_blenderhook_env.Append (CPPPATH = user_options_dict['OPENGL_INCLUDE'])
> >
> > to source/gameengine/BlenderRoutines/SConscript.
>
> Thanks, that works.
>
> Now I'm stuck at the same problem as with the makefiles:
>
> g++ -pipe -fPIC -funsigned-char -O2 -Wall -W -DGAMEBLENDER=1
> -DUSE_SUMO_SOLID -DNDEBUG
> -I/new/usr/ports/graphics/blender-devel/work/build/freebsd6/source/gameengi
>ne/Converter -Isource/gameengine/Converter -Isource/gameengine/Converter
> -Isource/kernel/gen_system -Iintern/string -Iintern/guardedalloc
> -Isource/gameengine/Rasterizer/RAS_OpenGLRasterizer -Iintern/bmfont
> -Iintern/SoundSystem -Iintern/SoundSystem/include
> -Iintern/SoundSystem/openal -Iintern/SoundSystem/dummy
> -Iintern/SoundSystem/intern -Isource/gameengine/Converter
> -Isource/gameengine/BlenderRoutines -Isource/blender/imbuf
> -Iintern/moto/include -Isource/gameengine/Ketsji
> -Isource/gameengine/Ketsji/KXNetwork -Isource/blender/blenlib
> -Isource/blender/blenkernel -Isource/blender -Isource/blender/include
> -Isource/blender/makesdna -Isource/gameengine/Rasterizer
> -Isource/gameengine/GameLogic -Isource/gameengine/Expressions
> -Isource/gameengine/Network -Isource/gameengine/SceneGraph
> -Isource/gameengine/Physics/common -Isource/gameengine/Physics/BlOde
> -Isource/gameengine/Physics/Dummy -Isource/gameengine/Physics/Sumo
> -Isource/gameengine/Physics/Sumo/Fuzzics/include
> -Isource/gameengine/Network/LoopBackNetwork
> -Isource/blender/misc-Isource/blender/blenloader
> -I/usr/local/include/python2.4 -Iextern/solid -c
> -o/new/usr/ports/graphics/blender-devel/work/build/freebsd6/source/gameengi
>ne/Converter/KX_IpoConvert.o source/gameengine/Converter/KX_IpoConvert.cpp
> In file included from /usr/include/c++/3.4/ios:48,
>                  from /usr/include/c++/3.4/ostream:45,
>                  from /usr/include/c++/3.4/iostream:45,
>                  from intern/moto/include/MT_Stream.h:49,
>                  from intern/moto/include/MT_Tuple3.h:49,
>                  from intern/moto/include/MT_Vector3.h:50,
>                  from source/gameengine/SceneGraph/SG_Spatial.h:36,
>                  from source/gameengine/SceneGraph/SG_Node.h:35,
>                  from source/gameengine/Ketsji/KX_GameObject.h:45,
>                  from source/gameengine/Converter/KX_IpoConvert.cpp:43:
> /usr/include/c++/3.4/bits/localefwd.h:58:34: macro "isspace" passed 2
> arguments, but takes just 1 In file included from
> /usr/include/c++/3.4/ios:48,
>                  from /usr/include/c++/3.4/ostream:45,
>                  from /usr/include/c++/3.4/iostream:45,
>                  from intern/moto/include/MT_Stream.h:49,
>                  from intern/moto/include/MT_Tuple3.h:49,
>                  from intern/moto/include/MT_Vector3.h:50,
>                  from source/gameengine/SceneGraph/SG_Spatial.h:36,
>                  from source/gameengine/SceneGraph/SG_Node.h:35,
>                  from source/gameengine/Ketsji/KX_GameObject.h:45,
>                  from source/gameengine/Converter/KX_IpoConvert.cpp:43:
> /usr/include/c++/3.4/bits/localefwd.h:58: error: `std::isspace' declared as
> an `inline' variable /usr/include/c++/3.4/bits/localefwd.h:58: error:
> template declaration of `bool std::isspace'
> /usr/include/c++/3.4/bits/localefwd.h:70:34: macro "isupper" passed 2
> arguments, but takes just 1 /usr/include/c++/3.4/bits/localefwd.h:70:
> error: `std::isupper' declared as an `inline' variable
> /usr/include/c++/3.4/bits/localefwd.h:70: error: template declaration of
> `bool std::isupper' /usr/include/c++/3.4/bits/localefwd.h:74:34: macro
> "islower" passed 2 arguments, but takes just 1
> /usr/include/c++/3.4/bits/localefwd.h:74: error: `std::islower' declared as
> an `inline' variable /usr/include/c++/3.4/bits/localefwd.h:74: error:
> template declaration of `bool std::islower'
> /usr/include/c++/3.4/bits/localefwd.h:78:34: macro "isalpha" passed 2
> arguments, but takes just 1 /usr/include/c++/3.4/bits/localefwd.h:78:
> error: `std::isalpha' declared as an `inline' variable
> /usr/include/c++/3.4/bits/localefwd.h:78: error: template declaration of
> `bool std::isalpha' /usr/include/c++/3.4/bits/localefwd.h:94:34: macro
> "isalnum" passed 2 arguments, but takes just 1
> /usr/include/c++/3.4/bits/localefwd.h:94: error: `std::isalnum' declared as
> an `inline' variable /usr/include/c++/3.4/bits/localefwd.h:94: error:
> template declaration of `bool std::isalnum'
> /usr/include/c++/3.4/bits/localefwd.h:102:34: macro "toupper" passed 2
> arguments, but takes just 1 /usr/include/c++/3.4/bits/localefwd.h:102:
> error: `std::toupper' declared as an`inline' variable
> /usr/include/c++/3.4/bits/localefwd.h:102: error: template declaration of
> `_CharT std::toupper' /usr/include/c++/3.4/bits/localefwd.h:106:34: macro
> "tolower" passed 2 arguments, but takes just 1
> /usr/include/c++/3.4/bits/localefwd.h:106: error: `std::tolower' declared
> as an`inline' variable /usr/include/c++/3.4/bits/localefwd.h:106: error:
> template declaration of `_CharT std::tolower' In file included from
> /usr/include/c++/3.4/bits/basic_ios.h:44,
>                  from /usr/include/c++/3.4/ios:51,
>                  from /usr/include/c++/3.4/ostream:45,
>                  from /usr/include/c++/3.4/iostream:45,
>                  from intern/moto/include/MT_Stream.h:49,
>                  from intern/moto/include/MT_Tuple3.h:49,
>                  from intern/moto/include/MT_Vector3.h:50,
>                  from source/gameengine/SceneGraph/SG_Spatial.h:36,
>                  from source/gameengine/SceneGraph/SG_Node.h:35,
>                  from source/gameengine/Ketsji/KX_GameObject.h:45,
>                  from source/gameengine/Converter/KX_IpoConvert.cpp:43:
> /usr/include/c++/3.4/bits/locale_facets.h:226: error: expected `;' before
> '(' token /usr/include/c++/3.4/bits/locale_facets.h:240: error: expected
> `;' before "const" In file included from
> /usr/include/c++/3.4/bits/basic_ios.h:44,
>                  from /usr/include/c++/3.4/ios:51,
>                  from /usr/include/c++/3.4/ostream:45,
>                  from /usr/include/c++/3.4/iostream:45,
>                  from intern/moto/include/MT_Stream.h:49,
>                  from intern/moto/include/MT_Tuple3.h:49,
>                  from intern/moto/include/MT_Vector3.h:50,
>                  from source/gameengine/SceneGraph/SG_Spatial.h:36,
>                  from source/gameengine/SceneGraph/SG_Node.h:35,
>                  from source/gameengine/Ketsji/KX_GameObject.h:45,
>                  from source/gameengine/Converter/KX_IpoConvert.cpp:43:
> /usr/include/c++/3.4/bits/locale_facets.h:241:53: macro "toupper" passed 2
> arguments, but takes just 1 /usr/include/c++/3.4/bits/locale_facets.h:241:
> error: expected `;' before "const"
> /usr/include/c++/3.4/bits/locale_facets.h:254: error: expected `;' before
> "char_type" /usr/include/c++/3.4/bits/locale_facets.h:255: error: expected
> `;' before '(' token /usr/include/c++/3.4/bits/locale_facets.h:269: error:
> expected `;' before "const"
> /usr/include/c++/3.4/bits/locale_facets.h:270:53: macro "tolower" passed 2
> arguments, but takes just 1 /usr/include/c++/3.4/bits/locale_facets.h:270:
> error: expected `;' before "const"
> /usr/include/c++/3.4/bits/locale_facets.h:286: error: expected `;' before
> "char_type" /usr/include/c++/3.4/bits/locale_facets.h:796: error: expected
> `;' before '(' token /usr/include/c++/3.4/bits/locale_facets.h:812: error:
> expected `;' before "const"
> /usr/include/c++/3.4/bits/locale_facets.h:813:53: macro "toupper" passed 2
> arguments, but takes just 1 /usr/include/c++/3.4/bits/locale_facets.h:813:
> error: expected `;' before "const"
> /usr/include/c++/3.4/bits/locale_facets.h:828: error: expected `;' before
> "char_type" /usr/include/c++/3.4/bits/locale_facets.h:829: error: expected
> `;' before '(' token /usr/include/c++/3.4/bits/locale_facets.h:845: error:
> expected `;' before "const"
> /usr/include/c++/3.4/bits/locale_facets.h:846:53: macro "tolower" passed 2
> arguments, but takes just 1 /usr/include/c++/3.4/bits/locale_facets.h:846:
> error: expected `;' before "const"
> /usr/include/c++/3.4/bits/locale_facets.h:865: error: expected `;' before
> "char_type" /usr/include/c++/3.4/bits/locale_facets.h:4498:44: macro
> "isspace" passed 2 arguments, but takes just 1 In file included from
> /usr/include/c++/3.4/bits/basic_ios.h:44,
>                  from /usr/include/c++/3.4/ios:51,
>                  from /usr/include/c++/3.4/ostream:45,
>                  from /usr/include/c++/3.4/iostream:45,
>                  from intern/moto/include/MT_Stream.h:49,
>                  from intern/moto/include/MT_Tuple3.h:49,
>                  from intern/moto/include/MT_Vector3.h:50,
>                  from source/gameengine/SceneGraph/SG_Spatial.h:36,
>                  from source/gameengine/SceneGraph/SG_Node.h:35,
>                  from source/gameengine/Ketsji/KX_GameObject.h:45,
>                  from source/gameengine/Converter/KX_IpoConvert.cpp:43:
> /usr/include/c++/3.4/bits/locale_facets.h:4499: error: invalid function
> declaration /usr/include/c++/3.4/bits/locale_facets.h:4513:44: macro
> "isupper" passed 2 arguments, but takes just 1
> /usr/include/c++/3.4/bits/locale_facets.h:4514: error: invalid function
> declaration /usr/include/c++/3.4/bits/locale_facets.h:4517:56: macro
> "islower" passed 2 arguments, but takes just 1
> /usr/include/c++/3.4/bits/locale_facets.h:4518: error: invalid function
> declaration /usr/include/c++/3.4/bits/locale_facets.h:4522:44: macro
> "isalpha" passed 2 arguments, but takes just 1
> /usr/include/c++/3.4/bits/locale_facets.h:4523: error: invalid function
> declaration /usr/include/c++/3.4/bits/locale_facets.h:4542:44: macro
> "isalnum" passed 2 arguments, but takes just 1
> /usr/include/c++/3.4/bits/locale_facets.h:4543: error: invalid function
> declaration /usr/include/c++/3.4/bits/locale_facets.h:4552:44: macro
> "toupper" passed 2 arguments, but takes just 1
> /usr/include/c++/3.4/bits/locale_facets.h:4553: error: invalid function
> declaration /usr/include/c++/3.4/bits/locale_facets.h:4557:44: macro
> "tolower" passed 2 arguments, but takes just 1
> /usr/include/c++/3.4/bits/locale_facets.h:4558: error: invalid function
> declaration scons: ***
> [/new/usr/ports/graphics/blender-devel/work/build/freebsd6/source/gameengin
>e/Converter/KX_IpoConvert.o] Error 1 scons: building terminated because of
> errors.
>
> -- Hans
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers

-- 
index, n.:
	Alphabetical list of words of no possible interest where an
	alphabetical list of subjects with references ought to be.


More information about the Bf-committers mailing list