Linux-building SVN fails when generating wrapper code

afecelis

07-03-2009 23:47:24

Hi everyone,
I'm following the latest tutorial to build Python-Ogre on Linux available here:
http://wiki.python-ogre.org/index.php/LinuxBuildV2

It is a great document as it takes you step by step on building the SVN properly. However, when I get to the step to build the wrapper code I get the following error:
afecelis@design01:~/development$ python python-ogre/BuildModule.py -g -c ogre ois cegui
PythonOgre.BuildModule: INFO Building Source code for ogre
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Compiling Source code for ogre
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Building Source code for ois
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Compiling Source code for ois
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Building Source code for cegui
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Compiling Source code for cegui
PythonOgre.BuildModule: WARNING Task Failed
afecelis@design01:~/development$


I am able to run the C++ examples in /development/ogre/Samples/Common/bin , so it's only in the step to generate the wrapper for python that I'm getting the error.
I'm building on Ubuntu 8.10 64 bits. I'm close to get it working so any help or guidance would be appreciated. ;)

regards,
Alvaro

afecelis

08-03-2009 00:49:22

Also, by checking my log.out file I notice several pygccxml errors :
ImportError: No module named pygccxml
As if it were missing, but it's there in the dependencies that get downloaded and compiled locally in the "development" folder :(
here's my log.out file, in case someone can give give it a quick check:
http://files.wildspad.com/afecelis/ogre/log.out

regards,
Alvaro

andy

08-03-2009 06:33:20

Go back and run python python-ogre/BuildScript.py -r -b pygccxml pyplusplus and then try again.. Please note that 64 bit support isn't great at the moment..

Andy

afecelis

08-03-2009 13:04:57

Thanks for replying andy,
Sad to hear about the small 64 bit support at the moment, but I hope it can get improved in future versions.
I'm trying to run the command you posted, but it can't find "Buildscript.py", is it that command or "BuildModule.py" the one you mean?
There's also no mention of a "Buildscript.py" command in the tut.

Thanks for the help. ;)
Alvaro

EDITED: ahhh1 now I understand, your command is to build the module individually! ;)
I'm retrying right now.

afecelis

08-03-2009 13:16:11

Nothing! :( I got the "Task Failed" message again when trying to build the wrapper code with this command:
python python-ogre/BuildModule.py -g -c ogre ois cegui
Reading here and there in the forums I checked it might also have to do with the settings in: PythonOgreConfig_posix.py (for unix-like systems), dunno if "PythonOgreConfig_system.py" would need tweaking too.
For instance, the posix file says this:
## path to the root of your boost dir, should have 'libs', 'boost' subdirectories
PATH_Boost = os.path.join(LOCAL_INCLUDE, 'boost-1_37')

The folder name suggested there is only 'boost-1_37' whereas the one created is 'libboost-python1.37-index', dunno if it may have something to do with all this?

regards,
Alvaro

Gonsor

08-03-2009 15:38:39

Are you sure, that "Step 3", building the support libraries didn't show any warnings?
Moreover, did you make the custom library path sticky?

The folder name suggested there is only 'boost-1_37' whereas the one created is 'libboost-python1.37-index', dunno if it may have something to do with all this?
No, these are 2 different modules and you need both. ;)

So confirm, that all the support libraries built successfully, then try to generate the wrapper code again. If it fails, post your log.out here again.

Regards
Gonsor

afecelis

08-03-2009 19:43:07

Thanks Gonsor,
I'm going thru the steps again and I'll report back.

regards,

Alvaro

afecelis

08-03-2009 20:03:26

I repeated steps 1 and 2, all of the support libraries built OK. I had to create the folder "bin.linuxx86_64" inside of "boost-jam-3.1.17-1-linuxx86" since there was an error saying it couldn't find that folder. I now also got the folder "boost_1_37_0" created, which I didn't get in my previous building experience, and hence my confusion with the config scripts paths. I wenth through step 3 and most of the things went fine but I got some "Task Failed" warnings. here's my new log.out file (till step 3):
http://files.wildspad.com/afecelis/ogre/log_step3.out

