install on ubuntu

66 views
Skip to first unread message

Arthur

unread,
Oct 22, 2007, 5:14:16 AM10/22/07
to Python Ogre Developers
Hi,

Is there anyone that recently succeeded in installing on ubuntu?

I've tried 3 times for a week, and no success.

between I install OGRE with success.

I'm now able to launch ogre demos.

But when I try with python, there is a problem with _ogre_ that is not
found.

I'm quite interested to know what are the prereqs to install python
ogre. ubuntu 7.10, 7.4, 6.10? with anything special?

Andy Miller

unread,
Oct 22, 2007, 7:17:17 AM10/22/07
to python-ogre...@googlegroups.com
Are you using the install scripts from http://wiki.python-ogre.org/index.php/LinuxBuild ??
 
If not can you do so :) and if so do you see any particular errors during the install process ?
 
I did update the scripts an hour or so ago to fix issues with not specificing the Ogre GUI and include directories so it's probably worth another try
 
Andy

 

Arthur

unread,
Oct 22, 2007, 10:42:01 AM10/22/07
to Python Ogre Developers
wonderful! :)

I was using the install script http://wiki.python-ogre.org/index.php/LinuxBuild

I'm gonna try tonight. I may have errors during the install process
but the scripts are quite verbose. Is there any place where I have to
specifically look?

I've installed OGRE 1.4.5. to test. Can it be a problem?

Thanks,

Arthur

Arthur

unread,
Oct 28, 2007, 12:48:33 PM10/28/07
to Python Ogre Developers
I'm still trying :)

But I had difficulties upgrading to ubuntu 7.10


In 06-GenerateCode.sh, I think it is "ogreforests"instead of "forests"
line 67

Arthur

On 22 oct, 15:42, Arthur <arthur.led...@gmail.com> wrote:
> wonderful! :)
>

> I was using the install scripthttp://wiki.python-ogre.org/index.php/LinuxBuild

Arthur

unread,
Oct 28, 2007, 1:19:09 PM10/28/07
to Python Ogre Developers
Here is some code that could help to delete warnings

#!/bin/bash
# test Files

if [ $1 ]
then
echo "true"
else
echo "false"
fi

Arthur

Arthur

unread,
Oct 29, 2007, 4:35:21 AM10/29/07
to Python Ogre Developers
I finally succeed last night.

thanks

Arthur

JosephLisee

unread,
Oct 31, 2007, 12:52:45 AM10/31/07
to Python Ogre Developers
If you modified any of scripts could you post the updates somewhere?

-Joe

Krešimir Špes

unread,
Nov 1, 2007, 12:16:54 PM11/1/07
to Python Ogre Developers
I reached code generation (up until this point everything has been
incredibly easy, great work guys!)

here's the output (ubuntu 7.10, fresh install):


