5.2. Binaries
Prev | Chapter 5. Internals | Next

## 5.2. Binaries

Making binaries from POV-Ray™ and MegaPOV requires:

- 32-bit C/C++ compiler and linker with STL support

- libraries for linking:

  - libpng ver. 1.2.1
  - libjpeg ver. 6b
  - libtiff ver. 3.5.7
  - zlib ver. 1.1.4

- knowledge about compiling and linking

If you have all of this you can try to make your own binaries.

### 5.2.1. compiling on Windows/DOS systems

To compile MegaPOV on Windows systems you do not need to buy expensive compilers. There are some free C++ compilers available.

#### 5.2.1.1. Borland C++ 5.5

Main URL

  www.borland.com

Target

  creation of Windows GUI tested

Binaries

  http://www.borland.com/products/downloads/download_cbuilder.html

Documentation

  included with binaries in basic form, extended documentation for full commercial version at ftp://ftp.borland.com/pub/bcppbuilder/techpubs/b5std.zip

Dedicated forums

  http://groups.google.com/groups?group=borland.public.cpp

Predefined macros

  `__BORLANDC__`

Notes

  http://news.povray.org/povray.binaries.utilities/27877/

#### 5.2.1.2. DJGPP - A free 32-bit development system for DOS

Main URL

  http://www.delorie.com/djgpp/

Target

  creation of command line version for DOS tested

Binaries

  http://www.delorie.com/djgpp/zip-picker.html

Documentation

  http://www.delorie.com/djgpp/doc/

Dedicated forums

  http://groups.google.com/groups?group=comp.os.msdos.djgpp

Predefined macros

  `__DJGPP__`

Notes

  The core of DJGPP is the MS-DOS port of the GNU C/C++ compiler, GCC, and auxiliary utilities, such as assembler, linker, librarian, Make, and a hypertext docs browser. So people familiar with GCC family should not have problems in using it.

#### 5.2.1.3. MinGW - Minimalist GNU for Windows

Main URL

  http://www.mingw.org/

Target

  command line version for Windows tested

Binaries

  http://prdownloads.sourceforge.net/mingw/

Documentation

  http://www.mingw.org/docs.shtml

Dedicated forums

  http://www.mingw.org/lists.shtml

Predefined macros

  `__MINGW32__`

Notes

  There is name conflict between `BLOB` and other identifiers in POV-Ray™ and MinGW.

  MinGW can be used together with Cygwin, see http://www.mingw.org/mingwfaq.shtml#faq-usingwithcygwin.

  An adapted source code package for compiling with MinGW is available on the MegaPOV site.

#### 5.2.1.4. Cygwin - UNIX environment for Windows

Main URL

  http://www.cygwin.com/

Target

  creation of command line version for windows tested

Binaries

  http://www.cygwin.com/download.html

Documentation

  http://cygwin.com/docs.html

Dedicated forums

  http://cygwin.com/lists.html

Predefined macros

  `__CYGWIN__`

Notes

  With Cygwin you can compile both executables using the Cygwin emulation DLL or not (using the -mno-cygwin flag). Both tested, compilation with X display possible (when XFree86 is installed).

#### 5.2.1.5. Digital Mars C++

Main URL

  http://www.digitalmars.com/

Target

  command line version for windows tested

Binaries

  ftp://digitalmars.com/dmc.zip

Documentation

  ftp://ftp.digitalmars.com/Digital_Mars_C++/Doc/

Dedicated forums

  news://news.digitalmars.com/ , http://www.digitalmars.com/drn-bin/wwwnews?newsgroups=*

Predefined macros

  `__DMC__`

Notes

  there is no `atof` in standard libraries so it requires to define `LACK_OF_ATOF_IN_DMC_PATCH`

  there is no inversed hyperbolic functions so it requires to define `NEED_INVHYP`

  there is no `unlink` in standard libraries so it requires to define `DELETE_FILE` as `remove`

#### 5.2.1.6. Watcom C++

Main URL

  http://www.openwatcom.org

Target

  windows dedicated but non version tested yet

Binaries

  http://www.openwatcom.org/download/download_licenses.html

Documentation

  http://www.openwatcom.org/support/reference_content.html

Dedicated forums

  http://www.openwatcom.org/support/newsgroups_content.html

Predefined macros

  `__WATCOMC__`

Notes

  there are some problems in STL port so this compiler was not forced to correctly compile POV-Ray™ yet, however its move to open source project makes its future

  currently available patch 11.0c version is supposed to be an upgrade but can be installed without previous version

### 5.2.2. compiling on Macintosh systems

#### 5.2.2.1. Metrowerks CodeWarrior

Main URL

  http://www.metrowerks.com

Target

  Apple Macintosh PowerPC Carbon and Classic versions tested. Windows not tested but possible.

Binaries

  http://store.metrowerks.com/

Documentation

  http://www.metrowerks.com/MW/Develop/Desktop/Macintosh/Default.htm

Dedicated forums

  http://www.metrowerks.com/MW/Support/Newsgroups/default.htm

Predefined macros

  `__MWERKS__`

Notes

  currently available update 8.3

#### 5.2.2.2. Apple Project Builder for Mac OS X. Free development environment

Main URL

  http://developer.apple.com/tools/projectbuilder/index.html

Target

  no versions have been ported to Project Builder yet.

Binaries

  http://developer.apple.com/macosx/

  you have to join ADC to be able to download. membership however is free.

Documentation

  http://developer.apple.com/macosx/gettingstarted/index.html

Dedicated forums

  http://www.lists.apple.com/mailman/listinfo/projectbuilder-users#Subscribe

Predefined macros

  `?`

Notes

  you need this package in order to build Darwin (UNIX) binaries.

### 5.2.3. compiling on Unix systems

Compiling on Unix systems using the GNU C/C++ Compiler (gcc) and GNU make should be fairly easy. There is a Unix source code package available on the MegaPOV site.

For compiling with graphics display support you need the X and VGALib headers and libraries:

- XFree86
- SVGAlib

Detailed explanation on how to compile without graphics display support and other specialities is given in the source code package. Compiling with other compilers than gcc should be possible but requires manual modifications in the makefiles.

#### 5.2.3.1. GNU C/C++ (gcc)

Main URL

  http://gcc.gnu.org/

Target

  ix86 Linux tested, Windows (Cygwin/MinGW) tested, Others not tested but possible.

Binaries

  http://gcc.gnu.org/install/binaries.html

Documentation

  http://gcc.gnu.org/onlinedocs/

Dedicated forums

  http://gcc.gnu.org/lists.html

Predefined macros

  `__GCC__`

Notes

  Tested with gcc 3.1.1 and 3.2.1

Prev | Up | Next
Chapter 5. Internals | Home | 5.3. Parser