PyOgre Compile Issues in Ubuntu 9.04 Help Please!

23 views
Skip to first unread message

Dorkpunk

unread,
Mar 15, 2009, 6:00:52 AM3/15/09
to Python Ogre Developers
Im trying to compile Python Ogre, and it seems the Sconscript or
something is adding all kinds of extra spaces in the terminal.
Generating the code, and building all the modules etc seems to work
out fine. The C++ demos run fine. Compiling Cegui, OIS, or Ogre all
fail though.
Hopefully its simply to fix....I've been trying to get this running
for almost a week now it seems...

the output is something like this:

dorkpunk@dorkpunk-laptop:~/development$ python python-ogre/
BuildModule.py -c ogre -v
PythonOgre.BuildModule: INFO Compiling Source code for ogre
scons: Reading SConscript files ...
/usr/local/lib/scons-1.0.1/SCons/Platform/posix.py:38:
DeprecationWarning: The popen2 module is deprecated. Use the
subprocess module.
import popen2
/usr/local/lib/scons-1.0.1/SCons/Tool/msvs.py:37: DeprecationWarning:
the md5 module is deprecated; use hashlib instead
import md5
Building ogre
/home/dorkpunk/development/root/usr/bin:/usr/local/sbin:/usr/local/
bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
{'ZZIPLIB_LIBS': '-lzzip', 'GNOME_DESKTOP_SESSION_ID': 'this-is-
deprecated', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'CXXFLAGS': ' -I/
home/dorkpunk/development/root/usr/include -L/home/dorkpunk/
development/root/usr/lib', 'LOGNAME': 'dorkpunk', 'USER': 'dorkpunk',
'PATH': '/home/dorkpunk/development/root/usr/bin:/usr/local/sbin:/usr/
local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games', 'HOME': '/home/
dorkpunk', 'WINDOWPATH': '9', 'SSH_AGENT_PID': '9167', 'LANG':
'en_US.UTF-8', 'TERM': 'xterm', 'SHELL': '/bin/bash', 'XAUTHORITY': '/
home/dorkpunk/.Xauthority', 'SESSION_MANAGER': 'local/dorkpunk-laptop:/
tmp/.ICE-unix/9080', 'SHLVL': '1', 'LD_LIBRARY_PATH': '/home/dorkpunk/
development/root/usr/lib', 'WINDOWID': '41943090', '_': '/usr/bin/
python', 'LDFLAGS': "-Wl,-rpath='$$ORIGIN/../../lib' -Wl,-rpath='$
$ORIGIN' -Wl,-z,origin", 'CFLAGS': ' -I/home/dorkpunk/development/root/
usr/include -L/home/dorkpunk/development/root/usr/lib',
'GPG_AGENT_INFO': '/tmp/seahorse-vfLS8b/S.gpg-agent:9188:1',
'USERNAME': 'dorkpunk', 'GDM_XSERVER_LOCATION': 'local',
'GTK_RC_FILES': '/etc/gtk/gtkrc:/home/dorkpunk/.gtkrc-1.2-gnome2',
'USESYSTEM': 'False', 'PYTHONPATH': '/home/dorkpunk/development/root/
usr/lib/python2.6/site-packages', 'SSH_AUTH_SOCK': '/tmp/
keyring-1WWBL1/socket.ssh', 'DESKTOP_SESSION': 'default',
'GDMSESSION': 'default', 'PKG_CONFIG_PATH': '/home/dorkpunk/
development/root/usr/lib/pkgconfig', 'LESSCLOSE': '/usr/bin/lesspipe
%s %s', 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-
VirBGI8ouI,guid=6dfab993f453d81c23b11c2a49bca707', 'ORBIT_SOCKETDIR':
'/tmp/orbit-dorkpunk', 'XDG_SESSION_COOKIE':
'1c7230e3d1072463b2df44034992a229-1237100294.812367-1356976261',
'LIBGL_DRIVERS_PATH': '/usr/lib/dri', 'GNOME_KEYRING_SOCKET': '/tmp/
keyring-1WWBL1/socket', 'DISPLAY': ':0.0', 'GNOME_KEYRING_PID':
'9069', 'OLDPWD': '/home/dorkpunk/development/python-ogre',
'GDM_LANG': 'en_US.UTF-8', 'GTK_MODULES': 'canberra-gtk-module',
'HISTCONTROL': 'ignoreboth', 'XDG_DATA_DIRS': '/usr/local/share/:/usr/
share/:/usr/share/gdm/', 'PWD': '/home/dorkpunk/development/python-
ogre', 'CCFLAGS': ' -I/home/dorkpunk/development/root/usr/include -L/
home/dorkpunk/development/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: Over-Writing /home/dorkpunk/development/python-ogre/
generated/ogre_1.6.0/SConscript as it already exists
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build_dir_2.6/ogre_1.6.0/AliasTextureIterator.pypp.os -c " " `
p k g - c o n f i g " " - - c f l a g s " " O G R E ` " " " " - I " "
- O 3 " " - I . / " " " " " " - D B O O S T _ P Y T H O N _ M A X _ A
R I T Y = 1 9 " " - D _ _ P Y T H O N O G R E _ B U I L D _ C O D E "
" " " " " - I / h o m e / d o r k p u n k / d e v e l o p m e n t / r
o o t / u s r / i n c l u d e " " - L / h o m e / d o r k p u n k / d
e v e l o p m e n t / r o o t / u s r / l i b -fPIC -I/home/dorkpunk/
development/root/usr/include/boost-1_36 -I/home/dorkpunk/development/
root/usr/include/OGRE -I/usr/include/python2.6 -I/home/dorkpunk/
development/root/usr/include/boost-1_36 generated/ogre_1.6.0/
AliasTextureIterator.pypp.cpp
sh: p: not found
g++: : No such file or directory
g++: : No such file or directory
g++: : No such file or directory
g++: I: No such file or directory
g++: : No such file or directory
g++: O: No such file or directory
g++: 3: No such file or directory
g++: : No such file or directory
g++: I: No such file or directory
g++: : No such file or directory
g++: : No such file or directory
g++: : No such file or directory
g++: D: No such file or directory
g++: B: No such file or directory
g++: O: No such file or directory
g++: O: No such file or directory
g++: S: No such file or directory
g++: T: No such file or directory
g++: _: No such file or directory
g++: P: No such file or directory
g++: Y: No such file or directory
g++: T: No such file or directory
g++: H: No such file or directory
g++: O: No such file or directory
g++: N: No such file or directory
g++: _: No such file or directory
g++: M: No such file or directory
g++: A: No such file or directory
g++: X: No such file or directory
g++: _: No such file or directory
g++: A: No such file or directory
g++: R: No such file or directory
g++: I: No such file or directory
g++: T: No such file or directory
g++: Y: No such file or directory
g++: =: No such file or directory
g++: 1: No such file or directory
g++: 9: No such file or directory
g++: : No such file or directory
g++: D: No such file or directory
g++: _: No such file or directory
g++: _: No such file or directory
g++: P: No such file or directory
g++: Y: No such file or directory
g++: T: No such file or directory
g++: H: No such file or directory
g++: O: No such file or directory
g++: N: No such file or directory
g++: O: No such file or directory
g++: G: No such file or directory
g++: R: No such file or directory
g++: E: No such file or directory
g++: _: No such file or directory
g++: B: No such file or directory
g++: U: No such file or directory
g++: I: No such file or directory
g++: L: No such file or directory
g++: D: No such file or directory
g++: _: No such file or directory
g++: C: No such file or directory
g++: O: No such file or directory
g++: D: No such file or directory
g++: E: No such file or directory
g++: : No such file or directory
g++: : No such file or directory
g++: : No such file or directory
g++: I: No such file or directory
g++: h: No such file or directory
g++: o: No such file or directory
g++: m: No such file or directory
g++: e: No such file or directory
g++: d: No such file or directory
g++: o: No such file or directory
g++: r: No such file or directory
g++: k: No such file or directory
g++: p: No such file or directory
g++: u: No such file or directory
g++: n: No such file or directory
g++: k: No such file or directory
g++: d: No such file or directory
g++: e: No such file or directory
g++: v: No such file or directory
g++: e: No such file or directory
g++: l: No such file or directory
g++: o: No such file or directory
g++: p: No such file or directory
g++: m: No such file or directory
g++: e: No such file or directory
g++: n: No such file or directory
g++: t: No such file or directory
g++: r: No such file or directory
g++: o: No such file or directory
g++: o: No such file or directory
g++: t: No such file or directory
g++: u: No such file or directory
g++: s: No such file or directory
g++: r: No such file or directory
g++: i: No such file or directory
g++: n: No such file or directory
g++: c: No such file or directory
g++: l: No such file or directory
g++: u: No such file or directory
g++: d: No such file or directory
g++: e: No such file or directory
g++: : No such file or directory
g++: L: No such file or directory
g++: h: No such file or directory
g++: o: No such file or directory
g++: m: No such file or directory
g++: e: No such file or directory
g++: d: No such file or directory
g++: o: No such file or directory
g++: r: No such file or directory
g++: k: No such file or directory
g++: p: No such file or directory
g++: u: No such file or directory
g++: n: No such file or directory
g++: k: No such file or directory
g++: d: No such file or directory
g++: e: No such file or directory
g++: v: No such file or directory
g++: e: No such file or directory
g++: l: No such file or directory
g++: o: No such file or directory
g++: p: No such file or directory
g++: m: No such file or directory
g++: e: No such file or directory
g++: n: No such file or directory
g++: t: No such file or directory
g++: r: No such file or directory
g++: o: No such file or directory
g++: o: No such file or directory
g++: t: No such file or directory
g++: u: No such file or directory
g++: s: No such file or directory
g++: r: No such file or directory
g++: l: No such file or directory
g++: i: No such file or directory
g++: b: No such file or directory
g++: cannot specify -o with -c or -S with multiple files
scons: *** [build_dir_2.6/ogre_1.6.0/AliasTextureIterator.pypp.os]
Error 1
scons: building terminated because of errors.
PythonOgre.BuildModule: WARNING Task Failed

Roman Yakovenko

unread,
Mar 16, 2009, 1:18:49 PM3/16/09
to python-ogre...@googlegroups.com
On Sun, Mar 15, 2009 at 12:00 PM, Dorkpunk <bostond...@gmail.com> wrote:
>
> Im trying to compile Python Ogre, and it seems the Sconscript or
> something is adding all kinds of extra spaces in the terminal.
> Generating the code, and building all the modules etc seems to work
> out fine.  The C++ demos run fine. Compiling Cegui, OIS, or Ogre all
> fail though.
> Hopefully its simply to fix....I've been trying to get this running
> for almost a week now it seems...
>
> the output is something like this:
>
> scons: building terminated because of errors.
> PythonOgre.BuildModule: WARNING  Task Failed
> ...

This is the first time, I see such problem. May be something went
wrong during check-out?


--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/

Sam...@gmail.com

unread,
May 3, 2009, 11:04:14 PM5/3/09
to Python Ogre Developers
I've got the same problem :( Trying to hunt down where its going
wrong - suspect those extra spaces too.
> g++: u: No such file or directory ...
>
> read more »

Tim Ansell

unread,
May 4, 2009, 12:31:24 AM5/4/09
to python-ogre...@googlegroups.com
This should be fixed on trunk (scons version has been bumped to 1.2.0
which fixes this problem). Are you using the v1-6 branch?

Tim

Sam...@gmail.com

unread,
May 4, 2009, 2:08:26 AM5/4/09
to Python Ogre Developers
Thanks for the quick reply Tim, I was using the v1-6 from
http://wiki.python-ogre.org/index.php/LinuxBuildV2, I will try using
trunk instead.
Cheers :)

