Free Objects for Xtallography
version 1.5CVS |
Fox Home Page
|
Getting & Testing development versions of Fox
IntroductionThis page describes how to get the source of Fox (Free Objects For Crystallography), and compile it under Linux and windows. It also describes how to get up-to-date versions of Fox from the development tree.Requirements:
Getting & installing the compilers
Then create the following two files in the same directory where you have the compiler and linker (e.g., bcc32.cfg , text file containing the following two lines: -I"c:\Borland\Bcc55\include" -L"c:\Borland\Bcc55\lib" ilink32.cfg ,text file containing the following line: -L"c:\Borland\Bcc55\lib" c:\Borland\Bcc55\bin to your PATH, and to add the following variable to your environment: set BCCDIR=c:\Borland\Bcc55 You may need to restart after changing these environment variables, depending on windows version. Check you have OpenGL and glut installed
gl.h , glu.h and glut.h in /usr/include/GL/, and the corresponding libraries (libGL, libGLU) These are generally installed by default. NVidia users will need the nVidia drivers.
Getting & installing the wxWindows Library
Then you will need to do the following for wxGTK 2.2.9 (nothing to do for wxGTK 2.2.7):
C:\dev\wxWindows )
For wxMSW 2.2.9 only , you need to remove the contents of the wxWindows\include\wx\setup.h file, and replace it by a single line :
Edit the
Add the WXWIN variable to your environment (
then (in a DOS/Command prompt) go to the Get the source of Fox
Compile FoxNote: in all cases you may need to edit theFox/src/ObjCryst/rules.mak file, which includes at the very beginning some paths. For Linux it should be OK, but for windows you will need to correct the wxWindows directories
make ', which creates Fox in fox/src/ObjCryst/wxCryst/.
Then '
Note that if you do "
make '. This will create Fox in the same directory. You can activate the debug version by changing to "debug=1 " in the src/ObjCryst/rules.mak file (you have to do a "make clean" each time you rebuild while changing the debug status). TestingWell, just try the examples, or your data while displaying both 3D structure and powder pattern(s). Optionnaly, run several optimizations (several examples) at the same time. Try new features... Change the structural/pattern parameters while graph windows are already shown and then update them... Run it overnight...
Updating the Fox /ObjCryst++ source code using CVSQuick version: The source of Fox is distributed with the CVS information, so just typing 'make update ' in the Fox directory will do the cvs update for you, on both Linux and windows (for windows you need the CVS client application, see at the end of the page; any decent Linux installation will already have CVS).
A word about CVS (concurent Version System): it is (in a nutshell), a way to store source code, update it from different places and by different people, and keep a complete story of the modifications. More info on http://www.cvshome.org. In the ObjCryst++ CVS (which includes Fox) (http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/objcryst/), there are 3 different development stages:
The cvs access is anonymous, with a blank password. If you want to do the cvs update yourself, note that there are two modules, 'ObjCryst' and 'Fox' which you will need, as well as the See the CVS notes on sourceforge (http://sourceforge.net/cvs/?group_id=27546).
|