[Qt-interest] environment variable and qmake issue

Rohan McGovern rohan.mcgovern at nokia.com
Mon Mar 16 00:11:04 CET 2009


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



More information about the Qt-interest-old mailing list