Wednesday, 20 February 2013

Get and Compile Smart Body

This page is linked to another and will outline the steps to get and compile SmartBody.

Current svn command and link

svn co smartbody 

To Compile for Windows follow the steps in the guide that basically just say to use visual studio to open the solution and build the project.

For Linux it was a little more complicated. I prefer to work on Linux (Ubuntu) for my work so I ventured on writing a script to setup all of the dependencies.

Here is a script I wrote to setup all the dependencies for SmartBody on Ubuntu 12.04.


  1. Dear Glenn,

    I am following your script so as to build and install smartbodyon Ubuntu 12.04 (32biot) machine, However, once I am building it, an error is appeared:

    SmartBody-r5303-linux/src/vhmsg/vhmsg.cpp:45:42: fatal error: activemq/library/ActiveMQCPP.h: No such file or directory
    compilation terminated.

    Terminal output:

    I will appreciate any help that you can provide.


    1. Dear Glenn,

      Both versions of Ubuntu 12.04 and 12.10 present the previous error. I have pasted the output terminal text and cmakecache files for further details.

      Ubuntu 12.04
      Terminal Output

      Ubuntu 12.10
      Terminal Output

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

      Yours sincerely,

    2. This comment has been removed by the author.

    3. Hello,

      It is probably because this part of the code did not work

      # ActiveMQ
      # sudo apt-get install activemq did not work well

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

      Looks like the link is broken now.

      You will need to change the "wget" call

      Best of luck

  2. Dear Glen,

    Thanks for your kind help. I have typed the following commands which run pretty well in both Ubuntu 12.4 and 12.10

    $ sudo apt-get install activemq
    #then I tried to build without success, so I proceed to type the following commands

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

    Nonetheless, while building source code the same error is presented:

    $ make install
    Scanning dependencies of target vhcl
    [ 0%] Building CXX object src/vhcl/CMakeFiles/vhcl.dir/Pow2Assert.cpp.o
    [ 1%] Building CXX object src/vhcl/CMakeFiles/vhcl.dir/vhcl_audio.cpp.o
    [ 1%] Building CXX object src/vhcl/CMakeFiles/vhcl.dir/vhcl_crash.cpp.o
    [ 1%] Building CXX object src/vhcl/CMakeFiles/vhcl.dir/vhcl_log.cpp.o
    [ 1%] Building CXX object src/vhcl/CMakeFiles/vhcl.dir/vhcl_math.cpp.o
    [ 1%] Building CXX object src/vhcl/CMakeFiles/vhcl.dir/vhcl_memory.cpp.o
    [ 2%] Building CXX object src/vhcl/CMakeFiles/vhcl.dir/vhcl_socket.cpp.o
    [ 2%] Building CXX object src/vhcl/CMakeFiles/vhcl.dir/vhcl_string.cpp.o
    [ 2%] Building CXX object src/vhcl/CMakeFiles/vhcl.dir/vhcl_timer.cpp.o
    Linking CXX static library libvhcl.a
    [ 2%] Built target vhcl
    Scanning dependencies of target vhmsg
    [ 2%] Building CXX object src/vhmsg/CMakeFiles/vhmsg.dir/HttpUtility.cpp.o
    [ 2%] Building CXX object src/vhmsg/CMakeFiles/vhmsg.dir/vhmsg.cpp.o
    /home/mapx/development/smartbody/smartbody-r5303/src/vhmsg/vhmsg.cpp:45:42: fatal error: activemq/library/ActiveMQCPP.h: No such file or directory
    compilation terminated.
    make[2]: *** [src/vhmsg/CMakeFiles/vhmsg.dir/vhmsg.cpp.o] Error 1
    make[1]: *** [src/vhmsg/CMakeFiles/vhmsg.dir/all] Error 2
    make: *** [all] Error 2

    Any idea so as to solve previous issue!

    Yours sincerely,

    1. Hello,

      It looks like maybe the directory structure of SmartBody has changed since I made this script. Your going to have to go through making the updates yourself. If you get it to work let me know and I can update the script I have posted.

      - Glen

  3. Dear Glen,

    SmartBody-rev5303 has been successfully build and installed on Ubuntu 12.10 (64bits) . In case that anyone has bumped into similar building setbacks, building and installation solutions are posted here:

    Thanks you, your script installation was helpful.

    Yours sincerely,