[oe] [Gumstix-users] Problem passing environment variables

Stuart Gray stuart68 at gmail.com
Wed Aug 19 09:51:11 UTC 2009


Hi,

Here is what I had tried within the recipe to export:

do_configure_prepend () {
        export WORKING_DIR=~/overo-oe/SA/trunk
        export JSONHOME=$WORKING_DIR/JSON
        export
QTSTATE_DIR=$WORKING_DIR/build_dependencies/qtstatemachine-1.1-opensource
}

My qmake files are as follows:

within my user.collections/recipes/dockamp/files I have the follwoing:


TEMPLATE =subdirs
COMFIG   +=ordered
SUBDIRS  = \
    ~/overo-oe/SA/trunk/JSON/trunk \
    ~/overo-oe/SA/trunk/dockamp

This is the first place where I would like to use the environment variables.

Then within the ~/overo-oe/SA/trunk/dockamp/dockamp I have another
dockamp.pro file

TEMPLATE = app
TARGET = dockamp

include( $${WORKING_DIR}/settings.pri )
include( $${WORKING_DIR}/util/util.pri )
include( $${QTSTATE_DIR}/src/qtstatemachine.pri )

DEPENDPATH += \
    . \
    $$(WORKING_DIR)

INCLUDEPATH += \
    . \
    $$(WORKING_DIR)


When qmake gets to compiling my cpp files it fails as it cannot find the
.hpp file which is included, util.pri.

Previously I had hard coded the paths and it was compiling, but now it fails
no matter what I do. We had tried to add a do_compile as follows:

do_configure() {
    oenote Running our qmake work dir is $WORKING_DIR
    WORKING_DIR=${WORKING_DIR} JSONHOME=${JSONHOME}
QTSTATE_DIR=${QTSTATE_DIR} qmake2
~/overo-oe/user.collection/recipes/dockamp/files/dockamp.pro
    oenote Finished our qmake
}

But again we get the same result of .hpp files not found.

If the call to qmake2 can be made to pass the varaiable could you please
show the complete example. I am new to Linux and OE and it gets confusing
pretty quickly.

Thanks,
Stuart


2009/8/19 Koen Kooi <k.kooi at student.utwente.nl>

> On 19-08-09 05:55, Stuart Gray wrote:
>
> > 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.
>
> If you're going to pass variables intended for recipes using
> BB_ENV_EXTRAWHITE your QA dudes will have a nervous breakdown. If you
> want to pass something to a recipe using shell env, do 'export FOO =
> bar' in the recipe.
>
> regards,
>
> Koen
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> gumstix-users mailing list
> gumstix-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>



More information about the Openembedded-devel mailing list