Linux Slackware 64-Bit Compile error OgreOverlayManager.h

Linux Slackware 64-Bit Compile error OgreOverlayManager.h

Postby MajorLunaC » 14 May 2014, 00:39

Compiling LoS from regular source on Linux Slackware 14.1 (64-bit with 32-bit compatibility libs) with OGRE 1.9, I get this odd error:

{l Code}: {l Select All Code}
[ 84/313] cxx: src/lipsofsuna/render/render-object.cpp -> .build/src/lipsofsuna/render/render-object.cpp.1.o
[ 85/313] cxx: src/lipsofsuna/render/render-overlay.cpp -> .build/src/lipsofsuna/render/render-overlay.cpp.1.o
In file included from ../src/lipsofsuna/render/render-overlay.cpp:26:0:
../src/lipsofsuna/render/internal/render.hpp:27:32: fatal error: OgreOverlayManager.h: No such file or directory
 #include <OgreOverlayManager.h>
                                ^
compilation terminated.
In file included from ../src/lipsofsuna/render/render-object.cpp:27:0:
../src/lipsofsuna/render/internal/render.hpp:27:32: fatal error: OgreOverlayManager.h: No such file or directory
 #include <OgreOverlayManager.h>
                                ^
compilation terminated.
In file included from ../src/lipsofsuna/render/render-model.cpp:27:0:
../src/lipsofsuna/render/internal/render.hpp:27:32: fatal error: OgreOverlayManager.h: No such file or directory
 #include <OgreOverlayManager.h>
                                ^
compilation terminated.
In file included from ../src/lipsofsuna/render/render-light.cpp:27:0:
../src/lipsofsuna/render/internal/render.hpp:27:32: fatal error: OgreOverlayManager.h: No such file or directory
 #include <OgreOverlayManager.h>
                                ^
