I am getting "undefined reference" error while running cross-compiled Qt program in Beaglebone Black

90 views
Skip to first unread message

Gunjan Vora

unread,
May 19, 2018, 2:56:16 AM5/19/18
to BeagleBoard
Hello,

I have done cross-compilation to run Qt programs in Beaglebone Black. I am able to run widgets general programs but graphics related programs are getting errors as 

/mnt/bbb-rootfs/usr/local/bbb/include/QtGui/qcolor.h:290: error: undefined reference to `QColor::setNamedColor(QLatin1String)'

I have also attached error screenshot. Kindly help me on this.

Regards,
Gunjan Vora
BBB error.png

Przemek Klosowski

unread,
May 25, 2018, 9:36:25 PM5/25/18
to beagl...@googlegroups.com
On Sat, May 19, 2018 at 2:56 AM, Gunjan Vora <gunj...@gmail.com> wrote:
> I have done cross-compilation to run Qt programs in Beaglebone Black. I am
> able to run widgets general programs but graphics related programs are
> getting errors as
>
> /mnt/bbb-rootfs/usr/local/bbb/include/QtGui/qcolor.h:290: error: undefined
> reference to `QColor::setNamedColor(QLatin1String)'

I think you're getting link-time errors during croscompilation---I
don't see any evidence that you were able to run anything.
Does this code compile in a native (non-cross) environment?
On my system qcolor.h seems to be provided by qt5-qtbase so you need
to have that in the cross-compilation environment.

Gunjan Vora

unread,
May 25, 2018, 10:55:10 PM5/25/18
to beagl...@googlegroups.com
This error in not during cross-compilation. I am getting this error while running the program using cross-compiled Beaglebone black kit in Qt. I have used Linaro toolchain for cross-compilation and I have  cross-compiled qt5-qtbase in first place.


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/P8WNGI-Jfhk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAC%3D1GgFRZXZ3cy3nGf%3D6m%2Bzs5BcxCH78u3e%2Bz6Lcv-MBDE9Z3g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages