[Solved] Confused Newbie: Compiling PLSM2 on Linux

XPomJon

06-02-2007 10:05:08

I've installed Ogre(1.2.3) from source and it's working OK. I'm now trying to install paginglandscape but am not sure of the correct approach.
The wiki seems to indicate that everything is built in /ogreaddons/paginglandscape/. This worked after I added #include "OgrePagingLandscapeData2D.h to OgrePagingLandScapeAxisAlignedBoxSceneQuery.cpp and a copy of ExampleApplication.h & ExampleFrameListener.h to /Samples/Common/include/.
Further reading in the forum suggests what I should have done was to copy the contents of Plugins, Samples (excluding MapEditor) & Tools from /addons/paginglandscape/ to the same directories in ogrenew. So I downloaded a new copy of paginglandscape from CVS and did the copying and added #include as above. I also copied IPLSceneManager.cfg, paginglandscape2.cfg, Plugins_plsm2.cfg & resources_plsm2.cfg from /paginglandscape/Samples/Common/bin/Debug to /ogrenew/Samples/Common/bin/Debug. I addedPaginglandscape2 to SUBDIRS in makefile.am in /ogrenew/Samples/ & /ogrenew/Plugins, MapSplitter to /ogrenew/Tools and finally changed makefile.am in ogrenew/ to read pkgconfig_DATA=OGRE-Plugin-PLSM2.pc.
When I Bootstrap, configure, make all goes well until it exits with the following:-
Making all in PagingLandScape2
make[2]: Entering directory `/home/john/ogrenew/PlugIns/PagingLandScape2'
make[2]: *** No rule to make target `all'. Stop.
make[2]: Leaving directory `/home/john/ogrenew/PlugIns/PagingLandScape2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/john/ogrenew/PlugIns'
make: *** [all-recursive] Error 1

So my question is which method is correct and if it's the second version what am I doing wrong? :roll:

Thanks......... :lol:

XPomJon

07-02-2007 22:49:36

I haven't had a reply so that makes me think that either
a) I didn't phrase my question properly. Basically it is should I compile paginglandscape as a stand alone project or from within ogrenew.
or
b) Everybody else on this forum are MS users and are too busy trying to get Vista to work :cry:
or
c) Your attitude is " I worked it out by myself & so can you" :twisted:
or
d) My question is so stupid & basic it's not worth answering :oops:

Thanks again, and I really would like some help.

OvermindDL1

08-02-2007 04:37:44

Two things. First, not everyone is around all the time, wait at least 3 days. :)
Second, I havn't compiled on anything sans VC7.1, so I couldn't help with that either. What are you compiling it with?

t0tAl_mElTd0wN

08-02-2007 05:19:42

The command you typed was
make all

Try...
make

XPomJon

08-02-2007 09:00:18

From the command line I'm doing:-
bootstrap && ./configure && make . Then su checkinstall to build a Debian package so that everything is easy to remove if necessary.
Thanks for the tip about waiting 3 days for a reply. I'll remember that in future but things get a bit boring down here waiting for it to rain.

Thanks..........

OvermindDL1

09-02-2007 21:55:37

Isn't it usually make install anyway? Well, at least on my BSD system... Dont' know what PLSM2 does for its build orders...

XPomJon

10-02-2007 11:57:00

Yes it is usual to 'make install' but by using checkinstall ( separate programme, do a google to find more about it) you end up with a package ( Slackware, RPM or Deb) which can be uninstalled very easily.

I think that I've partially solved my original problem. I've got a directory structure:-
/Ogre/
/Ogre/ogrenew/
/Ogre/paginglandscape/
paginglandscape now compiles and installs OK but when I try ./MapSplitter or ./PagingLandScape as per Wiki I get the error "error while loading shared libraries: libOgreMain.so.13: cannot open shared object file: No such file or directory" which is odd because the file is certainly there in /usr/local/lib.
Any help, suggestions or pointers gratefully received as I'm determined to crack this problem ( By then PLSM3 will probably be out and I'll have to start all over again :evil: )

OvermindDL1

12-02-2007 22:24:21

Meh, I like BSD's ports the best, the granddaddy of em all. :)

XPomJon

13-02-2007 05:12:45

As long as your system doesn't keep crashing and there's plenty of software to chose from I guess it doesn't matter what OS you use. I migrated to Linux a few years ago and haven't looked back. Maybe sometime in the future I'll see what BSD has to offer.
I can now run Mapsplitter & PagingLandScape as per wiki but they both crash!
For MapSplitter the message is:-

Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type 'ParticleSystem' registered.
Loading library libOgrePlatform.so
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.
DevIL version: Developer's Image Library (DevIL) 1.6.7 Oct 25 2005
DevIL image formats: bmp dib cut dcx dds gif hdr ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw
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.
plugins_plsm2.cfg not found, automatic plugin loading disabled.
*-*-* OGRE Initialising
*-*-* Version 1.2.5 (Dagon)
Termination handler: uncaught exception!
*-*-* OGRE Shutdown
*** ERROR: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: ConfigFile::load
Description: 'resources_plsm2.cfg' file not found!.
File: OgreConfigFile.cpp

and for PagingLandscape2 the error message is:-

Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type 'ParticleSystem' registered.
Loading library libOgrePlatform.so
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.
DevIL version: Developer's Image Library (DevIL) 1.6.7 Oct 25 2005
DevIL image formats: bmp dib cut dcx dds gif hdr ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw
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.
plugins_plsm2.cfg not found, automatic plugin loading disabled.
*-*-* OGRE Initialising
*-*-* Version 1.2.5 (Dagon)
An exception has occured: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: ConfigFile::load
Description: 'resources_plsm2.cfg' file not found!.
File: OgreConfigFile.cpp
Line: 80
Stack unwinding: <<beginning of stack>>
*-*-* OGRE Shutdown
Unregistering ResourceManager for type Compositor
Unregistering ResourceManager for type Font
Unregistering ResourceManager for type Skeleton
Unregistering ResourceManager for type Mesh
Unregistering ResourceManager for type HighLevelGpuProgram
Unregistering ResourceManager for type Material
Unloading library libOgrePlatform.so


Am I right in thinking that a library path is missing? I've tried putting copies of 'resources_plsm2.cfg' in every likely directory without any effect so at the moment I'm stuck again.
HELP!.

XPomJon

16-02-2007 01:26:53

I've finally got the beast to work, well mapSplitter anyway. If I try ./PagingLandScape2 it loads the Ogre configure dialogue but then when I try to select a renderer it crashes with the error "Shell widget menu has zero width and/or height". Also while loading, plugins_plsm2.cfg isn't recognised :-

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.
plugins_plsm2.cfg not found, automatic plugin loading disabled.
*-*-* OGRE Initialising
*-*-* Version 1.2.5 (Dagon)


Is this normal?

XPomJon

22-02-2007 21:31:13

I've now got everything working. I've written my solution, for what it's worth, in the Paging Scene Manager wiki,