|
From: Martin G. <Mar...@as...> - 2017-12-04 14:55:33
|
Hi!
I just started with incorporating libdbus-c++ into a Yocto based BSP in
order to use it with our applications. In the attached patch you'll find
two issues being addressed that I came across when cross-compiling:
1. Calling pipe() did fail due to a missing include of unistd.h.
2. The project specific includes were given as system paths. Admittedly
this is mainly a question of semantic correctness, as the build
worked with the unpatched source, too. I didn't check other source
files for this issue.
An additional issue has been that building with my custom Bitbake
recipe, and though the cross-compilation setup has been confirmed by the
configuration summary, the host compiler (g++) was used initially
instead of the cross compiler, which made linking fail (which in turn
was using the correct cross linker). I was able to force usage of the
correct compiler by explicitly setting the environment variable CXX
(plus CC, CPP and LD just to be sure) to the correct path. There may be
some inconsistency regarding cross-compilation support in the configure
script, so I thought you might be interested in this description. If
you want to investigate I can provide you the matching build logs and
generated makefiles.
Regards
Martin
--
Mit freundlichen Grüssen
Martin Gebert
____________________________________
Martin Gebert
Softwareentwicklung
AST-X GmbH
Breitweidig 9
91301 Forchheim
Tel. 09191-7362927-615
Fax. 09191 7362927-699
Mail Mar...@AS...
AST-X GmbH
Sitz der Gesellschaft: Forchheim
Registergericht: Amtsgericht Bamberg, HRB 7943
Geschäftsführer: Helmut Leicht
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren
sowie die unbefugte Weitergabe dieser E-Mail sind nicht gestattet.
This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail.
Any unauthorised copying, disclosure or distribution of the material
in this e-mail is strictly forbidden.
|