Personally I would not try to cross compile all this. Cross compiling makes the whole process a thousand times more difficult. Also why not use Qt 5?
Just install Qt 5 and opencv on to the Pi. You will need to install the opencv development package:
Code: Select all
$ sudo apt-get install libopencv-dev
If you do "apt-cache search opencv | grep dev" that will show you a bunch of other opencv packages you may need for various functionalities.
Similarly for Qt:
Code: Select all
$sudo apt-get install qt5-default
[code]
Or is it:
[code]
$sudo apt-get install qt5-qtbase5-dev qtbase5-dev-tools
[code]
I forget now.
Of course you could also use the qtcreator IDE:
[code]
$ sudo apt-get install qtcreator
Which will pull in everything for Qt you need.
Memory in C++ is a leaky abstraction .