compilation terminated.
Waf: Leaving directory `/home/user1/tmp/new-games/lipsofsuna-0.8.0/.build'
Build failed
 -> task in 'lipsofsuna' failed (exit status 1):
   {task 14877328: cxx render-overlay.cpp -> render-overlay.cpp.1.o}
['/usr/bin/g++', '-march=native', '-O2', '-pipe', '-fPIC', '-march=native', '-O2', '-pipe', '-fPIC', '-g', '-Wall', '-DHAVE_CONFIG_H', '-O3', '-pthread', '-pthread', '-I/home/user1/tmp/new-games/lipsofsuna-0.8.0/.build', '-I/home/user1/tmp/new-games/lipsofsuna-0.8.0', '-I/home/user1/tmp/new-games/lipsofsuna-0.8.0/.build/src', '-I/home/user1/tmp/new-games/lipsofsuna-0.8.0/src', '-I/usr/include/bullet', '-I/usr/include/OIS', '-I/usr/include/OGRE', '-I/usr/include/OGRE/Terrain', '-I/usr/include/OGRE/Paging', '-I/usr/include/AL', '-I/usr/include/FLAC', '../src/lipsofsuna/render/render-overlay.cpp', '-c', '-o', 'src/lipsofsuna/render/render-overlay.cpp.1.o']
 -> task in 'lipsofsuna' failed (exit status 1):
   {task 14877136: cxx render-object.cpp -> render-object.cpp.1.o}
['/usr/bin/g++', '-march=native', '-O2', '-pipe', '-fPIC', '-march=native', '-O2', '-pipe', '-fPIC', '-g', '-Wall', '-DHAVE_CONFIG_H', '-O3', '-pthread', '-pthread', '-I/home/user1/tmp/new-games/lipsofsuna-0.8.0/.build', '-I/home/user1/tmp/new-games/lipsofsuna-0.8.0', '-I/home/user1/tmp/new-games/lipsofsuna-0.8.0/.build/src', '-I/home/user1/tmp/new-games/lipsofsuna-0.8.0/src', '-I/usr/include/bullet', '-I/usr/include/OIS', '-I/usr/include/OGRE', '-I/usr/include/OGRE/Terrain', '-I/usr/include/OGRE/Paging', '-I/usr/include/AL', '-I/usr/include/FLAC', '../src/lipsofsuna/render/render-object.cpp', '-c', '-o', 'src/lipsofsuna/render/render-object.cpp.1.o']
 -> task in 'lipsofsuna' failed (exit status 1):
   {task 14876944: cxx render-model.cpp -> render-model.cpp.1.o}
['/usr/bin/g++', '-march=native', '-O2', '-pipe', '-fPIC', '-march=native', '-O2', '-pipe', '-fPIC', '-g', '-Wall', '-DHAVE_CONFIG_H', '-O3', '-pthread', '-pthread', '-I/home/user1/tmp/new-games/lipsofsuna-0.8.0/.build', '-I/home/user1/tmp/new-games/lipsofsuna-0.8.0', '-I/home/user1/tmp/new-games/lipsofsuna-0.8.0/.build/src', '-I/home/user1/tmp/new-games/lipsofsuna-0.8.0/src', '-I/usr/include/bullet', '-I/usr/include/OIS', '-I/usr/include/OGRE', '-I/usr/include/OGRE/Terrain', '-I/usr/include/OGRE/Paging', '-I/usr/include/AL', '-I/usr/include/FLAC', '../src/lipsofsuna/render/render-model.cpp', '-c', '-o', 'src/lipsofsuna/render/render-model.cpp.1.o']
 -> task in 'lipsofsuna' failed (exit status 1):
   {task 14876816: cxx render-light.cpp -> render-light.cpp.1.o}
['/usr/bin/g++', '-march=native', '-O2', '-pipe', '-fPIC', '-march=native', '-O2', '-pipe', '-fPIC', '-g', '-Wall', '-DHAVE_CONFIG_H', '-O3', '-pthread', '-pthread', '-I/home/user1/tmp/new-games/lipsofsuna-0.8.0/.build', '-I/home/user1/tmp/new-games/lipsofsuna-0.8.0', '-I/home/user1/tmp/new-games/lipsofsuna-0.8.0/.build/src', '-I/home/user1/tmp/new-games/lipsofsuna-0.8.0/src', '-I/usr/include/bullet', '-I/usr/include/OIS', '-I/usr/include/OGRE', '-I/usr/include/OGRE/Terrain', '-I/usr/include/OGRE/Paging', '-I/usr/include/AL', '-I/usr/include/FLAC', '../src/lipsofsuna/render/render-light.cpp', '-c', '-o', 'src/lipsofsuna/render/render-light.cpp.1.o']


Am I missing something?
Last edited by MajorLunaC on 15 May 2014, 18:29, edited 1 time in total.
MajorLunaC
 
Posts: 13
Joined: 12 May 2014, 17:37

Re: Linux Slackware 64-Bit Compile error OgreOverlayManager.

Postby MajorLunaC » 14 May 2014, 23:54

I tried the dev version of LoS with the same results. Then, while looking at Arch Linux packages, they mentioned a patch for OGRE 1.9:

Arch Linux Package: https://aur.archlinux.org/packages.php?ID=46458
LoS OGRE 1.9 Patch: http://pastebin.com/9E3mnaRp

It was applied successfully, and it actually got farther than 85/313 , but I got another error:

{l Code}: {l Select All Code}
[ 89/313] c: src/lipsofsuna/render/image/image-dds.c -> .build/src/lipsofsuna/render/image/image-dds.c.1.o
[ 90/313] cxx: src/lipsofsuna/render/internal/render-attachment-entity.cpp -> .build/src/lipsofsuna/render/internal/render-attachment-entity.cpp.1.o
[ 91/313] cxx: src/lipsofsuna/render/internal/render-attachment-particle.cpp -> .build/src/lipsofsuna/render/internal/render-attachment-particle.cpp.1.o
In file included from /home/user1/tmp/new-games/LoS/lipsofsuna-0.8.0/src/lipsofsuna/system.h:21:0,
                 from ../src/lipsofsuna/render/internal/render-attachment-entity.cpp:27:
../src/lipsofsuna/render/internal/render-attachment-entity.cpp: In member function 'virtual void LIRenAttachmentEntity::update(float)':
../src/lipsofsuna/render/internal/render-attachment-entity.cpp:217:68: error: invalid use of incomplete type 'class Ogre::SkeletonInstance'
    lisys_assert (pose_buffer->bones.count == entity->getSkeleton ()->getNumBones ());
                                                                    ^
/home/user1/tmp/new-games/LoS/lipsofsuna-0.8.0/src/lipsofsuna/system/system.h:40:29: note: in definition of macro 'lisys_assert'
 #define lisys_assert(exp) ((exp)? (void) 0 : lisys_assert_fail (#exp, __FILE__, __LINE__, __func__))
                             ^
In file included from /usr/include/OGRE/OgreString.h:31:0,
                 from ../src/lipsofsuna/render/internal/render-unique-id.hpp:22,
                 from ../src/lipsofsuna/render/internal/render.hpp:22,
                 from ../src/lipsofsuna/render/internal/render-attachment-entity.cpp:28:
/usr/include/OGRE/OgrePrerequisites.h:295:11: error: forward declaration of 'class Ogre::SkeletonInstance'
     class SkeletonInstance;
           ^
In file included from /home/user1/tmp/new-games/LoS/lipsofsuna-0.8.0/src/lipsofsuna/system.h:21:0,
                 from ../src/lipsofsuna/render/internal/render-attachment-entity.cpp:27:
../src/lipsofsuna/render/internal/render-attachment-entity.cpp: In member function 'virtual void LIRenAttachmentEntity::update_pose(LIMdlPoseSkeleton*)':
../src/lipsofsuna/render/internal/render-attachment-entity.cpp:270:57: error: invalid use of incomplete type 'class Ogre::SkeletonInstance'
  lisys_assert (pose_buffer->bones.count == ogre_skeleton->getNumBones ());
                                                         ^
/home/user1/tmp/new-games/LoS/lipsofsuna-0.8.0/src/lipsofsuna/system/system.h:40:29: note: in definition of macro 'lisys_assert'
 #define lisys_assert(exp) ((exp)? (void) 0 : lisys_assert_fail (#exp, __FILE__, __LINE__, __func__))
                             ^
In file included from /usr/include/OGRE/OgreString.h:31:0,
                 from ../src/lipsofsuna/render/internal/render-unique-id.hpp:22,
                 from ../src/lipsofsuna/render/internal/render.hpp:22,
                 from ../src/lipsofsuna/render/internal/render-attachment-entity.cpp:28:
/usr/include/OGRE/OgrePrerequisites.h:295:11: error: forward declaration of 'class Ogre::SkeletonInstance'
     class SkeletonInstance;
           ^
../src/lipsofsuna/render/internal/render-attachment-entity.cpp:276:39: error: invalid use of incomplete type 'class Ogre::SkeletonInstance'
   Ogre::Bone* dst_bone = ogre_skeleton->getBone (i);
                                       ^
In file included from /usr/include/OGRE/OgreString.h:31:0,
                 from ../src/lipsofsuna/render/internal/render-unique-id.hpp:22,
                 from ../src/lipsofsuna/render/internal/render.hpp:22,
                 from ../src/lipsofsuna/render/internal/render-attachment-entity.cpp:28:
/usr/include/OGRE/OgrePrerequisites.h:295:11: error: forward declaration of 'class Ogre::SkeletonInstance'
     class SkeletonInstance;
           ^
../src/lipsofsuna/render/internal/render-attachment-entity.cpp:279:11: error: invalid use of incomplete type 'class Ogre::Bone'
   dst_bone->setScale (s.x, s.y, s.z);
           ^
In file included from /usr/include/OGRE/OgreString.h:31:0,
                 from ../src/lipsofsuna/render/internal/render-unique-id.hpp:22,
                 from ../src/lipsofsuna/render/internal/render.hpp:22,
                 from ../src/lipsofsuna/render/internal/render-attachment-entity.cpp:28:
/usr/include/OGRE/OgrePrerequisites.h:154:11: error: forward declaration of 'class Ogre::Bone'
     class Bone;
           ^
../src/lipsofsuna/render/internal/render-attachment-entity.cpp:280:11: error: invalid use of incomplete type 'class Ogre::Bone'
   dst_bone->setPosition (t.position.x, t.position.y, t.position.z);
           ^
In file included from /usr/include/OGRE/OgreString.h:31:0,
                 from ../src/lipsofsuna/render/internal/render-unique-id.hpp:22,
                 from ../src/lipsofsuna/render/internal/render.hpp:22,
                 from ../src/lipsofsuna/render/internal/render-attachment-entity.cpp:28:
/usr/include/OGRE/OgrePrerequisites.h:154:11: error: forward declaration of 'class Ogre::Bone'
     class Bone;
           ^
../src/lipsofsuna/render/internal/render-attachment-entity.cpp:281:11: error: invalid use of incomplete type 'class Ogre::Bone'
   dst_bone->setOrientation (t.rotation.w, t.rotation.x, t.rotation.y, t.rotation.z);
           ^
In file included from /usr/include/OGRE/OgreString.h:31:0,
                 from ../src/lipsofsuna/render/internal/render-unique-id.hpp:22,
                 from ../src/lipsofsuna/render/internal/render.hpp:22,
                 from ../src/lipsofsuna/render/internal/render-attachment-entity.cpp:28:
/usr/include/OGRE/OgrePrerequisites.h:154:11: error: forward declaration of 'class Ogre::Bone'
     class Bone;
           ^
../src/lipsofsuna/render/internal/render-attachment-entity.cpp:285:15: error: invalid use of incomplete type 'class Ogre::SkeletonInstance'
  ogre_skeleton->_notifyManualBonesDirty ();
               ^
In file included from /usr/include/OGRE/OgreString.h:31:0,
                 from ../src/lipsofsuna/render/internal/render-unique-id.hpp:22,
                 from ../src/lipsofsuna/render/internal/render.hpp:22,
                 from ../src/lipsofsuna/render/internal/render-attachment-entity.cpp:28:
/usr/include/OGRE/OgrePrerequisites.h:295:11: error: forward declaration of 'class Ogre::SkeletonInstance'
     class SkeletonInstance;
           ^
../src/lipsofsuna/render/internal/render-attachment-entity.cpp: In member function 'bool LIRenAttachmentEntity::create_skeleton()':
../src/lipsofsuna/render/internal/render-attachment-entity.cpp:322:31: error: invalid use of incomplete type 'class Ogre::SkeletonInstance'
    Ogre::Bone* bone = skeleton->getBone (i + 1);
                               ^
In file included from /usr/include/OGRE/OgreString.h:31:0,
                 from ../src/lipsofsuna/render/internal/render-unique-id.hpp:22,
                 from ../src/lipsofsuna/render/internal/render.hpp:22,
                 from ../src/lipsofsuna/render/internal/render-attachment-entity.cpp:28:
/usr/include/OGRE/OgrePrerequisites.h:295:11: error: forward declaration of 'class Ogre::SkeletonInstance'
     class SkeletonInstance;
           ^
../src/lipsofsuna/render/internal/render-attachment-entity.cpp:328:9: error: invalid use of incomplete type 'class Ogre::Bone'
     bone->setPosition (t.position.x, t.position.y, t.position.z);
         ^
In file included from /usr/include/OGRE/OgreString.h:31:0,
                 from ../src/lipsofsuna/render/internal/render-unique-id.hpp:22,
                 from ../src/lipsofsuna/render/internal/render.hpp:22,
                 from ../src/lipsofsuna/render/internal/render-attachment-entity.cpp:28:
/usr/include/OGRE/OgrePrerequisites.h:154:11: error: forward declaration of 'class Ogre::Bone'
     class Bone;
           ^
../src/lipsofsuna/render/internal/render-attachment-entity.cpp:329:9: error: invalid use of incomplete type 'class Ogre::Bone'
     bone->setOrientation (t.rotation.w, t.rotation.x, t.rotation.y, t.rotation.z);
         ^
In file included from /usr/include/OGRE/OgreString.h:31:0,
                 from ../src/lipsofsuna/render/internal/render-unique-id.hpp:22,
                 from ../src/lipsofsuna/render/internal/render.hpp:22,
                 from ../src/lipsofsuna/render/internal/render-attachment-entity.cpp:28:
/usr/include/OGRE/OgrePrerequisites.h:154:11: error: forward declaration of 'class Ogre::Bone'
     class Bone;
           ^
../src/lipsofsuna/render/internal/render-attachment-entity.cpp:335:31: error: invalid use of incomplete type 'class Ogre::SkeletonInstance'
  for (int i = 0 ; i < skeleton->getNumBones () ; i++)
                               ^
In file included from /usr/include/OGRE/OgreString.h:31:0,
                 from ../src/lipsofsuna/render/internal/render-unique-id.hpp:22,
                 from ../src/lipsofsuna/render/internal/render.hpp:22,
                 from ../src/lipsofsuna/render/internal/render-attachment-entity.cpp:28:
/usr/include/OGRE/OgrePrerequisites.h:295:11: error: forward declaration of 'class Ogre::SkeletonInstance'
     class SkeletonInstance;
           ^
../src/lipsofsuna/render/internal/render-attachment-entity.cpp:337:30: error: invalid use of incomplete type 'class Ogre::SkeletonInstance'
   Ogre::Bone* bone = skeleton->getBone (i);
                              ^
In file included from /usr/include/OGRE/OgreString.h:31:0,
                 from ../src/lipsofsuna/render/internal/render-unique-id.hpp:22,
                 from ../src/lipsofsuna/render/internal/render.hpp:22,
                 from ../src/lipsofsuna/render/internal/render-attachment-entity.cpp:28:
/usr/include/OGRE/OgrePrerequisites.h:295:11: error: forward declaration of 'class Ogre::SkeletonInstance'
     class SkeletonInstance;
           ^
../src/lipsofsuna/render/internal/render-attachment-entity.cpp:338:7: error: invalid use of incomplete type 'class Ogre::Bone'
   bone->setManuallyControlled (true);
       ^
In file included from /usr/include/OGRE/OgreString.h:31:0,
                 from ../src/lipsofsuna/render/internal/render-unique-id.hpp:22,
                 from ../src/lipsofsuna/render/internal/render.hpp:22,
                 from ../src/lipsofsuna/render/internal/render-attachment-entity.cpp:28:
/usr/include/OGRE/OgrePrerequisites.h:154:11: error: forward declaration of 'class Ogre::Bone'
     class Bone;
           ^
../src/lipsofsuna/render/internal/render-attachment-entity.cpp:342:10: error: invalid use of incomplete type 'class Ogre::SkeletonInstance'
  skeleton->setBindingPose ();
          ^
In file included from /usr/include/OGRE/OgreString.h:31:0,
                 from ../src/lipsofsuna/render/internal/render-unique-id.hpp:22,
                 from ../src/lipsofsuna/render/internal/render.hpp:22,
                 from ../src/lipsofsuna/render/internal/render-attachment-entity.cpp:28:
/usr/include/OGRE/OgrePrerequisites.h:295:11: error: forward declaration of 'class Ogre::SkeletonInstance'
     class SkeletonInstance;
           ^
Waf: Leaving directory `/home/user1/tmp/new-games/LoS/lipsofsuna-0.8.0/.build'
Build failed
 -> task in 'lipsofsuna' failed (exit status 1):
   {task 25323216: cxx render-attachment-entity.cpp -> render-attachment-entity.cpp.1.o}
