Christian Damus(deleted)
|
Re: command-line build using mkbuild
|
Christian Damus(deleted)
08/12/2011 10:26 AM
post88070
|
Re: command-line build using mkbuild
Hi, Martin,
How are you setting up the environment in your build? The environment should be inherited by the make from the IDE,
which inherits it from the mkbuild.bat script, which inherits it from your build script.
For that matter, how are you setting this environment variable for interactive builds in the IDE?
Cheers,
Christian
On 2011-08-12, at 8:31 AM, Martin Duvanel wrote:
> Hello,
>
> I am facing an issue on my machine when building QNX projects from the command line.
>
> Here is the context: I build several binaries inside a QNX container project, all the projects inside the container
are QNX C++ projects. Inside several common.mk Makefiles I use an environment variable to locate includes from 3rd party
libraries:
>
> EXTRA_INCVPATH+=$(PROJECT_ROOT)/../../tests \
> $(3rd_PARTY_DIR)/xsde-3.2.0-i686-windows/libxsde
>
> The compilation works perfectly inside the IDE (Windows XP or Windows 7), but as soon as I launch the compilation from
the command line the $(3rd_PARTY_DIR) environment variable is not replaced correctly, as can be seen in this extract of
the compiler command output:
>
> -ID:/svn_dev/my_project/Prj/QNX/../../tests
> -I/xsde-3.2.0-i686-windows/libxsde
>
> Here is the command line that is used:
>
> mkbuild.bat -ws D:\svn_dev\ -projects my_project -target Build-Release
>
> Is there something special to do so that environment variables are visible from the QNX Makefiles when using mkbuild.
bat?
>
> Thanks for your help!
> Martin
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post88059
>
>
|
|
|
Elena Laskavaia
|
Re: command-line build using mkbuild
|
Elena Laskavaia
08/12/2011 10:27 AM
post88071
|
Re: command-line build using mkbuild
I don't think it is environment variable, env variables cannot start with digit. Is this IDE build variable?
On 08/12/2011 08:31 AM, Martin Duvanel wrote:
> Hello,
>
> I am facing an issue on my machine when building QNX projects from the command line.
>
> Here is the context: I build several binaries inside a QNX container project, all the projects inside the container
are QNX C++ projects. Inside several common.mk Makefiles I use an environment variable to locate includes from 3rd party
libraries:
>
> EXTRA_INCVPATH+=$(PROJECT_ROOT)/../../tests \
> $(3rd_PARTY_DIR)/xsde-3.2.0-i686-windows/libxsde
>
> The compilation works perfectly inside the IDE (Windows XP or Windows 7), but as soon as I launch the compilation from
the command line the $(3rd_PARTY_DIR) environment variable is not replaced correctly, as can be seen in this extract of
the compiler command output:
>
> -ID:/svn_dev/my_project/Prj/QNX/../../tests
> -I/xsde-3.2.0-i686-windows/libxsde
>
> Here is the command line that is used:
>
> mkbuild.bat -ws D:\svn_dev\ -projects my_project -target Build-Release
>
> Is there something special to do so that environment variables are visible from the QNX Makefiles when using mkbuild.
bat?
>
> Thanks for your help!
> Martin
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post88059
>
|
|
|