Current svn command and link
svn co https://smartbody.svn.sourceforge.net/svnroot/smartbody/trunk 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.
Dear Glenn,
ReplyDeleteI 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: http://pastebin.com/yhP5rzHV
I will appreciate any help that you can provide.
Yours,
MA
Dear Glenn,
DeleteBoth 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 http://pastebin.com/yhP5rzHV
CMakeCache.txt http://pastebin.com/vg3wrLF2
Ubuntu 12.10
Terminal Output http://pastebin.com/39ez5BEp
CMakeCache.txt http://pastebin.com/1UqSfLQe
I would very much appreciate any help or guidance that you can provide.
Yours sincerely,
MA
This comment has been removed by the author.
DeleteHello,
DeleteIt is probably because this part of the code did not work
# ActiveMQ
# sudo apt-get install activemq did not work well
wget http://mirror.csclub.uwaterloo.ca/apache/activemq/activemq-cpp/source/activemq-cpp-library-3.4.5-src.tar.gz
tar -xvzf activemq-cpp-library-3.4.5-src.tar.gz
cd activemq-cpp-library-3.4.5/
./configure --disable-ssl
make
sudo make install
cd ../
Looks like the link is broken now.
You will need to change the "wget" call
wget http://mirror.csclub.uwaterloo.ca/apache/activemq/activemq-cpp/source/activemq-cpp-library-3.8.2-src.tar.gz
Best of luck
Dear Glen,
ReplyDeleteThanks 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,
MA
Hello,
DeleteIt 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
Dear Glen,
ReplyDeleteSmartBody-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: http://smartbody.ict.usc.edu/forum/general/building-error-on-both-ubuntu-12-0432bits-and-12-1064bits
Thanks you, your script installation was helpful.
Yours sincerely,
MA