['/usr/bin/g++', '-march=native', '-O2', '-pipe', '-fPIC', '-march=native', '-O2', '-pipe', '-fPIC', '-g', '-Wall', '-DHAVE_CONFIG_H', '-O3', '-pthread', '-pthread', '-pthread', '-I/home/user1/tmp/new-games/LoS/lipsofsuna-0.8.0/.build', '-I/home/user1/tmp/new-games/LoS/lipsofsuna-0.8.0', '-I/home/user1/tmp/new-games/LoS/lipsofsuna-0.8.0/.build/src', '-I/home/user1/tmp/new-games/LoS/lipsofsuna-0.8.0/src', '-I/usr/include/bullet', '-I/usr/include/OIS', '-I/usr/include/OGRE', '-I/usr/include/OGRE/Terrain', '-I/usr/include/OGRE/Paging', '-I/usr/include/OGRE/Overlay', '-I/usr/include/AL', '-I/usr/include/FLAC', '../src/lipsofsuna/render/internal/render-attachment-entity.cpp', '-c', '-o', 'src/lipsofsuna/render/internal/render-attachment-entity.cpp.1.o']
bash-4.2$
MajorLunaC
 
Posts: 13
Joined: 12 May 2014, 17:37

Re: Linux Slackware 64-Bit Compile error OgreOverlayManager.

