

-o dxtest.exe – specifies the output file.G++ dxtest.cpp -o dxtest.exe -I/dxsdk/include -L/dxsdk/lib -DUNICODE -ld3d9 If everything was set up properly it should build and run with no modifications.īuild the DirectX test application with the following command: I borrowed the following test application from DirectX. You may need to exit your shell and restart it.

Also, older MinGW versions did not automatically reload the mount points when fstab was modified. If it is empty you probably have a typo in fstab. Go to /dxsdk and list the directory contents. The hard drive path and the mount point may be separated by any number of spaces or tab characters. Edit the file /etc/fstab and add the line “ C:/DirectXSDK /dxsdk“. This will be used as a mount point for the DX SDK. In the root directory /, create an empty /dxsdk subdirectory. The latest DirectX SDK is installed but it is not yet visible from within the MSYS environment. Run the installer and install to a directory without spaces, for example C:\DirectXSDK. Microsoft likes to keep moving things around but as of this writing it can be found at this link. Other packages may be installed manually following the manual install instructions found here.ĭownload the latest DirectX SDK. In this MinGW shell, run the /postinstall/pi.sh script to establish bindings between the MinGW and MSYS installations. Start the MSYS shell by running C:\MinGW\MSYS1.0\msys.bat. Once the installation completes you must add the MinGW bin/ directory to your path, for example C:\MinGW\bin. You will see a console window open while it downloads and installs the selected components. This will download and run the Command line installer. Select the C++ and MSYS optional components. Make sure that this path contains no spaces. The easiest way to do this is to download and run the latest mingw-get-inst GUI installer. First, you need to get the latest and greatest MinGW development environment. This article will show you how to set up a MinGW DirectX development environment.
