Introduction
The easiest way to get MRIcroGL is to download a compiled copy from the home page. However, MRIcroGL is open source, so you can build and modify the program if you wish. It is written in Pascal using the open source Free Pascal compiler, Lazarus integrated development environment, GLScene toolkit and PascalScript macro component. You can also use the proprietary Delphi compiler and IDE to build MRIcroGL.
Lazarus
You will want to download and install the following components:
- Lazarus 0.9.27 or later. Note that I find the German mirror is usually the fastest. Lazarus installs easily on OSX and Windows, but you may need to troubleshoot a Linux install
- latest SVN of GLScene. Follow the directions carefully to install the components.
- PascalScript. You can download this from the command line (svn co http://code.remobjects.com/svn/pascalscript). Next install the package into Lazarus (Package/OpenPackageFile to choose the .lpk file, then press the ‘Install’ button).
- The latest version of the MRIcroGL source code.
- If the project does not compile, choose Project/Options, select the ‘Other’ tab and remove the ‘Custom options’ (these allow OSX 10.5 to compile for 10.4, but may interfere with Windows/Linux compilation).
Delphi
You will want to download and install the following components:
- Delphi. I use Delphi 6 and 7 to compile this, and have not tested other versions.
- I use the older but stable version of GLScene for Delphi. If you have any problems, the GLScene website is useful.
- PascalScript. You can download this from the command line (svn co http://code.remobjects.com/svn/pascalscript) or using a Windows SVN tool like SVNturtle. Next install the core DPK package for your version of Delphi and press the ‘Install’ button.
- You will also need to download and install the RX library. This provides the controls where you can type in real numbers.
- The latest version of the MRIcroGL source code.