Noob on linux : problem loading samples.

Problems building or running the engine, queries about how to use features etc.
Post Reply
dedesite
Halfling
Posts: 72
Joined: Fri Sep 16, 2005 11:35 pm
Location: Lyon, France

Noob on linux : problem loading samples.

Post by dedesite »

Hi,
I'm trying to compil Ogre 1.4.1 on Ubuntu 7.04 with the lastest Codeblocks nightybuild (22 may).
I add some problems with the Debug mode (http://www.ogre3d.org/phpBB2/viewtopic.php?t=32067) but in Realese I past the differents problem I add...
Now, I want to launch the demo!

So I type in console mode :

Code: Select all

./Demo_Water
to launch the water demo, but I got this message :

Code: Select all

./Demo_Water: error while loading shared libraries: libOgreMain.so: cannot open shared object file: No such file or directory
I've check the Release directory and libOgreMain.so is in, so why did he say that there is no such file?

Thanks for helping a little noob in linux like me :oops:

greetings,
dede
orel92
Gnoblar
Posts: 9
Joined: Mon May 28, 2007 11:43 pm

Post by orel92 »

maybe look at your paths !!
User avatar
Jon
Goblin
Posts: 227
Joined: Mon Oct 10, 2005 5:07 am
Location: Texas

Post by Jon »

Include the release directory in your LIBPATH, or copy the executable to that directory and run out of it.
User avatar
merlinblack
Goblin
Posts: 223
Joined: Thu Mar 15, 2007 10:05 am
Location: Sydney, Australia
x 7
Contact:

Ogre on Linux

Post by merlinblack »

Hi, Dede

Did you do the whole (from Ogre's top directory)

Code: Select all

./bootstrap  (only needed very first time)
./configure
make
then change to superuser ie root

Code: Select all

make install
I figure you did, but just to make sure. :)

Also it's a good idea to run:

Code: Select all

ldconfig
as root after installing. This makes some sym links amongst other things, and re-scans lib directorys for new libarys. I occasionaly forget this myself, and am left confused for awhile :? as it looks like nothing installed.

This is importaint for most libs, as they are installed as libXXXX.YY.YY.so (libOgreMain.1.4.0.so for example) but the program looks for libXXXX.so (libOgreMain.so)

Running ldconfig makes a symlink called libXXXX.so that points to the latest version.

type

Code: Select all

man ldconfig
and have a read if your intrested.

merlinblack
"He'd never realized that, deep down inside, what he really wanted to do was make things go splat."
Terry Pratchett, Reaper Man
Image
dedesite
Halfling
Posts: 72
Joined: Fri Sep 16, 2005 11:35 pm
Location: Lyon, France

Post by dedesite »

I've tried "ldconfig" but it has done nothing.
The libOgreMain.so is already in the Release directory and I run the command when I'm in this directory... The message is the same...

I didn't compil Ogre with "make install" but with CodeBlocks, I guess that will work with "make install" but I wanted to use CodeBlocks to compil a program on linux like I could have been done on windows.

Unfortenetly, it seems to be a bit more complex...

Here is what the "./configure" says :
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for bison... no
checking for byacc... no
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for ld used by g++... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... (cached) yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if g++ supports -fvisibility... yes
checking whether to use STLPort... (cached) no
checking for freetype-config... /usr/bin/freetype-config
checking for FreeType - version >= 9.0.0... yes
checking for dlopen in -ldl... yes
checking for pow in -lm... yes
checking for gzopen in -lz... yes
checking for pthread_create in -lpthread... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for cppunit-config... no
checking for Cppunit - version >= 1.10.0... checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ZZIPLIB_CFLAGS...
checking for ZZIPLIB_LIBS... -lzzip -lz
checking X11/Intrinsic.h usability... yes
checking X11/Intrinsic.h presence... yes
checking for X11/Intrinsic.h... yes
checking X11/Xaw/Command.h usability... yes
checking X11/Xaw/Command.h presence... yes
checking for X11/Xaw/Command.h... yes
checking for X11/extensions/xf86vmode.h... yes
checking for X11/extensions/Xrandr.h... yes
checking for X... libraries , headers in standard search path
configure: setting gl-support to platform: GLX
checking for X... libraries , headers in standard search path
checking for GTK_CFLAGS...
checking for GTK_LIBS...
checking whether to use double floating point precision... no
no
checking for FreeImage_Load in -lfreeimage... yes
configure: Freeimage is being built, disabling check for DevIL.
checking for cgCreateProgram in -lCg... yes
checking whether to use SSE... yes
checking for OIS_CFLAGS... -I/usr/local/include/OIS -I/usr/local/include
checking for OIS_LIBS... -L/usr/local/lib -lOIS
configure: *** Ogre Demos will be built ***
checking whether -fPIC is needed... no
checking for CEGUI_CFLAGS... -I/usr/local/include -I/usr/local/include/CEGUI
checking for CEGUI_LIBS... -L/usr/local/lib -lCEGUIBase
CEGUI available, Gui and FacialAnimation samples will be built
configure: creating ./config.status
config.status: creating RenderSystems/GL/src/GLX/Makefile
config.status: creating RenderSystems/GL/src/win32/Makefile
config.status: creating Samples/Common/CEGUIRenderer/Makefile
config.status: creating Samples/Common/CEGUIRenderer/CEGUI-OGRE.pc
config.status: creating Samples/Common/CEGUIRenderer/src/Makefile
config.status: creating Samples/Common/CEGUIRenderer/include/Makefile
config.status: creating Samples/Gui/Makefile
config.status: creating Samples/Gui/src/Makefile
config.status: creating Makefile
config.status: creating OgreMain/Makefile
config.status: creating OgreMain/src/Makefile
config.status: creating OgreMain/include/Makefile
config.status: creating OgreMain/include/GLX/Makefile
config.status: creating OgreMain/include/gtk/Makefile
config.status: creating PlugIns/Makefile
config.status: creating PlugIns/BSPSceneManager/Makefile
config.status: creating PlugIns/BSPSceneManager/src/Makefile
config.status: creating PlugIns/BSPSceneManager/include/Makefile
config.status: creating PlugIns/CgProgramManager/Makefile
config.status: creating PlugIns/CgProgramManager/src/Makefile
config.status: creating PlugIns/CgProgramManager/include/Makefile
config.status: creating PlugIns/OctreeSceneManager/Makefile
config.status: creating PlugIns/OctreeSceneManager/src/Makefile
config.status: creating PlugIns/OctreeSceneManager/include/Makefile
config.status: creating PlugIns/ParticleFX/Makefile
config.status: creating PlugIns/ParticleFX/src/Makefile
config.status: creating PlugIns/ParticleFX/include/Makefile
config.status: creating RenderSystems/Makefile
config.status: creating RenderSystems/GL/Makefile
config.status: creating RenderSystems/GL/src/Makefile
config.status: creating RenderSystems/GL/include/Makefile
config.status: creating RenderSystems/GL/src/atifs/Makefile
config.status: creating RenderSystems/GL/src/atifs/include/Makefile
config.status: creating RenderSystems/GL/src/atifs/src/Makefile
config.status: creating RenderSystems/GL/src/GLSL/Makefile
config.status: creating RenderSystems/GL/src/GLSL/include/Makefile
config.status: creating RenderSystems/GL/src/GLSL/src/Makefile
config.status: creating RenderSystems/GL/src/nvparse/Makefile
config.status: creating RenderSystems/Direct3D9/Makefile
config.status: creating RenderSystems/Direct3D9/src/Makefile
config.status: creating RenderSystems/Direct3D9/include/Makefile
config.status: creating Samples/Makefile
config.status: creating Samples/Common/Makefile
config.status: creating Samples/Common/include/Makefile
config.status: creating Samples/Common/bin/Makefile
config.status: creating Samples/BezierPatch/Makefile
config.status: creating Samples/BezierPatch/src/Makefile
config.status: creating Samples/BezierPatch/include/Makefile
config.status: creating Samples/CameraTrack/Makefile
config.status: creating Samples/CameraTrack/src/Makefile
config.status: creating Samples/CelShading/Makefile
config.status: creating Samples/CelShading/src/Makefile
config.status: creating Samples/Compositor/Makefile
config.status: creating Samples/Compositor/src/Makefile
config.status: creating Samples/Compositor/include/Makefile
config.status: creating Samples/CubeMapping/Makefile
config.status: creating Samples/CubeMapping/src/Makefile
config.status: creating Samples/CubeMapping/include/Makefile
config.status: creating Samples/DeferredShading/Makefile
config.status: creating Samples/DeferredShading/src/Makefile
config.status: creating Samples/DeferredShading/include/Makefile
config.status: creating Samples/Dot3Bump/Makefile
config.status: creating Samples/Dot3Bump/src/Makefile
config.status: creating Samples/EnvMapping/Makefile
config.status: creating Samples/EnvMapping/src/Makefile
config.status: creating Samples/EnvMapping/include/Makefile
config.status: creating Samples/FacialAnimation/Makefile
config.status: creating Samples/FacialAnimation/src/Makefile
config.status: creating Samples/Fresnel/Makefile
config.status: creating Samples/Fresnel/src/Makefile
config.status: creating Samples/Grass/Makefile
config.status: creating Samples/Grass/src/Makefile
config.status: creating Samples/Transpacency/Makefile
config.status: creating Samples/Transpacency/src/Makefile
config.status: creating Samples/Transpacency/include/Makefile
config.status: creating Samples/Lighting/Makefile
config.status: creating Samples/Lighting/src/Makefile
config.status: creating Samples/Lighting/include/Makefile
config.status: creating Samples/OceanDemo/Makefile
config.status: creating Samples/OceanDemo/src/Makefile
config.status: creating Samples/OceanDemo/include/Makefile
config.status: creating Samples/ParticleFX/Makefile
config.status: creating Samples/ParticleFX/src/Makefile
config.status: creating Samples/ParticleFX/include/Makefile
config.status: creating Samples/RenderToTexture/Makefile
config.status: creating Samples/RenderToTexture/src/Makefile
config.status: creating Samples/TextureFX/Makefile
config.status: creating Samples/TextureFX/src/Makefile
config.status: creating Samples/TextureFX/include/Makefile
config.status: creating Samples/Shadows/Makefile
config.status: creating Samples/Shadows/src/Makefile
config.status: creating Samples/SkyBox/Makefile
config.status: creating Samples/SkyBox/src/Makefile
config.status: creating Samples/SkyBox/include/Makefile
config.status: creating Samples/SkyDome/Makefile
config.status: creating Samples/SkyDome/src/Makefile
config.status: creating Samples/SkyDome/include/Makefile
config.status: creating Samples/SkyPlane/Makefile
config.status: creating Samples/SkyPlane/src/Makefile
config.status: creating Samples/SkyPlane/include/Makefile
config.status: creating Samples/Smoke/Makefile
config.status: creating Samples/Smoke/src/Makefile
config.status: creating Samples/Smoke/include/Makefile
config.status: creating Samples/BSP/Makefile
config.status: creating Samples/BSP/src/Makefile
config.status: creating Samples/SkeletalAnimation/Makefile
config.status: creating Samples/SkeletalAnimation/src/Makefile
config.status: creating Samples/SkeletalAnimation/include/Makefile
config.status: creating Samples/Terrain/Makefile
config.status: creating Samples/Terrain/src/Makefile
config.status: creating Samples/Terrain/include/Makefile
config.status: creating Samples/Water/Makefile
config.status: creating Samples/Water/src/Makefile
config.status: creating Samples/Water/include/Makefile
config.status: creating Samples/DynTex/Makefile
config.status: creating Samples/DynTex/src/Makefile
config.status: creating Samples/DynTex/include/Makefile
config.status: creating Samples/VolumeTex/Makefile
config.status: creating Samples/VolumeTex/src/Makefile
config.status: creating Samples/VolumeTex/include/Makefile
config.status: creating Samples/Instancing/Makefile
config.status: creating Samples/Instancing/src/Makefile
config.status: creating Samples/Instancing/include/Makefile
config.status: creating Tests/Makefile
config.status: creating Tests/src/Makefile
config.status: creating Tools/Makefile
config.status: creating Tools/MaterialUpgrader/Makefile
config.status: creating Tools/MaterialUpgrader/src/Makefile
config.status: creating Tools/MaterialUpgrader/include/Makefile
config.status: creating Tools/MeshUpgrader/Makefile
config.status: creating Tools/MeshUpgrader/src/Makefile
config.status: creating Tools/XMLConverter/Makefile
config.status: creating Tools/XMLConverter/src/Makefile
config.status: creating Tools/XMLConverter/include/Makefile
config.status: creating Tools/LightwaveConverter/Makefile
config.status: creating Tools/LightwaveConverter/src/Makefile
config.status: creating Tools/LightwaveConverter/include/Makefile
config.status: creating OGRE.pc
config.status: creating OgreMain/include/config.h
config.status: OgreMain/include/config.h is unchanged
config.status: executing depfiles commands
--------=== Configuration summary ===--------
Target platform : GLX
OpenGL Ogre support : GLX
GUI library to use : Xt
Use double precision arithmetic : no
Support for threading : no
Use STLport : no
Use FreeType : yes
Use FreeImage : yes
Use DevIL : no
Build OGRE demos : yes
Build CEGUI demos : true
Build the OpenEXR plugin : no
Build the Cg plugin : yes
Build the DirectX 9 plugin : no
--------===============================--------
Everything should be fine, no?
And I compil in Release without problem, I got the .so file etc.

Thanks for your repply,
greetings,
dede
User avatar
merlinblack
Goblin
Posts: 223
Joined: Thu Mar 15, 2007 10:05 am
Location: Sydney, Australia
x 7
Contact:

Post by merlinblack »

The output of your run of configure looks good. Its found everything it needs.

You can still use code blocks for the Ogre program you write, however its much easier to use the autotools (configure, make, etc) to complie and install the Ogre libaries.

Did you run "make" after you ran configure?

The whole process is:

Code: Select all

./configure
make
-- then switch to root which is "su" on SuSE, perhaps "sudo" would work too.

Code: Select all

su
finally run make install & ldconfig

Code: Select all

make install
ldconfig
-- then back to normal user

Code: Select all

exit
If you don't get any errors, Ogre should be installed ready to use and the samples should run, unless you have something wrong with your paths, or your ld.so.conf file perhaps. However I'm not familiar with Ubuntu, but I wouldn't think it is not that much different to SuSE which I'm running. :?

Hope this helps!

merlinblack

PS Perhaps someone else could confirm, but is Ubuntu the Linux distro that does not let you login as root? :evil:
"He'd never realized that, deep down inside, what he really wanted to do was make things go splat."
Terry Pratchett, Reaper Man
Image
User avatar
manowar
Orc
Posts: 419
Joined: Thu Apr 07, 2005 2:11 pm
Location: UK
Contact:

Post by manowar »

Well ubuntu does not let you login as root....but you can change that easily :o)

