Linux Compilation problem

Celhtar

06-02-2009 17:09:06

Hello,
I'm trying to build python-ogre from source on an Ubuntu 8.10
All goes fine until the generation of the python interface for OIS
Here is the output from log.out

02-06 08:16 PythonOgre.BuildModule INFO Building Source code for ois
02-06 08:16 PythonOgre.BuildModule DEBUG Spawning 'python generate_code.py' in '/home/guena/pyogre-dev/python-ogre/code_generators/ois'
02-06 08:16 PythonOgre.BuildModule WARNING Task Failed
02-06 08:16 PythonOgre.BuildModule DEBUG
02-06 08:16 PythonOgre.BuildModule DEBUG INFO Creating xml file "/home/guena/pyogre-dev/python-ogre/code_generators/cache/ois_1.0_cache.xml" from source file "/home/guena/pyogre-dev/python-ogre/code_generators/ois/python_ois.h" ...
INFO gccxml cmd: /home/guena/pyogre-dev/root/usr/bin/gccxml -I"/home/guena/pyogre-dev/python-ogre" -I"/home/guena/pyogre-dev/root/usr/include/boost-1_37" -I"/home/guena/pyogre-dev/root/usr/include/OIS" -D"OIS_NONCLIENT_BUILD" -D"VERSION_1.0" "/home/guena/pyogre-dev/python-ogre/code_generators/ois/python_ois.h" -fxml="/home/guena/pyogre-dev/python-ogre/code_generators/cache/ois_1.0_cache.xml"
Traceback (most recent call last):
File "generate_code.py", line 320, in <module>
generate_code()
File "generate_code.py", line 237, in generate_code
, cflags=environment.ois.cflags
File "/home/guena/pyogre-dev/root/usr/lib/python2.5/site-packages/pyplusplus/module_builder/boost_python_builder.py", line 88, in __init__
, indexing_suite_version)
File "/home/guena/pyogre-dev/root/usr/lib/python2.5/site-packages/pyplusplus/module_builder/boost_python_builder.py", line 130, in __parse_declarations
decls = reader.read_files( files, compilation_mode )
File "/home/guena/pyogre-dev/root/usr/lib/python2.5/site-packages/pygccxml/parser/project_reader.py", line 225, in read_files
return self.__parse_file_by_file(files)
File "/home/guena/pyogre-dev/root/usr/lib/python2.5/site-packages/pygccxml/parser/project_reader.py", line 262, in __parse_file_by_file
reader.create_xml_file( header, prj_file.cached_source_file )
File "/home/guena/pyogre-dev/root/usr/lib/python2.5/site-packages/pygccxml/parser/source_reader.py", line 169, in create_xml_file
raise error
pygccxml.parser.source_reader.gccxml_runtime_error_t: Error occured while running GCC-XML: In file included from /home/guena/pyogre-dev/python-ogre/code_generators/ois/python_ois.h:14:
/home/guena/pyogre-dev/python-ogre/code_generators/ois/python_ois_aliases.h:9: error: expected initializer before '<' token
In file included from /home/guena/pyogre-dev/python-ogre/code_generators/ois/python_ois.h:22:
/home/guena/pyogre-dev/python-ogre/code_generators/ois/python_ois_sizeof.h: In function 'void python_ois::details::instantiate()':
/home/guena/pyogre-dev/python-ogre/code_generators/ois/python_ois_sizeof.h:13: error: '_Vb_reference' is not a member of 'std'
/home/guena/pyogre-dev/python-ogre/code_generators/ois/python_ois_sizeof.h:13: error: expected primary-expression before 'unsigned'
/home/guena/pyogre-dev/python-ogre/code_generators/ois/python_ois_sizeof.h:13: error: expected `)' before 'unsigned'


02-06 08:16 PythonOgre.BuildModule INFO Compiling Source code for ois
02-06 08:16 PythonOgre.BuildModule DEBUG Spawning 'scons PROJECTS=ois' in '/home/guena/pyogre-dev/python-ogre'
02-06 08:16 PythonOgre.BuildModule WARNING Task Failed
02-06 08:16 PythonOgre.BuildModule DEBUG scons: Reading SConscript files ...
Building ois
/home/guena/pyogre-dev/root/usr/bin:/usr/lib/jvm/java-6-sun/jre/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/pspdev/bin:/usr/local/pspdev/psp/sdk/bin
{'ZZIPLIB_LIBS': '-lzzip', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'CXXFLAGS': ' -I/home/guena/pyogre-dev/root/usr/include -L/home/guena/pyogre-dev/root/usr/lib', 'LOGNAME': 'guena', 'USER': 'guena', 'PATH': '/home/guena/pyogre-dev/root/usr/bin:/usr/lib/jvm/java-6-sun/jre/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/pspdev/bin:/usr/local/pspdev/psp/sdk/bin', 'HOME': '/home/guena', 'WINDOWPATH': '7', 'LANG': 'fr_FR.UTF-8', 'TERM': 'xterm', 'SHELL': '/bin/bash', 'XAUTHORITY': '/home/guena/.Xauthority', 'SESSION_MANAGER': 'local/guena-laptop:/tmp/.ICE-unix/6514', 'SHLVL': '1', 'LD_LIBRARY_PATH': '/home/guena/pyogre-dev/root/usr/lib', 'PSPDEV': '/usr/local/pspdev', 'WINDOWID': '115343415', '_': '/usr/bin/python', 'LDFLAGS': "-Wl,-rpath='$$ORIGIN/../../lib' -Wl,-rpath='$$ORIGIN' -Wl,-z,origin", 'PYTHONPATH': '/home/guena/pyogre-dev/root/usr/lib/python2.5/site-packages', 'CFLAGS': ' -I/home/guena/pyogre-dev/root/usr/include -L/home/guena/pyogre-dev/root/usr/lib', 'GPG_AGENT_INFO': '/tmp/seahorse-X5411y/S.gpg-agent:6615:1', 'USERNAME': 'guena', 'GDM_XSERVER_LOCATION': 'local', 'GTK_RC_FILES': '/etc/gtk/gtkrc:/home/guena/.gtkrc-1.2-gnome2', 'USESYSTEM': 'False', 'PSPSDK': '/usr/local/pspdev/psp/sdk', 'SSH_AUTH_SOCK': '/tmp/keyring-KThw9r/ssh', 'DESKTOP_SESSION': 'default', 'GDMSESSION': 'default', 'PKG_CONFIG_PATH': '/home/guena/pyogre-dev/root/usr/lib/pkgconfig', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-mx1lAHgkoU,guid=d3d12d5f769f722f552632e1498b7a46', 'ORBIT_SOCKETDIR': '/tmp/orbit-guena', 'XDG_SESSION_COOKIE': '180e02d1373b75b2a4a172354895bcf1-1233877572.374445-1496025265', 'GNOME_KEYRING_SOCKET': '/tmp/keyring-KThw9r/socket', 'JAVA_HOME': '/usr/lib/jvm/java-6-sun/jre', 'DISPLAY': ':0.0', 'GNOME_KEYRING_PID': '6503', 'OLDPWD': '/home/guena', 'GDM_LANG': 'fr_FR.UTF-8', 'GTK_MODULES': 'gail:atk-bridge', 'HISTCONTROL': 'ignoreboth', 'XDG_DATA_DIRS': '/usr/local/share/:/usr/share/:/usr/share/gdm/', 'PWD': '/home/guena/pyogre-dev/python-ogre', 'CCFLAGS': ' -I/home/guena/pyogre-dev/root/usr/include -L/home/guena/pyogre-dev/root/usr/lib', 'COLORTERM': 'gnome-terminal', 'LS_COLORS': 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:'}
WARNING: Generate the sources in this directory: "/home/guena/pyogre-dev/python-ogre/generated/ois_1.0"

02-06 08:16 PythonOgre.BuildModule DEBUG OSError: [Errno 2] No such file or directory: '/home/guena/pyogre-dev/python-ogre/generated/ois_1.0':
File "/home/guena/pyogre-dev/python-ogre/SConstruct", line 207:
sourcefiles = get_source_files(cls, cls._source, usepch)
File "/home/guena/pyogre-dev/python-ogre/SConstruct", line 97:
raise e


Am i doing something wrong? or missing a library?
/home/guena/pyogre-dev/python-ogre/code_generators/ois/python_ois_sizeof.h:13: error: '_Vb_reference' is not a member of 'std'
This error seems to be the most relevant, though i have no idea how to fix it

andy

07-02-2009 02:35:47

Problem was related to an OIS fix that worked in Windows but clearly not in Linux -- should be OK now

Andy