I saw many threads about setting up Qt on Rpi v.1. RPi 2 is using ARMv7 architecture so probably toolchain for ARMv6 won't work like described here
Additionally I would like to compile from Windows, is there any suitable cross-compiler for it?
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.Sign up to join this community
WRT a windows cross-compiler, I don't use windows but for ARMv6 I use crosstool-ng, which is available for the Windows. I'd guess you'd need ming-gw too.
Note that since ARMv7 cross-compilers are much easier to come by, you might try that. I'm not sure if the resulting binaries will work on an ARMv6 userland, but as a guess they might. They certainly work on a Pi 2 with an ARMv7 userland.
The current ARMv7 distros are Snappy Core Ubuntu and the Fedora 21 remix. Fedora, and I would presume Ubuntu, have all the Qt 4 and 5 binaries.
I work with the same program QT on RPI1 and RPI2 cross compiled from my linux VM with QT creator, Anything compiled for ARMv6 should work ...
I use linux for cross compile with a specific toolchain for ARM : https://github.com/raspberrypi/tools/tree/master/arm-bcm2708 (gcc-linaro)
You can consider to use Ming-GW or cygWin to compile this toolchain on Windows, some help here about the linaro toolchain : https://github.com/raspberrypi/tools/tree/master/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/share/doc/gcc-linaro-arm-linux-gnueabihf-raspbian or you can download directly a compiled version here : https://releases.linaro.org/14.04/components/toolchain/binaries/
I have used this method for cross compiling on linux : http://www.ics.com/blog/building-qt-and-qtwayland-raspberry-pi