Here is the magic command:
sudo passwd root
User avatar
merlinblack
Goblin
Posts: 223
Joined: Thu Mar 15, 2007 10:05 am
Location: Sydney, Australia
x 7
Contact:

Post by merlinblack »

manowar wrote:Well ubuntu does not let you login as root....but you can change that easily :o)

Here is the magic command:
sudo passwd root
Why do I find that amusing? :lol: I'll have to tell my Unix friend at work THAT one.

Anyhow, Ubuntu I'm guessing may not let you use "su" so instead of running "make install" and "ldconfig" while logged in as root try this after "make"

Code: Select all

sudo "make install"
sudo ldconfig
merlinblack

Update:
looking at http://www.ogre3d.org/phpBB2/viewtopic.php?t=32549
using sudo is the way to go.
"He'd never realized that, deep down inside, what he really wanted to do was make things go splat."
Terry Pratchett, Reaper Man
Image
User avatar
Game_Ender
Ogre Magi
Posts: 1269
Joined: Wed May 25, 2005 2:31 am
Location: Rockville, MD, USA

Post by Game_Ender »

If you are going to install system wide you should add "--prefix=/usr" to your configure options, install checkinstall and run "sudo checkinstall" to generate a package for Ogre on the spot. That makes it so you can easily upgrade versions of Ogre and remove old ones.
dedesite
Halfling
Posts: 72
Joined: Fri Sep 16, 2005 11:35 pm
Location: Lyon, France

