Difference between revisions of "Compiling on Linux and Mac OS X"
(→Dependencies) |
|||
Line 17: | Line 17: | ||
It is likely that Subversion, Git, CMake and Qt4 will be available from your distribution's repositories, or in binary form on the Mac. | It is likely that Subversion, Git, CMake and Qt4 will be available from your distribution's repositories, or in binary form on the Mac. | ||
+ | |||
---- | ---- | ||
+ | |||
There are two different ways to install Avogadro, depending on your needs and your user privileges. | There are two different ways to install Avogadro, depending on your needs and your user privileges. | ||
Line 26: | Line 28: | ||
If you don't have superuser rights or you don't want to install files to locations outside your home directory or you're the only user of Avogadro, choose '''[[#Method B: Install Avogadro to your home diretory|Method B]] to install Avogadro into your home directory'''. | If you don't have superuser rights or you don't want to install files to locations outside your home directory or you're the only user of Avogadro, choose '''[[#Method B: Install Avogadro to your home diretory|Method B]] to install Avogadro into your home directory'''. | ||
− | = Method A: Install Avogadro for all users = | + | == Method A: Install Avogadro for all users == |
− | == Installing Eigen == | + | === Installing Eigen === |
<code><pre> | <code><pre> | ||
Line 39: | Line 41: | ||
</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. It is sufficient to use OpenBabel 2.2.0 or more recent: | 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. It is sufficient to use OpenBabel 2.2.0 or more recent: | ||
Line 50: | Line 52: | ||
</pre></code> | </pre></code> | ||
− | == Building Avogadro == | + | === Building Avogadro === |
Avogadro's version control system is now Git, with hosting provided by GitHub. If you would rather not install Git it is possible to download a tar or zip file containing the latest sources from [http://github.com/cryos/avogadro/ here] by clicking on the download link. Generally you will want to clone the git repository, | Avogadro's version control system is now Git, with hosting provided by GitHub. If you would rather not install Git it is possible to download a tar or zip file containing the latest sources from [http://github.com/cryos/avogadro/ here] by clicking on the download link. Generally you will want to clone the git repository, | ||
Line 64: | Line 66: | ||
</pre></code> | </pre></code> | ||
− | == Running == | + | === Running === |
<code><pre>avogadro</pre></code> | <code><pre>avogadro</pre></code> | ||
On Mac OS X Avogadro will be in your Applications folder. | On Mac OS X Avogadro will be in your Applications folder. | ||
− | = Method B: Install Avogadro into your home diretory = | + | == Method B: Install Avogadro into your home diretory == |
[[Category:User]] | [[Category:User]] |
Revision as of 15:09, 26 December 2008
These instructions are inteded to help users to build Avogadro from the latest code. Be aware that Avogadro may fail to build or work properly at any given time when built using the instructions below.
For the adventurous, there are also Windows Visual Studio 2008 instructions that may or may not work.
Generally, users should first try the binary installers or packages available on the download page, made using a released version of Avogadro.
Developers may want to use the instructions found at Building:Development_Version.
Contents
Dependencies
It is likely that Subversion, Git, CMake and Qt4 will be available from your distribution's repositories, or in binary form on the Mac.
There are two different ways to install Avogadro, depending on your needs and your user privileges.
If you have superuser rights and want to provide Avogadro to all users on your computer, choose Method A to install Avogadro globally (to /usr/local).
If you don't have superuser rights or you don't want to install files to locations outside your home directory or you're the only user of Avogadro, choose Method B to install Avogadro into your home directory.
Method A: Install Avogadro for all users
Installing Eigen
svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport/eigen2
cd eigen2
mkdir build
cd build
cmake ..
sudo make install
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. It is sufficient to use OpenBabel 2.2.0 or more recent:
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
Avogadro's version control system is now Git, with hosting provided by GitHub. If you would rather not install Git it is possible to download a tar or zip file containing the latest sources from here by clicking on the download link. Generally you will want to clone the git repository,
git clone git://github.com/cryos/avogadro.git
cd avogadro
mkdir build
cd build
cmake ..
make -j3
sudo make install
Running
avogadro
On Mac OS X Avogadro will be in your Applications folder.