University of Southern CaliforniaUSC
USC ICT TwitterUSC ICT FacebookUSC ICT YouTube

Building error on Ubuntu 14.04 LTS with Smartbody version r5616 | 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
Building error on Ubuntu 14.04 LTS with Smartbody version r5616
July 31, 2014
7:46 pm
Avatar
Member
Members
Forum Posts: 7
Member Since:
July 31, 2014
sp_UserOfflineSmall Offline

Dear All,

I am trying to build and install SmartBody-r5616 on Ubuntu 14.04(64bits).  It would be important to mention that I run

$ sudo apt-get install activemq

successfully and then I tried to build without success, so I proceed to follow the below commands

$tar -xvzf activemq-cpp-library-3.8.1-src.tar.gz
$cd activemq-cpp-library-3.8.1
$./configure --disable-ssl
$make
$sudo make install

$mkdir mybuild

$cmake..

$make install

 ...........
[ 10%] Building CXX object src/steerlib/CMakeFiles/steerlib.dir/__/external/tinyxml/tinyxmlerror.cpp.o
Linking CXX shared library libsteerlib.so
[ 10%] Built target steerlib
Scanning dependencies of target pprAI
[ 10%] Building CXX object src/pprAI/CMakeFiles/pprAI.dir/PPRAIModule.cpp.o
[ 10%] Building CXX object src/pprAI/CMakeFiles/pprAI.dir/PPRAgent.cpp.o
Linking CXX shared library libpprAI.so
[ 10%] Built target pprAI
Scanning dependencies of target protoctarget
/bin/sh: 1: protoc: not found
make[2]: *** [src/SmartBody/CMakeFiles/protoctarget] Error 127
make[1]: *** [src/SmartBody/CMakeFiles/protoctarget.dir/all] Error 2
make: *** [all] Error 2

 

 

I would very much appreciate any help of guidance that you can provide.

 

Yours sincerely,

JD

 

 

 

July 31, 2014
9:58 pm
Avatar
Member
Members
Forum Posts: 7
Member Since:
July 31, 2014
sp_UserOfflineSmall Offline

Ok..  so I found the solution to this error here:

The error that you are getting is from the Google Protocol Buffers libraries not being installed – SmartBody can use some binary formats for faster loading. Try :   apt-get install protobuf-compiler

Now I'm running into: 

[ 53%] Building CXX object src/SmartBody/CMakeFiles/SmartBody.dir/controllers/me_ct_reach_IK.cpp.o
[ 53%] Building CXX object src/SmartBody/CMakeFiles/SmartBody.dir/controllers/me_ct_simple_gaze.cpp.o
[ 53%] Building CXX object src/SmartBody/CMakeFiles/SmartBody.dir/controllers/me_ct_tether.cpp.o
[ 53%] Building CXX object src/SmartBody/CMakeFiles/SmartBody.dir/controllers/me_ct_ublas.cpp.o
/opt/smartBody/smartbody/src/SmartBody/controllers/me_ct_ublas.cpp:3:48: fatal error: boost/numeric/bindings/blas/blas.hpp: No such file or directory
 #include <boost/numeric/bindings/blas/blas.hpp>
                                                ^
compilation terminated.
make[2]: *** [src/SmartBody/CMakeFiles/SmartBody.dir/controllers/me_ct_ublas.cpp.o] Error 1
make[1]: *** [src/SmartBody/CMakeFiles/SmartBody.dir/all] Error 2
make: *** [all] Error 2

Even after installing libboost1.55.-all-dev It cannot find blas.hpp.

Please advise.. thank you.

August 2, 2014
3:28 am
Avatar
Member
Members
Forum Posts: 7
Member Since:
July 31, 2014
sp_UserOfflineSmall Offline

So I found the boost numeric bindings here: 

http://mathema.tician.de/softw.....-bindings/

and just copied the bindings folder into the boost folder.  

August 2, 2014
5:06 am
Avatar
Member
Members
Forum Posts: 7
Member Since:
July 31, 2014
sp_UserOfflineSmall Offline

Still having trouble reconciling all my libraries for this compile.

[ 57%] Building CXX object src/SmartBody/CMakeFiles/SmartBody.dir/sbm/local_speech.cpp.o
[ 57%] Building CXX object src/SmartBody/CMakeFiles/SmartBody.dir/sbm/sbm_deformable_mesh.cpp.o
In file included from /opt/smartBody/smartbody/src/SmartBody/sbm/sbm_deformable_mesh.cpp:13:0:
/opt/smartBody/smartbody/src/SmartBody/./protocols/sbmesh.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
#error This file was generated by an older version of protoc which is
^
/opt/smartBody/smartbody/src/SmartBody/./protocols/sbmesh.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please
#error incompatible with your Protocol Buffer headers. Please
^
/opt/smartBody/smartbody/src/SmartBody/./protocols/sbmesh.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.
#error regenerate this file with a newer version of protoc.
^
In file included from /opt/smartBody/smartbody/src/SmartBody/./protocols/sbmesh.pb.h:26:0,
from /opt/smartBody/smartbody/src/SmartBody/sbm/sbm_deformable_mesh.cpp:13:
/opt/smartBody/smartbody/src/SmartBody/./protocols/sbutilities.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
#error This file was generated by an older version of protoc which is
^
/opt/smartBody/smartbody/src/SmartBody/./protocols/sbutilities.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please
#error incompatible with your Protocol Buffer headers. Please
^
/opt/smartBody/smartbody/src/SmartBody/./protocols/sbutilities.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.
#error regenerate this file with a newer version of protoc.
^
make[2]: *** [src/SmartBody/CMakeFiles/SmartBody.dir/sbm/sbm_deformable_mesh.cpp.o] Error 1
make[1]: *** [src/SmartBody/CMakeFiles/SmartBody.dir/all] Error 2
make: *** [all] Error 2

