Compiling DXPy:

This part was very important to get up early, since I want anyone to be able to compile DXPy from its source code as quickly and efficiently as possible.

DXPy has been tested with two compilers, MSVC++, and MinGW. Both compilers work in the exact same way, though MinGW does throw in some warnings about the directX header files. This is normal, and should not be considered an error. To begin compilation, make sure that you have either compiler's newest version installed, that you have the python 2.5 libraries and headers installed, as well as a very recent install of the DirectX SDK. DXPy was tested to work with both 2005 and 2008 releases, so any SDK between those should work fine.

Please note that this will get more detailed and comprehensive as I find more time to update it and include more, so if you dont understand something, check back in the next version to see if it is more detailed.

MSVC++

Well, if you got the developer version of DXPy, with all of the development files and libraries, then you shouldnt have a big problem.

The MSVC project is included, along with all of python 2.5 debug libraries, which are not included with the python destribution. One problem is that you need to include the paths of the libraries in the MSVC++ search path, along with the paths to the headers. If you dont know how to do that, then google it.

MinGW

OK, if you got the developer version of DXPy, which includes every library and file needed for it to be compiled, then all you need to do is install the latest version of MinGW, and when done double click on "make_MinGW.bat" which will automatically include all libraries needed. There will be some warning output, and it can be ignored, since the warnings do not affect DXPy. There. you are done.

If you just got the source code, then you are pretty much out of luck, since satisfying the dependencies is  always a ... not fun thing to do. You will need the directX SDK, and all of the python 2.5 libraries.

The program is dependent on libpython25.a, libd3d9.a, lib d3dx9.a, libdxguid.a, libdinput8.a. All of the libraries from the DirectX destribution need to be reimped, and dinput8.lib needs to be directly linked also, since reimp does not include its symbols. Also, ISMINGW needs to be defined so that MinGW specific code is compiled correctly. The batch file that I use to compile DXPy is:

g++ -DISMINGW=1 "Code/DXPy.cpp" "Resources/Icon/icon.o" "Resources/libraries/DirectX 2008/libs/dinput8.lib" -o "BINARIES/Debug/DXPy_MGW.exe" -I"Resources/Libraries/Python25/includes" -I"Resources/Libraries/DirectX 2008/Includes" -L"Resources/Libraries/DirectX 2008/Libs" -L"Resources\Libraries\Python25\Libs" -ld3d9 -ld3dx9 -ldxguid -lpython25
@pause