Linux / log.out

sebastiend

16-04-2008 16:05:51

Hello,

Where is the Scontruct script in which I could solve the following error?

04-16 16:40 PythonOgre.BuildModule DEBUG /usr/bin/ld: cannot find -lboost_python-gcc41-1_34_1
collect2: ld a retourné 1 code d'état d'exécution
scons: *** [build_dir_2.5/ogre_1.4/ogre.so] Error 1


Here is the complete log.out:

04-16 16:40 PythonOgre.BuildModule INFO Building Source code for ogre
04-16 16:40 PythonOgre.BuildModule DEBUG Spawning 'python generate_code.py' in '/home/sebastiend/Bureau/workspace/python-ogre/code_generators/ogre'
04-16 16:40 PythonOgre.BuildModule WARNING Task Failed
04-16 16:40 PythonOgre.BuildModule DEBUG
04-16 16:40 PythonOgre.BuildModule DEBUG Traceback (most recent call last):
File "generate_code.py", line 26, in <module>
import common_utils
File "../common_utils/__init__.py", line 2, in <module>
import shared_ptr
File "../common_utils/shared_ptr.py", line 3, in <module>
from pyplusplus import messages
ImportError: No module named pyplusplus

04-16 16:40 PythonOgre.BuildModule INFO Compiling Source code for ogre
04-16 16:40 PythonOgre.BuildModule DEBUG Spawning 'scons PROJECTS=ogre' in '/home/sebastiend/Bureau/workspace/python-ogre'
04-16 16:40 PythonOgre.BuildModule WARNING Task Failed
04-16 16:40 PythonOgre.BuildModule DEBUG [?1034hscons: Reading SConscript files ...
Building ogre
WARNING: Over-Writing /home/sebastiend/Bureau/workspace/python-ogre/generated/ogre_1.4/SConscript as it already exists
scons: done reading SConscript files.
scons: Building targets ...
gcc -o build_dir_2.5/ogre_1.4/ogre.so -Wl,-rpath=\/../../lib `pkg-config --libs OGRE` --strip-all -lstdc++ -shared -L/home/sebastiend/Bureau/workspace/root/usr/lib -L/usr/lib/python2.5/libs -lboost_python-gcc41-1_34_1 -lOgreMain
scons: building terminated because of errors.

04-16 16:40 PythonOgre.BuildModule DEBUG /usr/bin/ld: cannot find -lboost_python-gcc41-1_34_1
collect2: ld a retourné 1 code d'état d'exécution
scons: *** [build_dir_2.5/ogre_1.4/ogre.so] Error 1

I don't build ogre from sources, it is installed with the distribution's packages. The command I typed was:

python python-ogre/BuildModule.py -g -c ogre

andy

17-04-2008 02:28:03

If you are building on Linux you (perhaps unfortunately :) ) have to follow the complete directions in the wiki - you can't simply pick certain pieces and expect it to work.

If you follow the steps [b]here[/b] you will have more success (for example your first problem is the Py++ hasn't been installed)..

Regards

Andy

sebastiend

17-04-2008 10:15:11

Nothing works.

If you are building on Linux you (perhaps unfortunately :Smile: ) have to follow the complete directions in the wiki - you can't simply pick certain pieces and expect it to work.

I don't want to retrieve and build boost freeimage and others which are ever installed. Downloading all of them will take hours. Your scripts would better do like cmake and sconstruct do, looking for system libraries.

I get a little doubt. For which version of Ogre python-ogre is made for? 1.2 correspond to Ogre 1.2.*?

bharling

17-04-2008 10:54:42

No, python-ogre is built against the CVS version of ogre ( 1.4 + )

the version numbers don't correspond, as python-ogre is a seperate project with lots of extra modules that don't ship with ogre itself.

andy

20-04-2008 23:54:41

Nothing works.
[I don't want to retrieve and build boost freeimage and others which are ever installed. Downloading all of them will take hours. Your scripts would better do like cmake and sconstruct do, looking for system libraries.

There are many reasons the current Linux system builds the way it does - mainly because most of the 'standard' system libraries are either older versions or need to be patched..

Currently the only way to run Python-Ogre on Linux is to either download a prebuilt binary or to follow the directions on the wiki

regards
Andy

dedesite

02-05-2008 15:58:50

I've follow all the tutorial to build python-ogre under my Ubuntu 8.04 but I've got the same error as sebastiend.

Before, I had another problem which was Boost was not into /root/usr/include directory, so I put it into but I don't think it the good way...

I had this problem :
http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=6534

Apparently, it's a problem with bJam which won't compile with gcc 4.2 (http://svn.boost.org/trac/boost/ticket/977), the solution proposed (use "-fno-strict-aliasing" for the bjam build) don't work... :(

If someone has a solution, I'll be really thankful!

Greetings,
Andreas

P.S : Sorry for my english