[SOLVED] strange linux build problem

lemuus

10-01-2011 22:28:44

Hi,
I was trying to build python ogre using the instructions on the wiki, except for pypluplus problem, everything works. But when i try to generate the wrapper code using:
python python-ogre/BuildModule.py -g -c ogre

a lot of gcc processes are forked, the system freeze, and after a while, gcc is killed, i think because a out of memory error.
I'm using a laptop with a core i7 and 3GB of ram... so i think that should be enough to build python-ogre. Using Ubuntu 10.10
Any advice?
Thanks

--------
I manually changed in BuildModule.py file, the compileCode function:
this line:
ret = spawnTask ( 'scons -j%i PROJECTS=%s' % (int(environment.NUMBER_OF_CORES*1.5), module.name), os.path.join(environment.root_dir))

to this:
ret = spawnTask ( 'scons -j%i PROJECTS=%s' % (4, module.name), os.path.join(environment.root_dir))

Forcing the number of processes to 4, and everything works.