University of Southern CaliforniaUSC
USC ICT TwitterUSC ICT FacebookUSC ICT YouTube

Ubuntu 14.04 x64 build issues | General SmartBody Discussion | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Ubuntu 14.04 x64 build issues
October 6, 2014
4:34 pm
Avatar
New Member
Members
Forum Posts: 2
Member Since:
October 6, 2014
sp_UserOfflineSmall Offline

Hi,

I've been trying to build SmartBody on Ubuntu 14.04, but I've run into an issue where it's trying to build using Ogre headers, but I've not got Ogre installed (nor do I want it as I'm currently using Panda3D). I've tried with the stable and trunk versions from the Sourceforge repo, and it happens with both.

In file included from /home/alex/Downloads/smartbody/core/smartbody/sbgui/src/ExampleFrameListener.cpp:1:0:
/home/alex/Downloads/smartbody/core/smartbody/sbgui/src/ExampleFrameListener.h:41:23: fatal error: OGRE/Ogre.h: No such file or directory
#include "OGRE/Ogre.h"
^
compilation terminated.
make[2]: *** [core/smartbody/sbgui/CMakeFiles/sbgui.dir/src/ExampleFrameListener.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/alex/Downloads/smartbody/core/smartbody/sbgui/src/OgreFrameListener.h:4:0,
from /home/alex/Downloads/smartbody/core/smartbody/sbgui/src/EmbeddedOgre.cpp:14:
/home/alex/Downloads/smartbody/core/smartbody/sbgui/src/ExampleFrameListener.h:41:23: fatal error: OGRE/Ogre.h: No such file or directory
#include "OGRE/Ogre.h"
^
compilation terminated.
make[2]: *** [core/smartbody/sbgui/CMakeFiles/sbgui.dir/src/EmbeddedOgre.cpp.o] Error 1
make[1]: *** [core/smartbody/sbgui/CMakeFiles/sbgui.dir/all] Error 2
make: *** [all] Error 2

I've checked the CMakeLists.txt, and BUILD_OGRE is set to false. Any ideas what to try?

On another note, I had to create a symbolic link from /usr/lib/x86_64-linux-gnu/libprotoc.so.8 to /usr/lib/x86_64-linux-gnu/libprotoc.so before ld would stop complaining that it couldn't find -lprotoc. Just thought I'd mention that in case it's of help to anyone else. Other than that and this current issue, the trunk build has been relatively smooth sailing.

October 7, 2014
12:20 am
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

There shouldn't be any OGRE code if you set BUILD_OGRE. The ExampleFrameListener.h file only gets included if BUILD_OGRE is valid.

In CMakeLists.txt in the sbgui/ directory, there is a

 

set(BUILD_OGRE FALSE)

 

line. Is that set like that?

 

Ari

October 7, 2014
8:01 am
Avatar
New Member
Members
Forum Posts: 2
Member Since:
October 6, 2014
sp_UserOfflineSmall Offline

Ah, when I said I checked CMakeLists, I meant I checked the one in the root directory, assuming the setting would propogate (I'm not really familiar with CMake). I just checked the one in that directory, and it did indeed have BUILD_OGRE set to true there. Anyway it's just built properly, and sbgui seems to have just loaded ok, so I think I'm good to go. Can't wait to try this out :). Thanks a lot.

October 7, 2014
10:57 pm
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

Thanks for the info, though. I should put these definitions at the top level CMakeLists.txt file.

 

Ari