<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.na-mic.org/w/index.php?action=history&amp;feed=atom&amp;title=Instructions_to_Build_SPLOT_with_ot1.3</id>
	<title>Instructions to Build SPLOT with ot1.3 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.na-mic.org/w/index.php?action=history&amp;feed=atom&amp;title=Instructions_to_Build_SPLOT_with_ot1.3"/>
	<link rel="alternate" type="text/html" href="https://www.na-mic.org/w/index.php?title=Instructions_to_Build_SPLOT_with_ot1.3&amp;action=history"/>
	<updated>2026-04-22T17:56:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://www.na-mic.org/w/index.php?title=Instructions_to_Build_SPLOT_with_ot1.3&amp;diff=7149&amp;oldid=prev</id>
		<title>Hliu at 14:50, 24 January 2007</title>
		<link rel="alternate" type="text/html" href="https://www.na-mic.org/w/index.php?title=Instructions_to_Build_SPLOT_with_ot1.3&amp;diff=7149&amp;oldid=prev"/>
		<updated>2007-01-24T14:50:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Create directory &amp;quot;splot-build&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
* Make this directory anywhere you want&lt;br /&gt;
* This is the place all splot stuff and its dependent libs will sit&lt;br /&gt;
&lt;br /&gt;
== Build ACE ==&lt;br /&gt;
&lt;br /&gt;
* Download ACE source code, e.g. ACE-5.5.tar.gz, from this site: http://download.dre.vanderbilt.edu/&lt;br /&gt;
&lt;br /&gt;
* Move the compressed source code (e.g. ACE-5.5.tar.gz) to the directory &amp;quot;splot-build&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Unzip the source code and you will have this directory: ACE_wrappers&lt;br /&gt;
  gunzip ACE-5.5.tar.gz&lt;br /&gt;
  tar xvf ACE-5.5.tar&lt;br /&gt;
&lt;br /&gt;
* Set environment variable: '''ACE_ROOT'''. For instance, in '''.bash_profile''', add&lt;br /&gt;
  ACE_ROOT=/your-path/splot-build/ACE_wrappers&lt;br /&gt;
  export ACE_ROOT&lt;br /&gt;
&lt;br /&gt;
* Add ACE lib to environment variable: '''LD_LIBRARY_PATH'''. For instance, in '''.bash_profile''', add&lt;br /&gt;
  LD_LIBRARY_PATH=$ACE_ROOT/lib:$LD_LIBRARY_PATH&lt;br /&gt;
  export LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
* Create a configuration file, '''config.h''', in $ACE_ROOT/ace. Config.h will contain only the following line:&lt;br /&gt;
&lt;br /&gt;
  #include &amp;quot;ace/config-linux.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This file includes the appropriate platform/compiler-specific header configurations from the ACE source directory.&lt;br /&gt;
&lt;br /&gt;
* Create a build configuration file, '''platform_macros.GNU''', in $ACE_ROOT/include/makeinclude. Platform_macros.GNU will contain only the following line:&lt;br /&gt;
&lt;br /&gt;
  include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU&lt;br /&gt;
&lt;br /&gt;
This file contains the compiler and Makefile directives that are platform/compiler-specific.&lt;br /&gt;
&lt;br /&gt;
* Run &amp;quot;make&amp;quot; in the ACE_ROOT directory&lt;br /&gt;
The compiling failed in building $ACE_ROOT/ACEXML/examples/SAXPrint. But the ACE libraries are already built in $ACE_ROOT/lib.&lt;br /&gt;
&lt;br /&gt;
== Build xerces ==&lt;br /&gt;
&lt;br /&gt;
* Download &amp;quot;xerces-c-src_2_7_0.tar.gz&amp;quot; from: http://archive.apache.org/dist/xml/xerces-c/source/ into the directory &amp;quot;splot-build&amp;quot;&lt;br /&gt;
* Unzip the source code and you will have this directory: xerces-c-src_2_7_0&lt;br /&gt;
  gunzip xerces-c-src_2_7_0.tar.gz&lt;br /&gt;
  tar xvf xerces-c-src_2_7_0.tar&lt;br /&gt;
* Set environmental variable: '''XERCESCROOT'''. For instance, in '''.bash_profile''', add:&lt;br /&gt;
  XERCESCROOT=/home/your-path/splot-build/xerces-c-src_2_7_0&lt;br /&gt;
  export XERCESCROOT&lt;br /&gt;
&lt;br /&gt;
* Run autoconf&lt;br /&gt;
  cd $XERCESCROOT/src/xercesc&lt;br /&gt;
  autoconf&lt;br /&gt;
&lt;br /&gt;
* In the same directory,&lt;br /&gt;
  ./configure&lt;br /&gt;
  make&lt;br /&gt;
