[OE-core] Linker error while cross compiling, (Qt issue?)

Khem Raj raj.khem at gmail.com
Fri Feb 24 08:27:30 UTC 2012


On (22/02/12 16:53), Samuel Stirtzel wrote:
> Hi,
> although building libdbusmenu-qt [1] for kdelibs succeeds, linking the
> library will fail with "undefined reference to
> DBusMenuExporter::~DBusMenuExporter" and similar errors.
> The library is there and nothing in the configure / compile log of
> both recipes seems to state any sort misconfiguration for this case.
> 
> For libdbusmenu-qt the settings were double checked, according to the
> configuration it "should" export the symbols, however for some very
> odd reasons it doesn't export any useful symbols at all.
> See  http://pastebin.com/z9QfsCTc  for the list of exported symbols
> (U=required symbols, T=provided symbols, for others see "man nm").
> 
> This error really puzzles me, usually I would assume that a library
> has no problems to export symbols.
> (Posted this to the core list as chances are good that it might be Qt related)
> 
> It seems to only occur when cross compiling.
> 
> Anyone has an idea if this is gcc ld / Qt related, or how to resolve it?
> Help would be appreciated.

keep in mind when you use g++ in OE the default is to use hidden
visibility

like below

meta/conf/distro/include/tclibc-eglibc.inc:CXXFLAGS +=
"-fvisibility-inlines-hidden"

and my guess is thats whats causing this

So you need to nullify that effect.





More information about the Openembedded-core mailing list