Post by dedesite »

Hum,
I try to install Ogre manually with checkinstall and the package was well create but "refuse" to install...
I've already install Ogre 1.2.4 with checkinstall on Ubuntu 6.10 without problems...
Do you thing the package can't be install because I first tried to compile Ogre with CodeBlocks?

I finally try with "make install" but I got the same error message when I want to execute the samples :
./Demo_Water: error while loading shared libraries: libOgreMain.so: cannot open shared object file: No such file or directory
What can I do to "clean" the build and retry with checkinstall?

I know that Linux architecture is much more logical for lib installation but seriously it is also much more complicate to install a software or a lib when you don't have prebuild package...

Thanks for your help,
greetings,
dede
User avatar
manowar
Orc
Posts: 419
Joined: Thu Apr 07, 2005 2:11 pm
Location: UK
Contact:

Post by manowar »

To uninstall Ogre, do 'make uninstall' and 'make clean'. However I doubt it is your problem, it is certainly a path issue.

try that:
sudo gedit /etc/ld.so.conf
add /usr/local/lib

then do
sudo ldconfig

It should work
dedesite
Halfling
Posts: 72
Joined: Fri Sep 16, 2005 11:35 pm
Location: Lyon, France

Post by dedesite »

try that:
sudo gedit /etc/ld.so.conf
add /usr/local/lib

