1 To build OccJava with mingw you need a OpenCASCADE binaries built with mingw. Official binaries are built with Microsoft Visual C++.
3 The follwing patches are needed to build OpenCASCADE 6.5 with mingw:
4 - patch from the Opencascade Debian package (quilt --quiltrc debian/patches/quiltrc push -a)
5 - occ-mingw-makefile.patch
8 Once OpenCASCADE 6.5 is built with mingw you can build OccJava by setting CASROOT and JAVA variables in Makefile.mingw and run make -f Makefile.mingw.
10 To build with mingw on Debian you need mingw32 mingw32-binutils mingw32-runtime packages.
12 All these has only been tested on Debian but should also work with other Linux distros and MSYS.