University of Southern CaliforniaUSC
USC ICT TwitterUSC ICT FacebookUSC ICT YouTube

Trying to build Smartbody on Arch, problem linking Ogre | 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
Trying to build Smartbody on Arch, problem linking Ogre
February 4, 2015
6:22 pm
Avatar
New Member
Members
Forum Posts: 2
Member Since:
February 3, 2015
sp_UserOfflineSmall Offline

Hello, I've spent several days trying to build Smartbody but I'm stuck right now. I'm using Archlinux, these are the steps I needed to do in order to almost compile it (maybe it's helpful for somebody).

1.- Download the bundle package
2.- Build and install activemq-cpp-library-3.8.3 (included in the package)
4.- Install xerces-c (using pacman).
5.- Build and install boost-numeric (from Aur).
6.- Protobuf conflict (My current system protobuf version was conflicting):
    - I had to delete pidgin, pidgin-otr pidgin libpurple libgadu protobuf-c protobuf (I wasn't really using pidgin).
    - Then download protobuf-2.4.1 sources
    - Build and install them
7.- Install ode (Using Pacman)
8.- Then I get "previous declaration ‘off64_t gzseek64' etc..."
    - It seems that something in the zlib included source code is not working for me, I've tracked the error to the zlib.h file.

In the zlib.h file there is this block of code:

if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0

And then there are several variables declared, right after there is

if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS-0 == 64 && _LFS64_LARGEFILE-0

And another set of variables with the same name. For some reason the execution flow is entering in both blocks so the variables are already defined. I solved this just by commenting the first block. Then I've sucessfully passed the compilation process, but then I'm stuck at the linking phase, when the libraries are linked, I recieve the following error:

CMakeFiles/sbgui.dir/EmbeddedOgre.cpp.o: In the function `EmbeddedOgre::addDeformableMesh(std::string, DeformableMeshInstance*)':
EmbeddedOgre.cpp:(.text+0x39be): references to `Ogre::MeshPtr::MeshPtr(Ogre::SharedPtr const&)' undefined

So it seems that there is some kind of problem linking Ogre, but I've no clue why. If I do:

$ ldconfig -p | grep libOgreMain
I get:

libOgreMain.so.1.9.0 (libc6) => /usr/lib/libOgreMain.so.1.9.0
libOgreMain.so (libc6) => /usr/lib/libOgreMain.so

I've tried setting an environment variable, installing an old Ogre version from source code, uninstalling and reinstalling Ogre but I've not been able to sucessfuly complete the linking phase.

Any ideas?

Thanks!

February 4, 2015
6:51 pm
Avatar
Admin
Forum Posts: 980
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

Did you download the Linux SDK, or are you trying to build it from the SVN repository?

The current Linux SDK is located here:

http://sourceforge.net/project.....z/download

Also,there are two different ways to render SmartBody: using Ogre, and using our own shaders. By default, the linux version does not use Ogre (although that can be enabled on line 39 on the file RootWindow.h). So in the CMakeLists.txt file in the sbgui/ directory, can you comment out the line that says  ${OGRE_SRCS} like this:

 

#  ${OGRE_SRCS}

and see if that works? 

 

Ari

February 8, 2015
10:04 pm
Avatar
New Member
Members
Forum Posts: 2
Member Since:
February 3, 2015
sp_UserOfflineSmall Offline

Hi Ari, problem solved!

I've set to FALSE the paremeter BUILD_OGRE that is located on the CMakeLists.txt file under the sbgui folder.

Thank you very much, I have the whole thing installed and running fine, I can't wait to start experimenting.

Since I had a couple of things to do in my system for installing the tool I've documented the process and published it on my personal blog. Smartbody looks great, nice job! :)

February 10, 2015
5:51 pm
Avatar
Admin
Forum Posts: 980
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

Great, glad you got it working with archlinux. I'll add a link from the main web site to your blog page.

Feel free to keep me up to date with your findings, and please let me know if you run into problems or are interested in new features.

 

Ari

Forum Timezone: America/Los_Angeles

Most Users Ever Online: 733

Currently Online: Roshan, huberdavidsen3, casey29english, byerslorentsen4, rainheaven0, kinneyreynolds06, andersen19eaton, kristensen00leblanc, bredahlbredahl9, bager59mayo, creechdonaldson71, hernandezaarup2, g2pvwfg490, ray0963
93 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

jwwalker: 80

jyambao: 51

rbaral: 47

adiaz: 30

WargnierP: 29

lucky7456969: 28

mbarros: 28

avida.matt: 26

JonathanW: 24

laguerre: 23

Member Stats:

Guest Posters: 65

Members: 52505

Moderators: 3

Admins: 4

Forum Stats:

Groups: 1

Forums: 5

Topics: 427

Posts: 2343