Getting Started/Build/Windows/patches

From KDE TechBase

This is a temporary page for KDE on Windows which needs no translation.

Please add new patches that are related to Windows builds and might be interesting to the developer community in any way up here with a short description, the next number and within an ever-lasting pastebin.


1) http://pastebin.com/f5f09c9dc - When compiling kdebase-runtime, mingw segfaulted (The compiler) when it got to this file. I pinpointed it to the four lines that are commented out with this patch. Steven

2) http://pastebin.com/f55a5fb2b - trying to compile phonon ds9 with mingw, these changes were needed to at least get to the linker errors. patrick

As an addon to patch 2, I tried everything I could and failed to get phonon to compile with ds9 under mingw, I'm guessing it's just a dx/mingw compatibility problem. - Steven

3) http://pastebin.com/f669db538 - With that being said, here's a really big and dirty patch (As in, I recommend not using it, other than to look at for where Amarok fails) to make Amarok compile under mingw. Most of it is moving function definitions to public (Friend classes weren't being recognized as friends), commenting out StatusBar useage (Inline and dll didn't want to work together, kept crashing mingw on me), and adding includes (Couple widgets used QDir if Q_WS_WIN was defined, but didn't include the QDir header). Also in regards to a backend for Phonon, I managed to compile mplayer/vlc backends, where do I put the DLL's so that Phonon will use them? And does Amarok correctly use Phonon to play audio? Steven

4) http://pastebin.com/f3bafc98e - Here's the rather hacked together mplayer/vlc backend, found it on some Google page but it was configured to compile with a different version of Phonon, so I messed around with it until it compiled, dunno how well it would work, but it might help with testing things out for now. Also, I'm not sure of the exact changes between the files I got (http://code.google.com/p/phonon-vlc-mplayer/wiki/Building) and these files. Extract this archive to svn/kdesupport/phonon/ http://www.filedropper.com/vlc-mplayer Steven