Free Objects for Xtallography
version 1.5 |
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.
Note that updates to the Borland compiler can be found at http://www.borland.com/devsupport/bcppbuilder/patches/#freecompiler55 . Check you have OpenGL installed(the glut library is not required any more)
gl.h and glu.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.4.* (nothing to do for wxGTK 2.2.*): ln -s /usr/bin/wxgtk-2.4-config /usr/bin/wx-config
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 NOTE: if you want to use wxWindows 2.4.1 (works, but not very well with Fox presently, there are a few graphical glitches), you will need several changes after compiling wxWindows, before compiling Fox: 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). Optionally, 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:
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).
To know what changes have been recently made and get a readable changelog, I recommend using the cvs2cl Perl script.
In the ObjCryst++ CVS (which includes Fox) (http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/objcryst/), there are 3 different development stages (The '
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).
|