Supplementary Software
Download and install the following software on your computer PRIOR to downloading PopGen 1.0.

  1. Python 2.5.4 for Windows
    URL: http://www.python.org/ftp/python/2.5.4/python-2.5.4.msi
  2. NumPy 1.3.0 for win32 and Python 2.5
    URL: numpy-1.3.0-win32-superpack-python2.5.exe
  3. SciPy 0.7.0 for win32 and Python 2.5
    URL: scipy-0.7.0-win32-superpack-python2.5.exe
  4. MySQL_python 1.2.2 for win32 and Python 2.5
    URL: MySQL-python-1.2.2.win32-py2.5.exe
  5. Matplotlib 0.98.5.3
    URL: matplotlib-0.98.5.3.win32-py2.5.exe
  6. MySQL 5.0 for Windows - MySQL Community Server is freely available
    URL: http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-essential-5.0.83-win32.msi/from/http://mysql.mirror.redwire.net/
  7. Qt 4.5.0. Libraries for Windows (LGPL/ Free License). The installation location should be C:\Qt.
    URL: Qt libraries 4.5 for Windows
  8. Quantum GIS 0.11.0 - Metis
    URL: http://download.osgeo.org/qgis/win32/QGIS-0.11.0-2-Setup.exe
  9. Parallel Python
    URL: http://www.parallelpython.com/downloads/pp/pp-1.5.7.exe

Additionally, QMYSQL3 drivers are required by Qt software to interact with the MySQL databases. These can either be downloaded from the PopGen website or compiled on the user machine itself.

Alternative 1: Download MySQL drivers for Qt
  1. Go to http://urbanmodel.asu.edu/popgen/code.html. Download the package named "MySQL Drivers for MySQL 5.0"
  2. Unzip the contents of the package into ...\plugins\sqldrivers folder of the Qt installation folder. If for example, Qt 4.5.0 has been installed in C:\Qt, then unzip the contents into C:\Qt\plugins\sqldrivers.

Alternative 2: Compile MySQL drivers for Qt on the user machine

  1. Download and Install MinGW for Windows and Utilities:
    1. Automated MinGW Installer
      URL: https://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW-5.1.4.exe
    2. MinGW Utilities
      URL: https://sourceforge.net/projects/mingw/files/MinGW%20Utilities/mingw-utils-0.3.tar.gz
      Unzipping the downloaded package will output a "bin" folder. Copy all the contents of the "bin" folder to the "bin" folder of the MinGW installation in Step 1a. For example, if MinGW has been installed at C:\MinGW, then copy the contents of the MinGW Utilities "bin" folder to C:\MinGW\bin
    3. Include the "bin" folder of the MinGW installation (for example, C:\MinGW\bin) in the "path" variable of the "Environment Variables"
  2. Make MySQL library accessible to MinGW. Open the command prompt and enter the following commands:
    1. cd C:\MySQL\lib\opt (C:\MySQL is where MySQL has been installed)
    2. reimp -d libmysql.lib (reimp comes with MinGW Utilities and should be in the "bin" folder of the package downloaded in Step 1b)
    3. dlltool -k --input-def libmysql.def --dllname libmysql.dll --output-lib libmysql.a
  3. Create the MySQL drivers. Open the command prompt and enter the following commands:
    1. cd C:\Qt\src\plugins\sqldrivers\mysql (C:\Qt is where Qt is installed)
    2. qmake -o Makefile "INCLUDEPATH+=C:\MySQL\include" "LIBS+=-LC:\MySQL\lib\opt -lmysql" mysql.pro
    3. mingw32-make

PopGen 1.0

  1. Download PopGen 1.0 from http://urbanmodel.asu.edu/popgen/code.html
  2. Unzip "PopGen_1_0.zip" and store the files on your computer hard drive. (Preferably as C:\PopGen)
  3. Note that the environment variables have to be set before PopGen can be run. Right-click "My Computer" and go to "Properties". Click the "Advanced Tab" and select "Environmental Variables".
  4. Under "System Variables" find the variable named "Path". While the path variable is selected, click "Edit". Add the following locations to the "Variable Value" line in the same order. Separate folder locations with a semicolon:
    1. C:\PopGen
    2. C:\Qt\bin
    3. C:\qgis
    4. C:\Python25
  5. In addition to setting the "Path" variable, the "PYTHONPATH" variable also needs to be specified. In the Environment Variables Screen, find the system variable "PYTHONPATH". While this variable is selected, click "Edit". Add the following locations to the "Variable Value" list:
    1. C:\PopGen
    2. C:\qgis\python
    Note: Be sure to separate the folder locations by a semi-colon. Also, file path names given are examples only and your exact file path location may vary depending on where you placed the program on your computer.
Once the above steps are completed, find the "PopGen.bat" file, which is located in the "gui" folder of "pop_gen", and double-click it to initialize the application.