then do
sudo ldconfig
Don't do anything :(, here is my ld.so.conf file :

include /etc/ld.so.conf.d/*.conf
/usr/local/lib
User avatar
merlinblack
Goblin
Posts: 223
Joined: Thu Mar 15, 2007 10:05 am
Location: Sydney, Australia
x 7
Contact:

Post by merlinblack »

Hmm, perhaps the libarys are not getting copied?

Pehaps try this to see if ldconfig is "finding" the ogre libarys.

Code: Select all

ldconfig -v | grep Ogre
The -v for verbose, i.e. print out what its doing, send that to grep which will only print out any lines with "Ogre" (case-sensitive). Note that any errors from ldconfig, will print anyway and not get piped to grep.

Failing that, have a look manually for the file libOgreMain.1.5.0.so See if is really in /usr/local/libs

Hope the problem surfaces!

merlinblack

PS Once you get this going, you'll probaby have learned some stuff you might not otherwise learned! :wink: I know alot of my learning has come from fixing stuff.
"He'd never realized that, deep down inside, what he really wanted to do was make things go splat."
Terry Pratchett, Reaper Man
Image
dedesite
Halfling
Posts: 72
Joined: Fri Sep 16, 2005 11:35 pm
Location: Lyon, France

Post by dedesite »

Thanks for your repply merlinblack,

I will try that ASAP (I'm on Windows for the moment) but you're totally right when you that :
PS Once you get this going, you'll probaby have learned some stuff you might not otherwise learned! I know alot of my learning has come from fixing stuff.
Learning is often a link to a problem ;).

Greetings,
dede
dedesite
Halfling
Posts: 72
Joined: Fri Sep 16, 2005 11:35 pm
Location: Lyon, France

Post by dedesite »

Hi,

Here is what ldconfig -v | grep Ogre says :
ldconfig: Can't stat /lib64: No such file or directory
ldconfig: Can't stat /usr/lib64: No such file or directory
libOgreMain-1.4.1.so -> libOgreMain.so
libCEGUIOgreRenderer-1.4.1.so -> libCEGUIOgreRenderer.so
libOgreMain.so and libOgreMain1.4.1.so are in /usr/local/lib so I can't find where does the problem come from...

Anyway, thanks for your help,
greetings,
dede
exavolt
Gnoblar
Posts: 6
Joined: Mon Jun 04, 2007 12:08 am

Post by exavolt »

1. you can configure Ogre with

Code: Select all

./configure --prefix=/usr
or

2. add /usr/local/lib to LD_LIBRARY_PATH environment variable

Code: Select all

LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
I've tried to add those lines into ~/.bash_profile, but it doesn't work.
so I add them to ~/.bashrc
User avatar
merlinblack
Goblin
Posts: 223
Joined: Thu Mar 15, 2007 10:05 am
Location: Sydney, Australia
x 7
Contact:

Post by merlinblack »

Ah. So it looks like ldconfig IS finding the Ogre libs, and storing them in the cache. Also it should have made a sym-link called libOgreMain.so to the actual lib file.

So the now the question is why is the loader not finding them?

Could it be that a libary that Ogre depends on can't be loaded, and causing the error.

Try

Code: Select all

ldd libOgreMain.so
You may or may not have to be in /usr/local/lib when you run that. It should show all the libs that Ogre needs. Perhaps you might need to add '-v' after 'ldd' to get more "verbose" info.

Hopefully this might give you some leads. :?

Do the examples run if you copy the lib into the same directory as them? :?:

merlinblack

PS You could try running ldd with one of the examples too.
"He'd never realized that, deep down inside, what he really wanted to do was make things go splat."
Terry Pratchett, Reaper Man
Image
dedesite
Halfling
Posts: 72
Joined: Fri Sep 16, 2005 11:35 pm
Location: Lyon, France

Post by dedesite »

Hum,
Developpement under linux is still reserve to people who know well this OS... I love the philosophy and the user interface is much more intuitive than Windows but when you try to do advanced things it's a bit complicate... Espacially when you have problems!

However, as you say I will learn with that but honestly I prefer language like Java because I can use the same IDE (Eclipse) and the same code without any changes.

Ok, I stop complaining :D! Ogre is the best graphical engine I ever seen and I love it!! It's just that I don't want to return to windows to do what I want to do. I hate to have to do it :x.

I'll try your guidances, thanks a lot,

greetings,
dede
dedesite
Halfling
Posts: 72
Joined: Fri Sep 16, 2005 11:35 pm
Location: Lyon, France

Post by dedesite »

Hi all,

I thought that I missed something in my installation of Ogre, so I decided to reinstall Ubuntu and to start over from scratch, but I've got exactly the same problem! :?

This time, I've not everything I've made since the installation of Feisty Fawn ;).
So here is the command line of the package I've installed :

Code: Select all

sudo apt-get install build-essential automake1.7 autoconf alien libtool xlibs-static-dev libdevil-dev libsdl1.2-dev libcppunit-dev libmng-dev
sudo apt-get install checkinstall libxxf86vm-dev libzzip-dev libxaw7-dev libxaw-headers libxrandr-dev 
sudo apt-get install libogre-dev libpcre3 libpcre3-dev libpcrecpp0 libtiff4-dev libfreetype6 libfreetype6-dev libglu1-mesa-dev libpng12-dev
I've installed (with alien) the Cg Toolkit 1.5 RPM.

And after I've compiled those lib :
-FreeImage 2.9.3
- OIS 1.0RC1
- CEGUI 0.5b

And then tried to install Ogre 1.4.4 :

Code: Select all

     
aclocal
./bootstrap
./configure
make
sudo checkinstall
Everything was fine until I checkinstall tried to instal the package, here is the log file (sorry it's in french I could translate it if you don't understand) :

Code: Select all

(Lecture de la base de données... 115567 fichiers et répertoires déjà installés.
)
Dépaquetage de ogrenew (à partir de .../ogrenew_1.4.4-1_i386.deb) ...
dpkg : erreur de traitement de /home/dede/Logiciels/ogrenew/ogrenew_1.4.4-1_i386
.deb (--install) :
 tentative de remplacement de (try to replace) « /usr/lib/gcc/i486-linux-gnu/4.1.2/collect2 », qu
i appartient aussi au paquet gcc-4.1
dpkg-deb: sous-processus paste tué par le signal (Relais brisé (pipe))
Des erreurs ont été rencontrées pendant l'exécution :
 /home/dede/Logiciels/ogrenew/ogrenew_1.4.4-1_i386.deb
greetings,
dede
Post Reply