compiling error - VisibleObjectsBoundsInfo

scippio

28-04-2007 01:48:07

Hi, I downloaded paginglandscape (from cvs) and when i compiling it:
( I have Arch Linux 0.8 ) Code:

g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../PlugIns/PagingLandScape2/include -DOGRE_GUI_gtk -DOGRE_CONFIG_LITTLE_ENDIAN -I/usr/include/OGRE -g -O2 -MT OgrePagingLandScapeOcclusionElement.lo -MD -MP -MF .deps/OgrePagingLandScapeOcclusionElement.Tpo -c OgrePagingLandScapeOcclusionElement.cpp -fPIC -DPIC -o .libs/OgrePagingLandScapeOcclusionElement.o
In file included from OgrePagingLandScapeOcclusionElement.cpp:11:
../../../PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionVisibilityData.h:45:28: warning: no newline at end of file
../../../PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionElement.h:27: error: 'VisibleObjectsBoundsInfo' has not been declared
../../../PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionElement.h:28: error: 'VisibleObjectsBoundsInfo' has not been declared
../../../PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionElement.h:29: error: 'VisibleObjectsBoundsInfo' has not been declared
make[4]: *** [OgrePagingLandScapeOcclusionElement.lo] Error 1
make[4]: Leaving directory `/home/scippio/projects/soumrak/ogre_cvs/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/scippio/projects/soumrak/ogre_cvs/ogreaddons/paginglandscape/PlugIns/PagingLandScape2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/scippio/projects/soumrak/ogre_cvs/ogreaddons/paginglandscape/PlugIns'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/scippio/projects/soumrak/ogre_cvs/ogreaddons/paginglandscape'
make: *** [all] Error 2

Sry for my english...

nindim

28-04-2007 19:22:08

Looks like you're linking to a version of OGRE other than Eihort. You need to be using one of the 1.4 OGRE revisions.

The latest (i think) patch on the CVS has been converted it to eihort, but it doesnt include the #ifdef statements for some fo the code, so it wont compile out of the box against Dagon or previous versions.

There are a lot of posts about this on the forum, take a look.

Zero_effect

29-04-2007 18:13:25

I have encountered similar problem with Eihort:

../../../PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionElement.h:27: error: `VisibleObjectsBoundsInfo' has not been declared
../../../PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionElement.h:27: error: ISO C++ forbids declaration of `visibleBounds' with no type
../../../PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionElement.h:28: error: `VisibleObjectsBoundsInfo' has not been declared
../../../PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionElement.h:28: error: ISO C++ forbids declaration of `visibleBounds' with no type
../../../PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionElement.h:29: error: `VisibleObjectsBoundsInfo' has not been declared
../../../PlugIns/PagingLandScape2/include/OgrePagingLandScapeOcclusionElement.h:29: error: ISO C++ forbids declaration of `visibleBounds' with no type


It is very easy to fix it - just add:

#include <OgreSceneManager.h>

scippio

30-04-2007 20:08:40

THANK YOU VERY VERY MUCH ! :)

Now.... I have another "little" problem:


...-lz -lm -ldl
grep: /usr/lib/libzzip.la: No such file or directory
/bin/sed: can't read /usr/lib/libzzip.la: No such file or directory
libtool: link: `/usr/lib/libzzip.la' is not a valid libtool archive
make[4]: *** [Plugin_PagingLandScape2.la] Error 1
...


I have libzzip installed

ldconfig -p | grep zip
libzzipwrap-0.so.13 (libc6) => /usr/lib/libzzipwrap-0.so.13
libzzipmmapped-0.so.13 (libc6) => /usr/lib/libzzipmmapped-0.so.13
libzzipfseeko-0.so.13 (libc6) => /usr/lib/libzzipfseeko-0.so.13
libzzip-0.so.13 (libc6) => /usr/lib/libzzip-0.so.13

and

ls /usr/lib/ | grep zip
libzzip-0.so.13
libzzip-0.so.13.0.49
libzzip.a
libzzip.so
libzzipfseeko-0.so.13
libzzipfseeko-0.so.13.0.49
libzzipfseeko.a
libzzipfseeko.so
libzzipmmapped-0.so.13
libzzipmmapped-0.so.13.0.49
libzzipmmapped.a
libzzipmmapped.so
libzzipwrap-0.so.13
libzzipwrap-0.so.13.0.49
libzzipwrap.a
libzzipwrap.so

Zero_effect

30-04-2007 20:43:55

Do you use some precompiled package because I compile the library from source and the .la file always gets installed?

Jon

01-05-2007 00:04:55



#include <OgreSceneManager.h>


Thanks, that probably saved me an hour which I wasn't looking forward to spending.

Baiame

01-05-2007 06:32:19

^ Haha, I spent that hour before I figured it out. Bah.