为 Raspbian jessie 交叉编译 qt5.5

cross compile qt5.5 for Raspbian jessie

我一直在关注如何为 raspbian 交叉编译 QT 的指南:http://exploreembedded.tumblr.com/post/115333857238/guide-to-cross-compile-qt-54-for-the-raspberry-pi

它已有几个月的历史了,因此进行了某些更改以适应 Jessie 和 qt 5.5,而不是 Wheezy 和 qt 5.4。但是,我已经深入了解指南的配置和制作部分,但我完全被困住了。当 运行 $make 时,我遇到了一堆这样的错误:

.obj/qeasingcurve.o:qeasingcurve.cpp:function easeInOutCirc(double): error: undefined reference to 'sqrt'

.obj/qeasingcurve.o:qeasingcurve.cpp:function easeOutCirc(double): error: undefined reference to 'sqrt'

.obj/qeasingcurve.o:qeasingcurve.cpp:function easeInCirc(double): error: undefined reference to 'sqrt'

.obj/qeasingcurve.o:qeasingcurve.cpp:function easeOutInSine(double): error: undefined reference to 'cos'

通过谷歌搜索,我对发生这种情况的原因有了一些了解(看起来由于某些无法解释的原因需要手动链接数学库),但不知道如何修复它。想法?

因为似乎没有人知道答案,所以我找到了另一种似乎可以用一些小技巧来解决的方法:https://wiki.qt.io/RaspberryPi2EGLFS