Supplementary Software
Download and install the following software on your computer PRIOR to downloading PopGen 1.0.
- Python 2.5.4 for Windows
URL: http://www.python.org/ftp/python/2.5.4/python-2.5.4.msi
- NumPy 1.3.0 for win32 and Python 2.5
URL: numpy-1.3.0-win32-superpack-python2.5.exe
- SciPy 0.7.0 for win32 and Python 2.5
URL: scipy-0.7.0-win32-superpack-python2.5.exe
- MySQL_python 1.2.2 for win32 and Python 2.5
URL: MySQL-python-1.2.2.win32-py2.5.exe
- Matplotlib 0.98.5.3
URL: matplotlib-0.98.5.3.win32-py2.5.exe
- 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/
- Please use the Custom Setup Type
- Make sure that the feature C Include Files/ Lib Files is installed by changing the option to "this feature will be installed on local hard drive"
- Change the Install to location to C:\MySQL by clicking on the "change" button near the bottom of the Custom Setup screen
- When Installation is almost complete, an advertisement will appear. Just click through this.
- After downloading and installing MySQL 5.0, the installation wizard will prompt you to configure your MySQL settings. Check the box and proceed to configuration.
- Unless otherwise directed in these instructions, keep the default settings.
- Choose the Detailed Configuration option on the 1st screen
- Choose Non-Transactional Database Only on the 3rd screen
- Choose Manual Setting and change the concurrent connections to 200 on the 4th screen
- Check the Include BIN directory in Windows PATH option on the 7th screen
- Set-up your MySQL password
- Complete the MySQL configuration setup by clicking "execute" in the screen that follows
- Qt 4.5.0. Libraries for Windows (LGPL/ Free License). The installation location should be C:\Qt.
URL: Qt libraries 4.5 for Windows
- Quantum GIS 0.11.0 - Metis
URL: http://download.osgeo.org/qgis/win32/QGIS-0.11.0-2-Setup.exe
- 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
- Go to http://urbanmodel.asu.edu/popgen/code.html. Download the package named "MySQL Drivers for MySQL 5.0"
- 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
- Download and Install MinGW for Windows and Utilities:
- Automated MinGW Installer
URL: https://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW-5.1.4.exe
- 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
- Include the "bin" folder of the MinGW installation (for example, C:\MinGW\bin) in the "path" variable of the "Environment Variables"
- Make MySQL library accessible to MinGW. Open the command prompt and enter the following commands:
- cd C:\MySQL\lib\opt (C:\MySQL is where MySQL has been installed)
- reimp -d libmysql.lib (reimp comes with MinGW Utilities and should be in the "bin" folder of the package downloaded in Step 1b)
- dlltool -k --input-def libmysql.def --dllname libmysql.dll --output-lib libmysql.a
- Create the MySQL drivers. Open the command prompt and enter the following commands:
- cd C:\Qt\src\plugins\sqldrivers\mysql (C:\Qt is where Qt is installed)
- qmake -o Makefile "INCLUDEPATH+=C:\MySQL\include" "LIBS+=-LC:\MySQL\lib\opt -lmysql" mysql.pro
- mingw32-make
PopGen 1.0
- Download PopGen 1.0 from http://urbanmodel.asu.edu/popgen/code.html
- Unzip "PopGen_1_0.zip" and store the files on your computer hard drive. (Preferably as C:\PopGen)
- 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".
- 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:
- C:\PopGen
- C:\Qt\bin
- C:\qgis
- C:\Python25
- 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:
- C:\PopGen
- 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.