gecode fails to cross build from source, because it uses build
architecture build tools in two distinct locations. debian/rules hard
codes the build architecture pkg-config and therefore fails supplying
the relevant include directories for Qt. The easiest way of fixing this
is using dpkg's buildtools.mk. Then, the upstream gecode.m4 locates
qmake6 without an architecture prefix. As a result, Qt link flags are
skipped. qmake6 should be located using AC_CHECK_TOOLS rather than
AC_CHECK_PROGS. Once addressing both, gecode cross builds successfully.
Please consider applying the attached patch.
Helmut