<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Installation</title><link>https://sourceforge.net/p/hyplot/wiki/Installation/</link><description>Recent changes to Installation</description><atom:link href="https://sourceforge.net/p/hyplot/wiki/Installation/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 04 Nov 2014 12:40:30 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/hyplot/wiki/Installation/feed" rel="self" type="application/rss+xml"/><item><title>Installation modified by Bert Vandenbroucke</title><link>https://sourceforge.net/p/hyplot/wiki/Installation/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="installing-hyplot"&gt;Installing hyplot&lt;/h1&gt;
&lt;h2 id="obtaining-the-code"&gt;Obtaining the code&lt;/h2&gt;
&lt;p&gt;The source code for hyplot can be downloaded as a tarball from this website, or you can obtain it using svn:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;svn&lt;/span&gt; &lt;span class="n"&gt;checkout&lt;/span&gt; &lt;span class="n"&gt;svn&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//svn.code.sf.net/p/hyplot/code/trunk hyplot-code&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Contributors that also want write access need to use&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;svn&lt;/span&gt; &lt;span class="n"&gt;checkout&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;USERNAME&lt;/span&gt; &lt;span class="n"&gt;svn&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;ssh&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//USERNAME@svn.code.sf.net/p/hyplot/code/trunk hyplot-code&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;(where &lt;code&gt;USERNAME&lt;/code&gt; of course needs to be replaced by an actual username).&lt;/p&gt;
&lt;h2 id="compiling-the-code"&gt;Compiling the code&lt;/h2&gt;
&lt;p&gt;Hyplot makes use of cmake to automatically detect dependencies and generate Makefiles. Before invoking cmake, make sure you have the following libraries installed:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Python (version 2.6 or 2.7)&lt;/li&gt;
&lt;li&gt;Sip (python-sip-dev)&lt;/li&gt;
&lt;li&gt;PyQt4 (python-qt4, python-qt4-dev, pyqt4-dev-tools)&lt;/li&gt;
&lt;li&gt;GSL (libgsl-dev)&lt;/li&gt;
&lt;li&gt;Numeric Python (python-numpy)&lt;/li&gt;
&lt;li&gt;Scientific Python (python-scipy)&lt;/li&gt;
&lt;li&gt;Matplotlib (python-matplotlib)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you also want to be able to generate code documentation, you will also need:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Doxygen&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Go to the folder in which you downloaded the source code and make a new folder in which to build the code (typically called &lt;code&gt;build&lt;/code&gt;). From within this folder, issue the following command:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;cmake&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;DCMAKE_BUILD_TYPE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;Release&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;DU12&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;True&lt;/span&gt; &lt;span class="p"&gt;..&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;hyplot&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;(where &lt;code&gt;hyplot-code&lt;/code&gt; is the directory which contains the file &lt;code&gt;CMakeLists.txt&lt;/code&gt;). Users with systems older than Ubuntu version 12.04 which use Python 2.6 instead of 2.7 can omit the &lt;code&gt;-DU12=True&lt;/code&gt; directive.&lt;/p&gt;
&lt;p&gt;Cmake will hopefully copy the necessary files into the &lt;code&gt;build&lt;/code&gt; folder and generate a Makefile. You can then compile the code by typing&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;make&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This will build hyplot. This process can take some time (~10 mins). If everything succeeds, the hyplot executable will be copied to &lt;code&gt;build/rundir&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Ubuntu 14.04 users might experience a Python error while compiling resulting from a system file and a hyplot file having the same name (&lt;code&gt;io.py&lt;/code&gt;). The workaround for this is to temporarily rename the file &lt;code&gt;hyplot-code/hyplot/io.py&lt;/code&gt; and recompile. Now the color tables will be generated as they should and the compilation will succeed. Remember to restore &lt;code&gt;hyplot-code/hyplot/io.py&lt;/code&gt; afterwards, because not doing this will result in errors while using hyplot!&lt;/p&gt;
&lt;h2 id="installation"&gt;Installation&lt;/h2&gt;
&lt;p&gt;To make the hyplot program available throughout the entire system, add the following line to &lt;code&gt;~/.bashrc&lt;/code&gt;:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;export&lt;/span&gt; &lt;span class="n"&gt;PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="n"&gt;PATH&lt;/span&gt;&lt;span class="o"&gt;:/&lt;/span&gt;&lt;span class="n"&gt;HYPLOT_FOLDER&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;build&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;rundir&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;(where &lt;code&gt;HYPLOT_FOLDER&lt;/code&gt; is the absolute path to the folder where hyplot was compiled).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bert Vandenbroucke</dc:creator><pubDate>Tue, 04 Nov 2014 12:40:30 -0000</pubDate><guid>https://sourceforge.net953916e4e149359aed62840d8c4a3dd78ff51254</guid></item></channel></rss>