Build Guide |
|
Currently, Scopira is developed and used primarily on Linux. This guide assumes that you will be building it for Linux, ideally a Red Hat or Fedora distribution (but any with GNU C++ 3.x should be fine. If you would like to build Scopira on another UNIX-like operating system, you can simply install the required libraries and tweak the top level scopiraflags.pc as needed.
Internally, we have Scopira compiling to Microsoft Windows. However, this build process is currently in a less than optimal state, and thus will not be presented here. If you're familiar with GTK+ for Windows and MinGW, send us an email.
| Package | RPM name | Where to get | How to verify |
|---|---|---|---|
| Required: XML Library | lib-xml2-devel | standard in most Linux installs | pkg-config --cflags libxml-2.0 |
| Required: GTK+ GUI Library | gtk2-devel | standard in most Linux installs | pkg-config --cflags gtk+-2.0 |
| Optional: OpenGL GTK+ Library | libgtkglext-devel | Web site or often any "supplemental" repository such as Fedora Extras | pkg-config --cflags gtkglext-1.0 |
| Optional: MPI | MPI-CH, LAM or any other MPI implementation | pkg-config --cflags gtkglext-1.0 | |
Extract the Scopira archive while in your home directory:
cd ~ tar xfzv /path/to/scopira-VERSION.tar.gzIf you downloaded additional applications (like evident), extract them while in your scopira directory. Do this for each application you want to build. For example:
cd ~/scopira tar xfzv /path/to/evident-VERSION.tar.gz
export PKG_CONFIG_PATH=~/scopira:$PKG_CONFIG_PATH export LD_LIBRARY_PATH=~/scopira:$LD_LIBRARY_PATHIf you're on a 64-bit platform, make sure BB64=1 is set:
export BB64=1
cd ~/scopira
(compile Scopira and any applications you've downloaded:)
bin/buildboss scopira.src apps/*.src
(same as above, but also include the OpenGL extension:)
bin/buildboss scopira.src gl.src apps/*.src
(same as above, but also include the MPI extension:)
bin/buildboss scopira.src mpi.src apps/*.src
You may rerun buildboss any time with these parameters to rebuild the
makefile.
Alternativly, all buildboss generated makefiles have a special target
to rerun build with the parameters that generated that makefile:
cd ~/scopira make reboss
make
cd ~/scopira ./scopirapa.exeSome applications are simply plug-ins for other applications. For this, you need to pass the lib= parameter with the plug-in in question. For example, to run the RDP plug-in with ScopiraPA:
cd ~/scopira ./scopirapa.exe lib=libevident.so