Postby MajorLunaC » 15 May 2014, 03:16

Here's my attempt with OGRE version 1.8.1 and LoS 0.8.0

{l Code}: {l Select All Code}
(...)
.build/src/lipsofsuna/system/system.c.2.o -> .build/lipsofsuna-lodtool
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: src/lipsofsuna/render/render-light.cpp.1.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: note: '_ZN5boost6system15system_categoryEv' is defined in DSO /usr/lib64/libboost_system.so.1.54.0 so try adding it to the linker command line
/usr/lib64/libboost_system.so.1.54.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/home/lunac/tmp/new-games/lipsofsuna-0.8.0/.build'
Build failed
 -> task in 'lipsofsuna' failed (exit status 1):
   {task 30125520: cxxprogram algorithm-array.c.1.o,algorithm-astar.c.1.o,algorithm-bst.c.1.o,algorithm-list.c.1.o,algorithm-memdic.c.1.o,algorithm-octree.c.1.o,algorithm-priority-queue.c.1.o,algorithm-ptrdic.c.1.o,algorithm-sectors.c.1.o,algorithm-strdic.c.1.o,algorithm-u32dic.c.1.o,
(...)


It's strange, but I'm getting the EXACT same error trying to compile MyGUI for something else, so I'm guessing it's something with the boost installation that came with Slackware. How do I " try adding it to the linker command line"? :think:
MajorLunaC
 
Posts: 13
Joined: 12 May 2014, 17:37

Re: Linux Slackware 64-Bit Compile error OgreOverlayManager.

Postby MajorLunaC » 15 May 2014, 18:26

Solution:

viewtopic.php?f=64&t=4699

I wonder if it would cause any problems to include that fix in LoS? Either way, LoS does NOT work with OGRE 1.9 as of yet. Best to use OGRE 1.8.1 or something close.

Boost Error Reference:

https://svn.boost.org/trac/boost/ticket/7241

https://code.google.com/p/ogre-procedur ... ail?id=143

Topic Closed.
MajorLunaC
 
Posts: 13
Joined: 12 May 2014, 17:37

Re: Linux Slackware 64-Bit Compile error OgreOverlayManager.

Postby amuzen » 16 May 2014, 21:39

The git repository of LoS should already have fixes for these issues.
User avatar
amuzen
LoS Moderator
 
Posts: 327
Joined: 05 Dec 2009, 02:49

Re: Linux Slackware 64-Bit Compile error OgreOverlayManager.

Postby MajorLunaC » 17 May 2014, 18:45

It's true, I forgot to try the git version with OGRE 1.8.1, and the git version does compile fully and properly. Although a little buggy on occasion:

{l Code}: {l Select All Code}
bash-4.2$ ./lipsofsuna
ERROR: main/mod.lua:172: loading mod "actors/companion" failed:
ERROR: could not open specs "actors/companion/dialog.json"
stack traceback:
   [C]: in function 'error'
   main/mod.lua:172: in function 'load'
   main/mod.lua:232: in function 'load_list_json'
   main/mod.lua:222: in function 'load_list'
   main/main.lua:62: in function 'load'
   main.lua:5: in main chunk
bash-4.2$


Yeah, actors/companion/dialog.json is not there atm.
MajorLunaC
 
Posts: 13
Joined: 12 May 2014, 17:37

Who is online

Users browsing this forum: No registered users and 1 guest

cron