homelien

unread,
May 7, 2009, 11:54:46 AM5/7/09
to Python Ogre Developers
On May 4, 8:08 am, "Sam...@gmail.com" <Sam...@gmail.com> wrote:
> Thanks for the quick reply Tim, I was using the v1-6  fromhttp://wiki.python-ogre.org/index.php/LinuxBuildV2, I will try using
> trunk instead.

I am also having problems on ubuntu, although I believe it is a
different one.. The one mentioned in the "Problems compiling under 64-
bit Linux?" thread.

This is a 64-bit linux system (ubuntu 9.04 jaunty).

Symptoms: "parsing scripts for resource group autodetect", then it
eats up memory until my system swaps so hard as to become unusable.

Some pointers from my experience:

- I followed the build instructions from http://wiki.python-ogre.org/index.php/LinuxBuildV2
- I have tested both svn trunk and v1-6. Both exhibit the same
problem.
- svn trunk builds more easily (one problem with missing #include),
v1-6 was harder to compile
- I have correct LD_LIBRARY_PATH and PYTHONPATH set, no confusion here
- The native ogre demos work nicely
- The python ogre demos exhibit the parsing..eat memory problem.
- * CPU ID: GenuineIntel: Intel(R) Core(TM)2 Duo CPU E8600 @
3.33GHz
- RenderSystem Name: OpenGL Rendering Subsystem
- GPU Vendor: nvidia
- Device Name: GeForce 7900 GT/GTO/PCI/SSE2
- Driver Version: 2.1.2.0
- I can provide remote access to a system exhibiting these problems if
neccessary
- python-ogre binaries for windows work nicely through wine on the
same system

I hope this helps. This is a complete showstopper for me, it just
takes too long to prototype stuff using c++, I want python-ogre to
work!

yours,
oystein

saladin

unread,
Jun 18, 2009, 10:35:43 PM6/18/09
to Python Ogre Developers
Hi there.

Now I'm wondering whether you compiled gccxml, pyplusplus, boost and
scon against python 2.5 or 2.6.

Because I compiled them against python 26. and I'm having exactly the
same problem as you described. When I changed my python version back
to 2.5 and try to do it again, I got a lot of errors when trying to
generate wrapper code.

Drop me a line and let's see if we can work this out together.

Cheers.



On May 8, 3:54 am, homelien <homel...@gmail.com> wrote:
> On May 4, 8:08 am, "Sam...@gmail.com" <Sam...@gmail.com> wrote:
>
> > Thanks for the quick reply Tim, I was using the v1-6  fromhttp://wiki.python-ogre.org/index.php/LinuxBuildV2, I will try using
> > trunk instead.
>
> I am also having problems on ubuntu, although I believe it is a
> different one..  The one mentioned in the "Problems compiling under 64-
> bit Linux?" thread.
>
> This is a 64-bit linux system (ubuntu 9.04 jaunty).
>
> Symptoms: "parsing scripts for resource group autodetect", then it
> eats up memory until my system swaps so hard as to become unusable.
>
> Some pointers from my experience:
>
> - I followed the build instructions fromhttp://wiki.python-ogre.org/index.php/LinuxBuildV2
Reply all
Reply to author
Forward
0 new messages