University of Southern CaliforniaUSC
USC ICT TwitterUSC ICT FacebookUSC ICT YouTube

Problems getting Smartbody installed | 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
Problems getting Smartbody installed
January 21, 2015
5:41 pm
Avatar
Member
Members
Forum Posts: 5
Member Since:
January 21, 2015
sp_UserOfflineSmall Offline

Hello,

I have been trying for the last 2 full days to have Smartbody installed, and yet no success. I am turning to this forum as my last hope.

I've had several issues along the installation process, but I managed to get them solved (I hope). After the "cmake .. " and "make install" commands, the output is:

[ 86%] Building CXX object src/sbgui/CMakeFiles/sbgui.dir/FLTKListener.cpp.o
[ 86%] Building CXX object src/sbgui/CMakeFiles/sbgui.dir/pythonbind/SBPythonAutorig.cpp.o
Linking CXX executable sbgui
CMakeFiles/sbgui.dir/RootWindow.cxx.o: In function `BaseWindow::LoadSceneSettingCB(Fl_Widget*, void*)':
RootWindow.cxx:(.text+0x3e98): undefined reference to `boost::filesystem::path::stem() const'
RootWindow.cxx:(.text+0x3ef0): undefined reference to `boost::filesystem::path::extension() const'
CMakeFiles/sbgui.dir/RootWindow.cxx.o: In function `BaseWindow::CreatePythonAPICB(Fl_Widget*, void*)':
RootWindow.cxx:(.text+0x42a7): undefined reference to `boost::filesystem::detail::current_path(boost::system::error_code*)'
RootWindow.cxx:(.text+0x42d0): undefined reference to `boost::filesystem::absolute(boost::filesystem::path const&, boost::filesystem::path const&)'
CMakeFiles/sbgui.dir/RootWindow.cxx.o: In function `BaseWindow::ExportPackageCB(Fl_Widget*, void*)':
RootWindow.cxx:(.text+0x5c69): undefined reference to `boost::filesystem::path::stem() const'
RootWindow.cxx:(.text+0x5cc8): undefined reference to `boost::filesystem::path::parent_path() const'
CMakeFiles/sbgui.dir/RootWindow.cxx.o: In function `BaseWindow::LoadPackageCB(Fl_Widget*, void*)':

..........

