Building and Installing MacMolPlt on Linux

It should be possible to run MacMolPlt on any Linux system which has a working wxWidgets installation. We have tested on several Linux distributions and have prebuilt binaries for some distributions. If there is not a prebuilt binary for your distribution grab the source and follow the build instructions below or in the INSTALL file. Once your installation is complete run MacMolPlt with the wxmacmolplt command.

Prebuilt binary packages

Building from source

If none of those work for you download the source and follow the instructions below or in the INSTALL file contained in the source tar file.
The prerequisites for building MacMolPlt from source are a working C++ compiler (g++ preferred) and a wxWidgets (version 2.6.3 or newer, but 2.8 or newer recommended) install including the development pieces. You can test for a working wxWidgets install using wx-config --version. If the response is 2.6.3 or greater you should be fine and you can go directly to building MacMolPlt below. If you have hardware supporting stereo display (quad-buffered OpenGL) you may wish to grab the latest wxWidgets 2.9 prerelease to enable stereo support in MacMolPlt.

If your Linux distribution does not offer a prebuilt wxWidgets package, usually named something like wxGTK or libwxgtk version 2.6.3 or newer then you will have to first build and install wxWidgets. Follow these steps to build wxWidgets:

Download the latest wxWidgets source (2.6.3 through 2.9.4 have worked in the past).
unpack the archive and cd into the top level directory
Configure wx to use OpenGL and unicode:
./configure --with-gtk --with-opengl --enable-unicode
make install
Note: You can install wx into a non-system directory, but that directory will need to be added to your shared library path or shared libraries disabled in the build (--disable-shared). If you get an error in the MacMolPlt configure step saying your wxWidgets build lacks OpenGL support first make sure that the directory where the shared libraries is installed is in /etc/ and then run ldconfig. You should only need to do that once.

Building MacMolPlt. This should be very straightforward.

make install
Note: The "make install" step is required as there are a couple of resource files that the application needs at run time to be fully functional.

(BMB )