Juanito is right... You need compile anki before to compile ankiqt.
Sequence would be:
cd anki-1.2.9
./tools/build_ui.sh <-You need bash.tcz
cd libanki
sudo python setup.py install <-Here you compile anki
cd ..
sudo python setup.py install <-Here you compile ankiqt
Note that you need qt-4.x-extended.tcz and qt-4.x-webkit.tcz in addition to your dependencies to run application.
Regards.