Build qt project with chroot environment

view story

http://stackoverflow.com – I got errors in debian 6 like: version glibc_2.15' not found. I understood that I have to build my application with old version of libc. I installed Ubuntu 10 into chroot. I have access to it with command like : sudo chroot /opt/ubuntu-10.4 I want to build my project with enviroment of Ubuntu 10. How can I do it? I should download via command line sources of my application, all libraries to chroot system and build there? If yes, what advantages from Virtual machine? Or may be there's way to do it easy? I didn't find any tutorial about it. (HowTos)