Let the flamewar begin!
Using Mingw32CE (see http://cegcc.sourceforge.net/
), it is not particularly difficult to compile OpenZDK applications with GCC, on Linux. It would probably be equally possible to do so on Windows, but I've made no such attempt.
Attached is an installer. To use it:
- Download and extract the OpenZDK starter kit
- Find the MSI for the OpenZDK SDK (should be in zune_hd/openzdk-hd-...msi). This could probably work with Zune SD, but again, I haven't tried.
- Extract the MSI using 7z: 7z x <openzdk>.msi
- Some 7z's will extract the metadata, others will extract the SDK directly (not sure why). If the above command created a bunch of files with names starting with an underscore, ignore this step. Otherwise, extract sdkfiles.cab: 7z x sdkfiles.cab
- Download opensdk-install.zip (attached to this post) and extract the .sh file from it: unzip opensdk-install.zip
- Run it! bash openzdk-install.sh
By default this installs to Mingw32CE's default prefix, /opt/mingw32ce. If you want it elsewhere, you can change that in openzdk-install.sh . To compile OpenZDK apps, just link them against zdksystem or zdknet as necessary (-lzdksystem, -lzdknet).
Why did I do this? Because I wanted to make a change to Liberate (which I will post momentarily), and didn't want to use MSVC