/home/kreso/python-ogre/root/usr/lib/python2.5/site-packages/pygccxml/
parser/scanner.py:297: UserWarning: unable to find out array size from
expression "6u"
warnings.warn( 'unable to find out array size from expression "%s"'
% attrs[ XML_AN_MAX ] )
Traceback (most recent call last):
File "generate_code.py", line 398, in <module>
generate_code()
File "generate_code.py", line 344, in generate_code
ManualExclude ( mb )
File "generate_code.py", line 94, in ManualExclude
global_ns.member_functions(e).exclude()
File "/home/kreso/python-ogre/root/usr/lib/python2.5/site-packages/
pygccxml/declarations/scopedef.py", line 507, in member_functions
, allow_empty=allow_empty)
File "/home/kreso/python-ogre/root/usr/lib/python2.5/site-packages/
pygccxml/declarations/scopedef.py", line 363, in _find_multiple
raise RuntimeError( "Multi declaration query returned 0
declarations." )
RuntimeError: Multi declaration query returned 0 declarations.
~/python-ogre
-- creating ogrebulletc code
-- creating ogrebulletd code

=== done building code ===
kreso@thor:~/python-ogre$

Andy Miller

unread,
Nov 1, 2007, 5:03:51 PM11/1/07
to python-ogre...@googlegroups.com
Glad to hear the scripts work well -- unfortunatly you've discovered an issue with GCCXML and so need to use an older version..
 
Could you update from the Python-Ogre SVN as I've modified scripts/01-RetrieveSource.sh.  If you have a look you'll see I've specificed a date on the CVS checkout for GCCXML -- I don't have access to a Linux machine at the moment and would appreciate it if you could check that the change I've made works :)
 
You should probably delete your existing gccxml directory etc etc..
 
Sorry for the problem -- GCCXML has just had it's first major update in a very long time, which is a great thing for us as the parser is now based on the latest gcc backend, however it does mean that Roman has to update Py++; so until that is done we need to stay with a slightly older version of gccxml
 
Thanks
Andy

 

Krešimir Špes

unread,
Nov 2, 2007, 4:12:10 AM11/2/07
to Python Ogre Developers
ok, thx. had some problems, will make a fresh build and post feedback
soon.

Krešimir Špes

unread,
Nov 2, 2007, 5:26:06 AM11/2/07
to Python Ogre Developers
I found a bug in the new script:

echo " -- getting gccxml"
cvs -z3 -q -d :pserver:ano...@www.gccxml.org:/cvsroot/GCC_XML co
gccxml -D "1 Oct 2007"

you have to put -D "1 Oct 2007" before 'co' :)

continuing build....

Krešimir Špes

unread,
Nov 2, 2007, 6:51:44 AM11/2/07
to Python Ogre Developers
oooohkay, now I got this error and I'm not sure why as I've crossed
this step before:

this occorus on 04-BuildBaseLibs...

../../../RenderSystems/GL/src/atifs/src/.libs/
libatifs.a(ATI_FS_GLGpuProgram.o):ATI_FS_GLGpuProgram.cpp:(.text
+0x566): more undefined references to `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::~basic_string()'
follow
/usr/bin/ld: .libs/RenderSystem_GL.so: hidden symbol
`std::allocator<char>::allocator()' isn't defined
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[4]: *** [RenderSystem_GL.la] Error 1
make[4]: Leaving directory `/home/kreso/python-ogre2/ogrenew/
RenderSystems/GL/src'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory `/home/kreso/python-ogre2/ogrenew/
RenderSystems/GL/src'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/kreso/python-ogre2/ogrenew/
RenderSystems/GL'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/kreso/python-ogre2/ogrenew/
RenderSystems'
make: *** [install-recursive] Error 1
~/python-ogre2

Krešimir Špes

unread,
Nov 3, 2007, 5:31:28 PM11/3/07
to Python Ogre Developers
I've tried the scripts on another ubuntu 7.10 box, same problem.
here's more detail:

