Difference between revisions of "Compiling on Linux and Mac OS X"

From Avogadro - Free cross-platform molecule editor
Jump to: navigation, search
(Building Avogadro)
Line 5: Line 5:
 
Developers may want to use the instructions found at [[Building:Development_Version]].
 
Developers may want to use the instructions found at [[Building:Development_Version]].
  
= Linux =
+
= Linux and Mac OS X=
  
 
== Dependencies ==
 
== Dependencies ==
Line 16: Line 16:
 
;[[#Building OpenBabel 1|OpenBabel]] (see below)
 
;[[#Building OpenBabel 1|OpenBabel]] (see below)
  
=== Installing Eigen ===
+
== Installing Eigen ==
  
 
<code><pre>
 
<code><pre>
Line 28: Line 28:
 
</pre></code>
 
</pre></code>
  
=== Building Open Babel ===
+
== Building Open Babel ==
 
Avogadro makes heavy use of code and features from the [http://openbabel.org Open Babel] chemistry toolbox. To ensure you have the latest Open Babel code you should build it from the code repository:
 
Avogadro makes heavy use of code and features from the [http://openbabel.org Open Babel] chemistry toolbox. To ensure you have the latest Open Babel code you should build it from the code repository:
  
Line 54: Line 54:
  
 
<code><pre>avogadro</pre></code>
 
<code><pre>avogadro</pre></code>
 +
On Mac OS X Avogadro should be in your Applications folder.
  
= OS X =
 
 
== Dependencies ==
 
 
;[http://subversion.tigris.org/ Subversion]
 
;[http://www.cmake.org CMake] (>=2.4.5)
 
;[http://trolltech.com/products/qt Qt4] (>=4.3.0)
 
<!--;[http://eigen.tuxfamily.org/ Eigen] (latest pre-2.0 from svn) -->
 
;[[#Installing Eigen 1|Eigen]]
 
;[[#Building OpenBabel 1|OpenBabel]] (see below)
 
 
=== Installing Eigen ===
 
 
<code><pre>
 
cd $HOME/svn
 
svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport/eigen2
 
cd eigen2
 
mkdir build
 
cd build
 
cmake ..
 
sudo make install
 
</pre></code>
 
 
=== Building Open Babel ===
 
Avogadro makes heavy use of code and features from the [http://openbabel.org Open Babel] chemistry toolbox. To ensure you have the latest Open Babel code you should build it from the code repository:
 
 
<code><pre>
 
svn co https://openbabel.svn.sourceforge.net/svnroot/openbabel/openbabel/trunk openbabel
 
cd openbabel
 
./configure
 
make
 
sudo make install
 
</pre></code>
 
 
== Building Avogadro ==
 
 
<code><pre>
 
svn co https://avogadro.svn.sourceforge.net/svnroot/avogadro/trunk avogadro
 
cd avogadro
 
mkdir build
 
cd build
 
cmake ..
 
make
 
sudo make install
 
</pre></code>
 
 
== Running ==
 
 
Avogadro should be in your Applications folder.
 
  
 
= Windows =
 
= Windows =

Revision as of 11:56, 25 December 2008

These instructions are to allow users to build Avogadro from the very latest code. Be aware that Avogadro may fail to build or work properly at any given time when built from the instructions below.

Generally, users should first try the pre-made installers or packages available on the download page made from Avogadro releases.

Developers may want to use the instructions found at Building:Development_Version.

Linux and Mac OS X

Dependencies

Subversion
CMake (>=2.4.5)
Qt4 (>=4.3.0)
Eigen
OpenBabel (see below)

Installing Eigen

cd $HOME/svn
svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport/eigen2
cd eigen2
mkdir build
cd build
cmake ..
make install # must be run as root or with sudo

Building Open Babel

Avogadro makes heavy use of code and features from the Open Babel chemistry toolbox. To ensure you have the latest Open Babel code you should build it from the code repository:

svn co https://openbabel.svn.sourceforge.net/svnroot/openbabel/openbabel/trunk openbabel
cd openbabel
./configure 
make
make install # must be run as root or with sudo

Building Avogadro

git clone git://github.com/cryos/avogadro.git
cd avogadro
mkdir build
cd build
cmake ..
make
make install # must be run as root or with sudo

Running

avogadro

On Mac OS X Avogadro should be in your Applications folder.


Windows

Compiling Avogadro for Windows is complex task and it is recommended that you download the pre-made installer found on the download page. For the adventurous, there are Windows Visual Studio 2005 instructions that may or may not work.