So I'm looking for what upgrades protoc.  I thought I have the latest versions of:

protobuf-c-compiler

protobuf-compiler

Didn't seem to like them.  I'm looking for some suggestions as to how to verify I have the version of protoc we're looking for here.

At the time of this writing I have libprotoc 2.5.0

I'm going to attempt to roll back a version to see if older is actually better.

Thanks.

August 3, 2014
5:50 am
Avatar
Member
Members
Forum Posts: 7
Member Since:
July 31, 2014
sp_UserOfflineSmall Offline

Yeah, so rolling back to libprotoc 2.4.1 and that seems to fix my last issue.

It seems now I'm running into an OGRE related issue that I can't seem to fix.  Pleas advise.  all suggestions welcome.

[ 79%] Built target SmartBody
[ 82%] Built target pinocchio
[ 84%] Built target polyvoxcore
[ 84%] Building CXX object src/sbgui/CMakeFiles/sbgui.dir/EmbeddedOgre.cpp.o
In file included from /opt/smartBody/smartbody/src/sbgui/OgreFrameListener.h:4:0,
from /opt/smartBody/smartbody/src/sbgui/EmbeddedOgre.cpp:14:
/opt/smartBody/smartbody/src/sbgui/ExampleFrameListener.h:45:30: fatal error: OGRE/OgreOverlay.h: No such file or directory
#include "OGRE/OgreOverlay.h"
^
compilation terminated.

August 3, 2014
6:34 am
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

That line changed in Ogre versions, and the I haven't nailed the conditional #ifdefs for the Ogre versions properly yet.

Try changing line 45 of /home/shapiro/smartbody/core/smartbody/sbgui/src/ExampleFrameListener.h from:

 

#include "OGRE/OgreOverlay.h"

 

to

 

#include "OGRE/Overlay/OgreOverlay.h"

 

Ari

August 3, 2014
7:38 am
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

Also, I made some recent checkins to the trunk that fix some other compilation problems on linux.

 

Ari

August 3, 2014
8:51 pm
Avatar
Member
Members
Forum Posts: 7
Member Since:
July 31, 2014
sp_UserOfflineSmall Offline

Thank you so much Ari for your response.

That did work for my OGRE issue.  Thank you!

I attempted to compile the latest trunk you updated, but was getting errors on cmake from a /mybuild folder.

 

:/opt/smartBody/smartbody-code-5753-trunk/mybuild$ cmake ..
CMake Error at lib/CMakeLists.txt:2 (add_subdirectory):
add_subdirectory given source "vhcl" which is not an existing directory.

CMake Error at lib/CMakeLists.txt:3 (add_subdirectory):
add_subdirectory given source "bonebus" which is not an existing directory.

CMake Error at lib/CMakeLists.txt:4 (add_subdirectory):
add_subdirectory given source "vhmsg/vhmsg-c" which is not an existing
directory.

-- Configuring incomplete, errors occurred!
See also "/opt/smartBody/smartbody-code-5753-trunk/mybuild/CMakeFiles/CMakeOutput.log".

 

But on version r5616  ran into another hiccup. 

[ 97%] Building CXX object src/sbgui/CMakeFiles/sbgui.dir/flu/FluSimpleString.cpp.o
[ 98%] Building CXX object src/sbgui/CMakeFiles/sbgui.dir/pythonbind/SBPythonAutorig.cpp.o
Linking CXX executable sbgui
../SmartBody/libSmartBody.so: undefined reference to `google::protobuf::io::CodedInputStream::BytesUntilLimit()'
collect2: error: ld returned 1 exit status
make[2]: *** [src/sbgui/sbgui] Error 1
make[1]: *** [src/sbgui/CMakeFiles/sbgui.dir/all] Error 2
make: *** [all] Error 2

 

Please advise.  I'm unclear what's happening here.

Thanks.

August 3, 2014
9:18 pm
Avatar
Member
Members
Forum Posts: 7
Member Since:
July 31, 2014
sp_UserOfflineSmall Offline

I reinstalled the libprotoc-2.4.1 and that seemed to reconcile the issue.

I have verified a compile of r5616 on ubuntu 14.04.  Hazzah.  😉

I'll look into seeing if I am able to work out the compile for the updated trunk.  Hopefully you'll see this Ari, and be able to point me in the right direction.

In the meanwhile, I'm going to play around with Smartbody.  😉

August 4, 2014
8:10 pm
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

Ok, great, please report back any issues that you face or suggestions that you have.

 

Ari

Forum Timezone: America/Los_Angeles

Most Users Ever Online: 733

Currently Online: jiangringgaard7, groth23rowland, mcclain06kearney, bugge59mackinnon, williamson15mogensen, raskrask1, JosephRoper17, heavenlyliar6390
96 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

jwwalker: 80

jyambao: 52

rbaral: 47

adiaz: 30

WargnierP: 29

lucky7456969: 28

mbarros: 28

avida.matt: 26

JonathanW: 24

laguerre: 23

Member Stats:

Guest Posters: 69

Members: 122211

Moderators: 3

Admins: 4

Forum Stats:

Groups: 1

Forums: 5

Topics: 531

Posts: 2495