make[4]: Entering directory `/home/kreso/python-ogre/ogrenew/
RenderSystems/GL/src'
/bin/bash ../../../libtool --tag=CXX --mode=link g++ -I/home/kreso/
python-ogre/root/usr/include -L/home/kreso/python-ogre/root/usr/lib -
o RenderSystem_GL.la -rpath /home/kreso/python-ogre/root/usr/lib/OGRE -
module -shared -avoid-version -L../../../OgreMain/src -Wl,-z,defs
OgreGLEngineDll.lo OgreGLPlugin.lo OgreGLGpuProgram.lo
OgreGLGpuNvparseProgram.lo OgreGLGpuProgramManager.lo
OgreGLRenderSystem.lo OgreGLSupport.lo OgreGLTexture.lo
OgreGLTextureManager.lo OgreGLHardwareBufferManager.lo
OgreGLHardwareIndexBuffer.lo OgreGLHardwareOcclusionQuery.lo
OgreGLHardwareVertexBuffer.lo OgreGLHardwarePixelBuffer.lo
OgreGLDefaultHardwareBufferManager.lo OgreGLContext.lo
OgreGLPixelFormat.lo OgreGLRenderTexture.lo OgreGLFBORenderTexture.lo
OgreGLPBRenderTexture.lo OgreGLFBOMultiRenderTarget.lo
OgreGLFrameBufferObject.lo glew.lo ../../../RenderSystems/GL/src/GLX/
libsupport.la ../../../RenderSystems/GL/src/GLSL/src/
libGLSL.la ../../../RenderSystems/GL/src/nvparse/
libnvparse.la ../../../RenderSystems/GL/src/atifs/src/libatifs.la -lGL
-lGLU -lX11 -lXext -lGL -lXrandr -lXxf86vm -lOgreMain -lCg -
lfreeimage -lpthread -lz -lm -ldl
g++ -shared -nostdlib /usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../
lib/crti.o /usr/lib/gcc/i486-linux-gnu/4.1.3/crtbeginS.o .libs/
OgreGLEngineDll.o .libs/OgreGLPlugin.o .libs/OgreGLGpuProgram.o .libs/
OgreGLGpuNvparseProgram.o .libs/OgreGLGpuProgramManager.o .libs/
OgreGLRenderSystem.o .libs/OgreGLSupport.o .libs/OgreGLTexture.o .libs/
OgreGLTextureManager.o .libs/OgreGLHardwareBufferManager.o .libs/
OgreGLHardwareIndexBuffer.o .libs/OgreGLHardwareOcclusionQuery.o .libs/
OgreGLHardwareVertexBuffer.o .libs/OgreGLHardwarePixelBuffer.o .libs/
OgreGLDefaultHardwareBufferManager.o .libs/OgreGLContext.o .libs/
OgreGLPixelFormat.o .libs/OgreGLRenderTexture.o .libs/
OgreGLFBORenderTexture.o .libs/OgreGLPBRenderTexture.o .libs/
OgreGLFBOMultiRenderTarget.o .libs/OgreGLFrameBufferObject.o .libs/
glew.o -Wl,--whole-archive ../../../RenderSystems/GL/src/GLX/.libs/
libsupport.a ../../../RenderSystems/GL/src/GLSL/src/.libs/
libGLSL.a ../../../RenderSystems/GL/src/nvparse/.libs/
libnvparse.a ../../../RenderSystems/GL/src/atifs/src/.libs/libatifs.a -
Wl,--no-whole-archive -Wl,--rpath -Wl,/home/kreso/python-ogre/root/
usr/lib -Wl,--rpath -Wl,/home/kreso/python-ogre/root/usr/lib -L/home/
kreso/python-ogre/root/usr/lib -L/home/kreso/python-ogre/ogrenew/
OgreMain/src -lGLU -lX11 -lXext -lGL -lXrandr -lXxf86vm /home/kreso/
python-ogre/root/usr/lib/libOgreMain.so -lCg -lfreeimage -lpthread -lz
-ldl -L/usr/lib/gcc/i486-linux-gnu/4.1.3 -L/usr/lib/gcc/i486-linux-gnu/
4.1.3/../../../../lib -L/lib/../lib -L/usr/lib/../lib -lstdc++ -lm -lc
-lgcc_s /usr/lib/gcc/i486-linux-gnu/4.1.3/crtendS.o /usr/lib/gcc/i486-
linux-gnu/4.1.3/../../../../lib/crtn.o -Wl,-z -Wl,defs -Wl,-soname -
Wl,RenderSystem_GL.so -o .libs/RenderSystem_GL.so
.libs/OgreGLPlugin.o: In function `__tcf_1':
OgreGLPlugin.cpp:(.text+0xea): undefined reference to


