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

From Avogadro - Free cross-platform molecule editor
Jump to: navigation, search
(Compiling moved to Building:Development Version: We use the term "building" in release notes and other places. It seems to be more common than 'compiling'.)
 
(create separate user page based on Building:Development_Version)
Line 1: Line 1:
#REDIRECT [[Building:Development Version]]
+
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.
 +
 
 +
Developers may want to use the instructions found at [[Building:Development_Version]].
 +
 
 +
= Linux =
 +
 
 +
== 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] (>=1.0.5)
 +
<!-- ;[[#Building Eigen 1|Eigen]] -->
 +
;[[#Building OpenBabel 1|OpenBabel]] (see below)
 +
 
 +
<!---
 +
=== Building Eigen ===
 +
 
 +
<code><pre>
 +
cd $HOME/svn
 +
svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport/eigen eigen
 +
cd eigen
 +
mkdir build
 +
cd build
 +
cmake ..
 +
make
 +
</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
 +
make install # must be run as root or with sudo
 +
</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
 +
make install # must be run as root or with sudo
 +
</pre></code>
 +
 
 +
== Running ==
 +
 
 +
<code><pre>avogadro</pre></code>
 +
 
 +
= 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] (>=1.0.5)
 +
<!-- ;[[#Building Eigen 1|Eigen]] -->
 +
;[[#Building OpenBabel 1|OpenBabel]] (see below)
 +
 
 +
<!---
 +
=== Building Eigen ===
 +
 
 +
<code><pre>
 +
cd $HOME/svn
 +
svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport/eigen eigen
 +
cd eigen
 +
mkdir build
 +
cd build
 +
cmake ..
 +
make
 +
</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 =
 +
 
 +
Compiling Avogadro for Windows is complex task and it is recommended that you download the pre-made installer found on the [[:Get_Avogadro|download]] page. For the adventurous, there are [[Building:Development_Version#Windows_Visual_Studio_2005|Windows Visual Studio 2005]] instructions that may or may not work.
 +
 
 +
[[Category:User]]

Revision as of 16:16, 4 May 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.

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

Linux

Dependencies

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


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

svn co https://avogadro.svn.sourceforge.net/svnroot/avogadro/trunk avogadro
cd avogadro
mkdir build
cd build
cmake ..
make
make install # must be run as root or with sudo

Running

avogadro

OS X

Dependencies

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


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
sudo make install

Building Avogadro

svn co https://avogadro.svn.sourceforge.net/svnroot/avogadro/trunk avogadro
cd avogadro
mkdir build
cd build
cmake ..
make
sudo make install

Running

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.