The MinGW dependencies have been released; this means that you can build OGRE under MinGW (or cygwin) without going through the trouble of building all the dependencies
I need some help testing this stuff. This assumes a working cygwin, you need the following packages as well:
- pkg-config
- autoconf
- automake
- aclocal
- cvs
- mingw-runtime
- gcc
- gcc-mingw
- gcc-mingw-core
- gcc-mingw-c++
- w32api
You can download all of this with the installer on www.cygwin.com.
Note that you do not need the Microsoft DX9 SDK, only my deps.
1) Download the dependencies http://orion.servicez.org/MinGWDependen ... e2.tar.bz2
2) Extract them to /mingw in your cygwin installation
3) Get the latest OGRE CVS head (it won't work with 0.15.x)
4)
Code: Select all
export PATH="$PATH:/mingw/bin"
export ACLOCAL_FLAGS="-I /mingw/share/aclocal"
export PKG_CONFIG_PATH=/mingw/lib/pkgconfig
cd ogrenew
./bootstrap
CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" CXXFLAGS="-O2 -I/mingw/include" LDFLAGS="-L/mingw/lib -L/lib/w32api" ./configure --with-ft-prefix=/mingw --with-platform=Win32 --with-gl-support=Win32 --disable-static --host="i686-pc-mingw32" --enable-direct3d
make
make install
mv /usr/local/lib/OgrePlatform.dll /usr/local/bin
don't forget to change the PluginFolder plugins.cfg to the right *FULL* path and filenames; for example.
Code: Select all
PluginFolder=C:\cygwin\usr\local\lib\OGRE
Code: Select all
Plugin=RenderSystem_Direct3D9.dll
5) Run the examples in Samples/Common/bin and have fun!