[Buildroot] Build issue on OpenCV: multiple Qt related undefined references

Samuel Martin s.martin49 at gmail.com
Tue May 5 22:42:13 UTC 2015


Hi Thomas, all,

On Mon, May 4, 2015 at 3:28 PM, Samuel Martin <s.martin49 at gmail.com> wrote:
> Hi Thomas,
>
> On Sun, May 3, 2015 at 11:35 AM, Thomas Petazzoni
> <thomas.petazzoni at free-electrons.com> wrote:
>> Hello Samuel,
>>
>> I did an allyespackageconfig build yesterday, and it failed because of
>> an OpenCV/Qt build issue during the OpenCV build. Here is the error:
>>
>> ../../lib/libopencv_highgui.so.2.4.10: undefined reference to `QFont::setLetterSpacing(QFont::SpacingType, float)'
>> ../../lib/libopencv_highgui.so.2.4.10: undefined reference to `QTransform::QTransform(float, float, float, float, float, float, float, float, float)'
>> ../../lib/libopencv_highgui.so.2.4.10: undefined reference to `QTransform::map(float, float, float*, float*) const'
>> ../../lib/libopencv_highgui.so.2.4.10: undefined reference to `QPen::QPen(QBrush const&, float, Qt::PenStyle, Qt::PenCapStyle, Qt::PenJoinStyle)'
>> ../../lib/libopencv_highgui.so.2.4.10: undefined reference to `QTransform::scale(float, float)'
>> ../../lib/libopencv_highgui.so.2.4.10: undefined reference to `QTransform::translate(float, float)'
>> collect2: error: ld returned 1 exit status
>>
>> The defconfig is below, but beware, it takes ages to build (200 minutes
>> of real time on a relatively fast build server). If you could have a
>> look, it would be great.

As reported yesterday on IRC, the root cause of this issue is a
prototype mismatch in the above mentioned methods (when used in
OpenCV, they expect float arguments, whereas the libQtGui.so provides
the same methods but with double arguments).

I confirm that this revert [1] does fix this issue.


[1] http://git.buildroot.net/buildroot/commit/?id=078c1c4416648eea4a3d1f116e10c8ad6071b3d1


Regards,

-- 
Samuel



More information about the buildroot mailing list