`std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::~basic_string()'

.libs/OgreGLPlugin.o: In function
`__static_initialization_and_destruction_0(int, int)':
OgreGLPlugin.cpp:(.text+0x159): undefined reference to
`std::allocator<char>::allocator()'
OgreGLPlugin.cpp:(.text+0x183): undefined reference to
`std::allocator<char>::~allocator()'
OgreGLPlugin.cpp:(.text+0x1b6): undefined reference to
`std::allocator<char>::~allocator()'
.libs/OgreGLGpuProgram.o: In function
`Ogre::GLArbGpuProgram::loadFromSource()':

Krešimir Špes

unread,
Nov 3, 2007, 5:44:06 PM11/3/07
to Python Ogre Developers
SON OF A &^%#$@!

the problem occours because ubuntu's default install doesn't include
the patch utility. andy, please update 00-PreReqs.sh.

I'll continue the build now.

Krešimir Špes

unread,
Nov 3, 2007, 6:44:07 PM11/3/07
to Python Ogre Developers
guess what else is missing :) cmake...

Krešimir Špes

unread,
Nov 3, 2007, 6:51:57 PM11/3/07
to Python Ogre Developers
oops, nevermind the last post. I did a fresh build and once again have
bumped into the same cvs co error I mentioned earlier :) continuing
build..

Andy Miller

unread,
Nov 3, 2007, 6:56:40 PM11/3/07
to python-ogre...@googlegroups.com
Good catch - I'll make the change

Andy

Krešimir Špes

unread,
Nov 4, 2007, 5:20:05 AM11/4/07
to Python Ogre Developers
hoooray!!! it works :) it took the laptop all night to compile but it
was worth it. I just ran my project succesfully :)
I'll test my build on several machines and then I'll upload it for you
others to try.

as for the compilation, there were minor issues (svn co error and
patch binary missing), but other then that, it was a walk in the
park :) great work andy!

Andy Miller

unread,
Nov 4, 2007, 6:18:29 AM11/4/07
to python-ogre...@googlegroups.com
Great news...

The svn co issue for gccxnl has been fixed in the scripts - do you
know the exact package name for 'patch' - is it simply 'patch' or
something else.

I don't have access to a linux system at the moment and would like to
update the script

Thanks
Andy


On 11/4/07, Krešimir Špes <kresim...@gmail.com> wrote:
>

Krešimir Špes

unread,
Nov 4, 2007, 7:05:28 AM11/4/07
to Python Ogre Developers
just patch :)

so sudo apt-get install patch does the trick.

anyway, I didn't realize patch was missing because the build scripts
didn't dump any output. how about making each script write a log file?

Krešimir Špes

unread,
Nov 5, 2007, 3:26:48 PM11/5/07
to Python Ogre Developers
I found another bug: in environment py, when building ogreAL, you
haven't removed ALUT dependency. although the build scripts don't
compile alut, this still crashes ogreal build in linkning. having
removed alut in both nt and posix config, allowed me to compile ogreal
wrapper. pls update :)

Krešimir Špes

unread,
Nov 7, 2007, 9:21:01 AM11/7/07
to Python Ogre Developers
plib isn't working:

kreso@thor:~/python-ogre/python-ogre/demos/plib$ python
Demo_Server.py


Traceback (most recent call last):

File "Demo_Server.py", line 1, in <module>
import ogre.addons.plib as plib
File "/home/kreso/python-ogre/root/usr/lib/python2.5/site-packages/
ogre/addons/plib/__init__.py", line 2, in <module>
from _plib_ import *
ImportError: /usr/local/lib/python2.5/site-packages/ogre/addons/plib/
_plib_.so: undefined symbol: glDeleteLists

Chuck

unread,
Jan 4, 2008, 11:55:42 AM1/4/08
to Python Ogre Developers
Bump... I just did an install from svn according to the directions on
the wiki and I am having the same problem on Ubuntu Gutsy. The other
python-ogre demos work so far, except for any that need plib.

Chuck
Reply all
Reply to author
Forward
0 new messages