[oe] [PATCH] Add toolchain file generation to cmake bbclass

Matthew Dombroski matthew at 4d-electronics.co.nz
Tue Aug 25 22:12:19 UTC 2009


> I have had no problem with boost and with Qt4, I have been able to
> achieve similar results without the toolchain file, only by using a
> qt.conf file as Zecke had suggested to me.
I'm using boost-1.39 and found i needed to set Boost_COMPILER or it 
wouldn't find libraries. (Oh how I hate bjam, but thats another story...)

Setting Qt environment data in cmake.bbclass may seem a bit out of 
place.  When you consider that cmake is distributed with scripts for 
configuring/detecting Qt it doesn't seem too bad.
It is definitly tidier than generating a qt.conf in every recipe. Adding 
all the Qt info in EXTRA_OECMAKE is doing the same work twice.

> Although the toolchain file is the preferred value according to the
> cmake documentation, it has not been necessary to me.

The effect of a toolchain file is the same as that of defining lots of 
options in EXTRA_OECMAKE.
personally, I think it is cleaner. The ability to use it outside of 
openembedded is really useful to me also.

~Matt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: matthew.vcf
Type: text/x-vcard
Size: 306 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20090826/5591ef9e/attachment-0002.vcf>


More information about the Openembedded-devel mailing list