Now I don't know whether to stop here or continue with a probably non-working build ;)

regards, and thanks for helping me check the errors.
Alvaro

afecelis

09-03-2009 15:59:28

Ok guys, I just started everything from scratch so I deleted my "development" folder, and went through the steps.
On step 3, "building the support libraries" I get the error of the missing folder I mentioned above. Here's the log.out file:
http://files.wildspad.com/afecelis/ogre ... p3_new.out

and here's error I get in the console:
OSError: [Errno 2] No such file or directory: '/home/afecelis/development/boost-jam-3.1.17-1-linuxx86/bin.linuxx86_64'
So I created the folder "bin.linuxx86_64" by hand and retried steps 2 and 3 once more.

With the folder created, I now get the following log.out file, with new errors (2 tasks failed):
http://files.wildspad.com/afecelis/ogre ... ew_err.out

so this leaves me at the same point I posted above :( Not going any further.

Hope some of you guys can check this new post out and get a better idea of what's going on ;)

regards,
Alvaro

afecelis

09-03-2009 16:13:00

Quick update:
By checking the error I noticed it's not being able to copy and use the "bjam" command, so I cpoied bjam into both the "bin.linuxx86_64" I previously created by hand, and in the locally created "root/usr/bin".

Now the bjam errors are gone, and I got a new one. Here's the latest log.out:
http://files.wildspad.com/afecelis/ogre ... _err01.out

This is the error part:
03-09 11:08 PythonOgre.BuildModule DEBUG Spawning 'sed -i "" s/-bundle// applelink.py' in '/home/afecelis/development/scons-1.0.1/engine/SCons/Tool'
03-09 11:08 PythonOgre.BuildModule WARNING Task Failed
03-09 11:08 PythonOgre.BuildModule DEBUG
03-09 11:08 PythonOgre.BuildModule DEBUG sed: can't read s/-bundle//: No such file or directory


I guess it's now just a matter of finding where that missing folder goes and create it ;) (and its name).

regards,
Alvaro

EDITED:
Indeed, the file "applelink.py" is uncompressed and created properly in "development/scons-1.0.1/engine/SCons/Tool", the problem seems to be not being able to read it. :( So, no more hacking on my side can be done, lol! I just know creating folders and copying missing files. ;)

EDIT2: It is "sed" not being able to read info from the file "applelink.py", must be a wrong path or parameter in the original script that needs to be fixed. ;)

Gonsor

09-03-2009 19:36:00

Thats the only warning, you can ignore.
It's a fix, if you build under Apple OS X (I think), but since you use linux, don't worry. ;)
You can now retry to generate the wrapper code for ogre again.

Like andy mentioned, it could be quite problematic for 64bit system at that point. See the developer mailing list for more info and help.
http://groups.google.com/group/python-ogre-developers

Regards,
Gon

afecelis

09-03-2009 19:53:13

Thanks a lot Gonsor. I'll move on then to the next step. :D
Then the manual fixes of creating the folders by hand and copying the bjam executable are ok? ;)
I'll return to comment how things go.

regards,
Alvaro

afecelis

09-03-2009 20:46:08

Again problems on step 5, generating the wrapper code:
afecelis@design01:~/development$ python python-ogre/BuildModule.py -g -c ogre ois cegui
PythonOgre.BuildModule: INFO Building Source code for ogre
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Compiling Source code for ogre
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Building Source code for ois
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Compiling Source code for ois
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Building Source code for cegui
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Compiling Source code for cegui
PythonOgre.BuildModule: WARNING Task Failed


here's the log.out file:
http://files.wildspad.com/afecelis/ogre/log_step5.out

Basically it's complaining of not finding pygccxml:
File "/usr/lib/python2.5/site-packages/pyplusplus/decl_wrappers/algorithm.py", line 9, in <module>
from pygccxml import declarations
ImportError: No module named pygccxml

And some missing folders, so Im creating them by hand. I don't know how to fix the "pygccxml" issue. :(

regards,
Alvaro