[Qt-interest] Fwd: environment variable and qmake issue
ami guru
dosto.walla at gmail.com
Mon Mar 16 13:21:17 CET 2009
Thanks Rohan,
It worked.
I am stuck with these issues most of the time. And i did not understand
the point point that you
have made :
"Without `export', environment variables you set aren't passed into
child processes."
Any reference would be of great help even though it would be a off topic
over here.
Regards
Sajjad
---------- Forwarded message ----------
From: Rohan McGovern <rohan.mcgovern at nokia.com>
Date: Mon, Mar 16, 2009 at 12:11 AM
Subject: Re: [Qt-interest] environment variable and qmake issue
To: qt-interest at trolltech.com
Cc: ext ami guru <dosto.walla at gmail.com>
On Monday 16 March 2009, ext ami guru wrote:
> Hello forum,
>
>
> I am trying to compile libraries using qmake.
>
>
> CPPLIBS is set in the environment variable and qmake is supposed
> to find that.
>
> That is how it was set:
>
>
> *********************'
> #Qt example related path
> CPPLIBS=/home/sajjad/DesignPattern/projects/libs
>
> export
> PATH=$PATH:$ACG_PATH:$H3D_PATH:$H3DUTIL_INCLUDE_DIR:$HAPI_INCLUDE
>_DIR:$WM4_PATH:$OPENSCENEGRAPH_PATH:$OSG_FILE_PATH:$FTGL_PATH:$CPP
>LIBS:
>
> *******************'
>
>
> And the .pro file is as follows:
>
> *******************'
> CONFIG += debug
>
> CPPLIBS=$$(CPPLIBS)
> isEmpty( CPPLIBS ) {
> error("You need to define CPPLIBS environment variable.")
> }
>
>
> *******************
>
>
> And i am getting the error
>
It works for me. Maybe you needed to do `export CPPLIBS=...'
Without `export', environment variables you set aren't passed into
child processes.
--
Rohan McGovern
Qt Software, Nokia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090316/f5243e85/attachment.html
More information about the Qt-interest-old
mailing list