Could not load Plugin_CgProgramManager on Linux

sharavsambuu

18-08-2010 17:54:55

Hello all.
Compilation is fine.
but when i run example, it gives me following error.
Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
SceneManagerFactory for type 'DefaultSceneManager' registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type 'ParticleSystem' registered.
OverlayElementFactory for type Panel registered.
OverlayElementFactory for type BorderPanel registered.
OverlayElementFactory for type TextArea registered.
Registering ResourceManager for type Font
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
DDS codec registering
FreeImage version: 3.10.0
This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2
Registering ResourceManager for type HighLevelGpuProgram
Registering ResourceManager for type Compositor
MovableObjectFactory for type 'Entity' registered.
MovableObjectFactory for type 'Light' registered.
MovableObjectFactory for type 'BillboardSet' registered.
MovableObjectFactory for type 'ManualObject' registered.
MovableObjectFactory for type 'BillboardChain' registered.
MovableObjectFactory for type 'RibbonTrail' registered.
*-*-* OGRE Initialising
*-*-* Version 1.7.1 (Cthugha)
Loading library Plugin_CgProgramManager
terminate called after throwing an instance of 'Ogre::InternalErrorException'
what(): OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library Plugin_CgProgramManager. System Error: Plugin_CgProgramManager.so: cannot open shared object file: No such file or directory in DynLib::load at /home/sharavsambuu/temp/ogre/dev/ogre/OgreMain/src/OgreDynLib.cpp (line 91)
Aborted


Technogenius

30-08-2010 12:59:49

same problem here. I have Plugin_CgProgramManager.so in /usr/lib/local/OGRE but not in /usr/lib/OGRE.

locate Plugin_CgProgramManager.so
return nothing

I'm on Ubuntu 10.4 with Ogre Version 1.7.1 (Cthugha) and pagedGeometry-1.1.0

help wanted

Tapio

08-09-2010 18:11:27

I think there is something wrong with the ogre plugin load paths. A work-around is to type first:

$ export LD_LIBRARY_PATH="/usr/local/lib/OGRE"
$ ./Example1

If that works, you'll probably need to add the path to your default library paths or somehow tell ogre about it (I think these examples aren't really using the plugins.cfg or something).