&lt;br /&gt;
* You will see libraries built in $XERCESCROOT/lib&lt;br /&gt;
&lt;br /&gt;
== Build scons ==&lt;br /&gt;
&lt;br /&gt;
* Download scons from http://www.scons.org/download.php and unzip it into the directory &amp;quot;splot-build&amp;quot;&lt;br /&gt;
* Change directory to the scons root directory, e.g. scons-0.96.1&lt;br /&gt;
  cd /your-path/splot-build/scons-0.96.1&lt;br /&gt;
* Intall scons. For instance, run&lt;br /&gt;
  python setup.py install --prefix=/your-path/splot-build/scons-0.96.1&lt;br /&gt;
* Intall scons libs. For instance, run&lt;br /&gt;
  python setup.py install --standard-lib --prefix=/your-path/splot-build/scons-0.96.1&lt;br /&gt;
&lt;br /&gt;
* Set '''PATH''' for /your-path/splot-build/scons-0.96.1/bin&lt;br /&gt;
&lt;br /&gt;
== Build opentracker == &lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;splot-build,&amp;quot;, check out ICGBuilder from&lt;br /&gt;
  svn --username otreader co https://svn.icg.tu-graz.ac.at/svn/ICGBuilder/trunk ICGBuilder&lt;br /&gt;
Press &amp;quot;t&amp;quot; to temporarily accept the certificate. Input '''OPEN4read''' when prompted for password.&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;splot-build,&amp;quot;, check out opentracker 2.0 from&lt;br /&gt;
  svn co --username otreader https://svn.icg.tu-graz.ac.at/svn/opentracker/trunk opentracker&lt;br /&gt;
Press &amp;quot;t&amp;quot; to temporarily accept the certificate. Input '''OPEN4read''' when prompted for password.&lt;br /&gt;
&lt;br /&gt;
* Make a symbolic link in the opentracker root directory to 'ICGBuilder'&lt;br /&gt;
  ln -s ../ICGBuilder ICGBuilder&lt;br /&gt;
&lt;br /&gt;
* Set the environment variables '''XERCESROOT''' and '''ACEROOT'''. For instance, in '''.bash_profile''', add&lt;br /&gt;
  XERCESROOT=/your-path/splot-build/xerces-c-src_2_7_0&lt;br /&gt;
  export XERCESROOT&lt;br /&gt;
  ACEROOT=/your-path/splot-build/ACE_wrappers&lt;br /&gt;
  export ACEROOT&lt;br /&gt;
&lt;br /&gt;
* Add xerces library path to LD_LIBRARY_PATH to build the middleware executable (we don't really need this), e.g.&lt;br /&gt;
  LD_LIBRARY_PATH=$XERCESROOT/lib:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
* Run scons in the OpenTracker root directory&lt;br /&gt;
  scons&lt;br /&gt;
&lt;br /&gt;
== Build newmat ==&lt;br /&gt;
&lt;br /&gt;
* Download newmat (e.g. newmat11.tar.gz) from http://www.robertnz.net/download.html &lt;br /&gt;
* Make a directory '''newmat''' in &amp;quot;splot-build&amp;quot; and unzip the code into &amp;quot;newmat&amp;quot;&lt;br /&gt;
* Compile newmat by running&lt;br /&gt;
  make -f nm_gnu.mak&lt;br /&gt;
&lt;br /&gt;
== Build CMake ==&lt;br /&gt;
&lt;br /&gt;
Assume Slicer3 has been built, set PATH for CMake bin.&lt;br /&gt;
&lt;br /&gt;
== Build SPLOT ==&lt;br /&gt;
&lt;br /&gt;
* Check out SPLOT code into &amp;quot;splot-build&amp;quot; from&lt;br /&gt;
  svn co http://www.na-mic.org:8000/svn/Sign/SPLOT/trunk SPLOT&lt;br /&gt;
&lt;br /&gt;
* Configure the build by running this command in SPLOT root directory&lt;br /&gt;
  ccmake .&lt;br /&gt;
&lt;br /&gt;
ACE: path/libACE.so; ACE_DIR: path/ACE_wrappers; OPENTRACKER: path/libopentracker.so; OT_INC: directory containing OpenTracker.h; XERCES: path/libxerces-c.so&lt;br /&gt;
&lt;br /&gt;
* Modify CMakeLists.txt to compile: add '''splot-build/opentracker/include''' to INCLUDE_DIRECTORIES&lt;br /&gt;
&lt;br /&gt;
* Compile&lt;br /&gt;
  make&lt;/div&gt;</summary>
		<author><name>Hliu</name></author>
		
	</entry>
</feed>