Building from Git

From PixieWiki

Jump to: navigation, search

Here's how you build Pixie from scratch on Windows from Git sources and Visual Studio 2008.

Note: While the code should compile on VS 2005, the projects and solution are currently maintained as VS 2008 format. Perhaps in the future we'll support CMake for generating arbitrary VS configurations.

[edit] Dependencies

Download the following packages from GnuWin32:

  • flex
  • bison
  • libpng
  • libjpeg
  • libtiff
  • zlib
Warning: The latest zlib DLL from GnuWin32 (version 1.2.3.2532) seems to be buggy. Version 1.2.3.2027 is known to work.

Install them all to a central place, e.g. D:\GnuWin32.

Make a user environment variable GNUWIN32 pointing to the base path where you installed all the GnuWin32 packages, e.g. D:\GnuWin32 (as above). The Visual Studio projects will use this to find the necessary dependencies and tools.

[edit] Clone from Git

Run git clone git://github.com/scorpion007/pixie.git to get a fresh copy of the repository.

(Use git pull to fetch and merge subsequent updates after your initial clone.)

[edit] Building

Open the solution pixie\windows\vcnet8\Pixie\Pixie.sln, and hit F7 to build the solution.

Note: The Debug build is a lot faster to complete, so try that before attempting a Release build, which takes quite a long time due to optimization of Pixie's code. Namely the execute.cpp file takes most of the time due to its heavy use of C macros.