[oe] Problem passing environment variables

Holger Hans Peter Freyther holger+oe at freyther.de
Wed Aug 19 04:28:20 UTC 2009


On Wednesday 19 August 2009 05:55:14 Stuart Gray wrote:
> Hi,
>
> I am trying to build with support for Qt4 Embedded. This was working, but
> then I tried to add our most recent Qt4 project files and updated code, but
> the build failed.
>
> The issue is that the project files use environment variables which when
> using the Qt4 development environment works fine, but when this is compiled
> under the OE environment I cannot find a way to pass the variables into the
> qmake2 build.
>
> I have tried to add them on the line calling qmake2, but this has not
> worked.
>
> I have also tried to add then into my environment setup changing my .bashrc
> to add the variables. I have also added these to the BB_ENV_EXTRAWHITE, but
> the variables are still not found.

Well, it is hard to tell what kind of environment variables you have. But if 
you are using environment variables to configure you could

a) reconsider and use the qmake way to set variables on the command line. This 
can be achieved using the EXTRA_QMAKEVARS_PRE and EXTRA_QMAKEVARS_POST vars 
which will result in a command line like: qmake PRE -after POST

b) you can use "export VAR" in the recipe to ask bitbake to export the VAR to 
the shell. then export VAR should show up in the generated shell script for 
do_configure and do_compile.

z.




More information about the Openembedded-devel mailing list