Building on Windows
Software to install:
- WinRAR
- PostgresSQL
- TortoiseSVN 9(32 bit)
- Boost c++ libraries 1.34.0
- Visual Studio C++ Express Edition
- Windows Platform SDK.
Installing Tortoise Subversion
Boost C++ Libraries 1.34.0
- Go to http://www.boost-consulting.com/products/free
- Click the 2nd download, Boost 1.34.0 Installer.
- Click Run and again.
- Agree to the licenses.
- Click Next.
- Tick the Visual C++ 8.0 (Visual studio 2005).
- Tick the Multithread, static runtime and Multithread Debug, static runtime then click Next
- Now untick every box except:
- Boost Header files
- Boost Start menu shortcut
- Boost Source and Documentation
- Tools
- Boost DateTime
- Boost FileSystem
- Boost IOstream
- Boost ProgramOptions
- Boost Regex
- Boost Thread
- Boost Header files
9. Click Next, Install. (take note of where you saved boost).
Installing Visual Studio Express C++
Getting Project Exodus onto your Computer:
- Go to your desktop, and create a new folder.
- Right click on the folder, and got to TortoiseSVN, checkout.
- In the URL field type in (or copy and paste) http://svn.neosys.com/svn/trunk and click Ok.
- Another window will pop up, and start listing the files you are importing onto your pc.
- Click Ok, once loading is finished.
For help on how to use: http://devwiki.neosys.com/index.php/Installing_and_Using_Tortoise_Subversion
Part 2 Configuring & Compiling
- Run Microsoft Visual Studio C++ Express Edition.
- Now go to File, Open, File, Desktop, Exodus, agency, agency.sln and then open.
- You should see:
- Open agency pointed to you by the red arrow, by clicking on the + sign.
- Remove Market and schedule.
- In the agency folder, open Main then double click on main.cpp
- You should now have C++ code to the right side of the Visual Studio program window.
- Go to Tools, Options, open Project and Solutions and go to VC++ Directoies
- Your window should look like this:
- Do the following:
- Click the drop down menu for Show directories for: and click Include Files, now click the button that looks like a yellow folder and in the field were the cursor is blinking copy an paste the following path, and then press Enter: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin
- Click the drop down menu for Show directories for: and click Include Files, now click the button that looks like a yellow folder and in the field were the cursor is blinking copy an paste the following path, and then press Enter: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
- Click the drop down menu for Show directories for: and click Library files, now click the button that looks like a yellow folder and in the field were the cursor is blinking copy an paste the following path, and then press Enter: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib
- Click the drop down menu for Show directories for: and click Include Files, now click the button that looks like a yellow folder and in the field were the cursor is blinking copy and paste the path to the boost_1_34_0 folder you created earlier when installing the Boost libraries.
- Click the drop down menu for Show directories for: and click Library Files, now click the button that looks like a yellow folder in the field were the cursor is blinking copy and paste the path to the boost_1_34_0\lib folder you created earlier when installing the Boost libraries.
- Then click Ok.
- Check whether libpq.dll is in C:\Program Files\PostgreSQL\8.1\lib\????, if not there then change project properties to reflect version on location in where you installed postgreSQL.
- Right click on My computer, properties, advanced, environment variables, system variables, scroll down and find Path, double click it. variable value, go to the end of the path and type a semi-colon, then copy and paste the following path after the semi-colon:
C:\Program Files\PostgreSQL\8.1\lib\ms and close Visual Studio C++ Express Edition, and then open again.
Generate and build a Win32 application to test your paths.
In Visual C++ Express, the Win32 Windows Application type is disabled in the Win32 Application Wizard. To enable that type, you need to edit the file AppSettings.htm file located in the folder %ProgramFiles%\Microsoft Visual Studio 8\VC\VCWizards\AppWiz\Generic\Application\html\1033\".
In a text editor comment out lines 441 - 444 by putting a // in front of them as shown here:
// WIN_APP.disabled = true;
// WIN_APP_LABEL.disabled = true;
// DLL_APP.disabled = true;
// DLL_APP_LABEL.disabled = true;
Save and close the file and open Visual C++ Express.
From the File menu, click New Project. In the New Project dialog box, expand the Visual C++ node in the Product Types tree and then click Win32. Click on the Win32 Console Application template and then give your project a name and click OK. In the Win32 Application Wizard dialog box, make sure that Windows application is selected as the Application type and the ATL is not selected. Click the Finish button to generate the project.
Compile by pressing F5.
Win32 application should build and run.
BY GREG BUSH 19/10/2007
Helpful Websites
- For help on Microsoft Visual Studio C++ Express Edition go to http://msdn2.microsoft.com/en-gb/express/aa700755.aspx
- For help on Boost go to http://www.boost.org
- For help on PostgeSQL go to http://www.postgresql.org/
- For help on WinRAR go to http://www.win-rar.com/winrarsupport.html
- For help on TortoiseSVN go to http://tortoisesvn.tigris.org/
- For how to use tortoiseSVN go to http://devwiki.neosys.com/index.php/Installing_and_Using_Tortoise_Subversion