./SmartBody/libSmartBody.so: undefined reference to `boost::filesystem::detail::create_directories(boost::filesystem::path const&, boost::system::error_code*)'
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

I am basically stuck at this point. Any suggestions are more than welcomed.

January 21, 2015
6:56 pm
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

Hi Ligia,

1) What platform are you building on (linux? osx? if linux, which flavor/version?)

2) It looks like there is some issue with the boost version that you are using. What version are you using?

 

Ari

January 22, 2015
9:12 am
Avatar
Member
Members
Forum Posts: 5
Member Since:
January 21, 2015
sp_UserOfflineSmall Offline

Hello,

A1) DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
NAME="Ubuntu"
VERSION="14.04.1 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.1 LTS"
VERSION_ID="14.04"

A2) in my "/usr/include/boost/version.hpp" , I have "define BOOST_LIB_VERSION "1_55" "

I would have to say that I went around with these Boost libraries (installing different versions, because of other previous errors I got during the installation process) for a long time.

Thank you

January 23, 2015
12:51 am
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

hmm... I tried using SmartBody on my Ubuntu 12.10 box using boost 1.57, and it built properly.

On my reference system, I have put boost in /usr/local/include  (so in the top-level CMakeLists.txt there is an include_directories instruction for the location: /usr/local/include/boost, and link_directories in /usr/local/lib). Is this where you have installed boost as well? The error seems to indicate that it cannot find boost_filesystem or boost_system.

You can also contact me directly at shapiro@ict.usc.edu and I could try remote into the machine to see if I can build it.

 

Ari

January 23, 2015
3:13 pm
Avatar
Member
Members
Forum Posts: 5
Member Since:
January 21, 2015
sp_UserOfflineSmall Offline

Hello,

this is the content of my /usr/local/include/ folder:

activemq-cpp-3.8.3  boost  google

Inside /boost/, there is this long list:

accumulators                 geometry.hpp        program_options
algorithm                        get_pointer.hpp      program_options.hpp
align                                gil                           progress.hpp
aligned_storage.hpp      graph                      property_map
align.hpp                        heap                       property_tree
....

and in this same folder, if open version.hpp, I see: BOOST_LIB_VERSION "1_56".

When I tried to (re)install boost_1_57 version, I had set the --prefix argument to /usr/local/include, but still no success. I get the same errors as above. Inside /usr/local/lib I have all the libboost_xyz, which I guess it's correct. So, the only issue is with boost.

January 23, 2015
6:43 pm
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

It looks like a linking problem, although it is odd that you were able to build the SmartBody engine, but not sbgui, which links to the engine, since SmartBody needs access to the very same boost libraries.

I could help you resolve this online: my skype id is shapiroari

 

Ari

January 23, 2015
11:33 pm
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

Ok, I installed ubuntu 14.04  and I'm having the same problems, but I think you just need to install some additional boost development libraries like this:

sudo apt-get install libboost-all-dev

 

Are you able to build now?

Ari

January 26, 2015
9:09 am
Avatar
Member
Members
Forum Posts: 5
Member Since:
January 21, 2015
sp_UserOfflineSmall Offline

Hello,

After doing:

sudo apt-get install libboost-all-dev

I get a long list of packages that have unmet dependencies.

After some google-ing, I ran:

sudo apt-get build-dep libboost-all-dev, which prompted that:

Rhe following packages will be REMOVED:  libboost1.55-dev
The following NEW packages will be installed:  libboost1.54-dev
Then in the /smartbody/mybuild/ folder, I ran "make install" again, but the issue persists.

January 27, 2015
1:28 am
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

Which boost packages are installed, if you run:

 

dpkg --get-selections | grep -v deinstall | grep boost

 

Ari

January 27, 2015
9:01 am
Avatar
Member
Members
Forum Posts: 5
Member Since:
January 21, 2015
sp_UserOfflineSmall Offline

Running the above command, I get:

libboost-atomic1.54.0:amd64            install
libboost-chrono1.54.0:amd64            install
libboost-context1.54.0:amd64            install
libboost-date-time1.53.0:amd64            install
libboost-date-time1.54.0:amd64            install
libboost-filesystem1.54.0:amd64            install
libboost-graph-parallel1.54.0            install
libboost-graph1.54.0:amd64            install
libboost-iostreams1.53.0:amd64            install
libboost-iostreams1.54.0:amd64            install
libboost-locale1.54.0:amd64            install
libboost-log1.54.0                install
libboost-math1.54.0:amd64            install
libboost-mpi-python1.54.0            install
libboost-mpi1.54.0                install
libboost-program-options1.54.0:amd64        install
libboost-python1.54.0:amd64            install
libboost-random1.54.0:amd64            install
libboost-regex1.54.0:amd64            install
libboost-serialization1.54.0:amd64        install
libboost-signals1.54.0:amd64            install
libboost-system1.53.0:amd64            install
libboost-system1.54.0:amd64            install
libboost-test1.54.0:amd64            install
libboost-thread1.46.1                install
libboost-thread1.54.0:amd64            install
libboost-timer1.54.0:amd64            install
libboost-tools-dev                install
libboost-wave1.54.0:amd64            install
libboost1.54-dev                install
libboost1.54-tools-dev                install
ros-indigo-rosboost-cfg                install

January 28, 2015
7:47 pm
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

Ok, so it looks like the solution is to install those boost packages explicitly for Ubuntu 14.04:

 

sudo apt-get install libboost-system1.54-dev

sudo apt-get install libboost-filesystem1.54-dev

sudo apt-get install libboost-python1.54-dev

sudo apt-get install libboost-regex1.54-dev

Ari