Christian Damus(deleted)
|
Re: Build in Momentics 6.4.1 vs Command line
|
Christian Damus(deleted)
06/23/2010 8:58 AM
post57651
|
Re: Build in Momentics 6.4.1 vs Command line
Hi, Michael,
See some replies in-line, below.
HTH,
Christian
On 22/06/10 04:31 PM, Michael Pierce wrote:
> I am trying to build a QNX project from the command line instead of the Momemtics IDE to script the build of several c
/c++ together. My projects are using the recursive makefiles and build successfully in the Momentics IDE. However, when
running make from the command line (Windows XP Pro) the extra include paths are not added to the qcc calls. See below:
>
> From command line:
> C:/QNX641/host/win32/x86/usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -O -DNDEBUG -I. -IC:/
Perforce/src/ConfigProc/x86/o -IC:/Perforce/src/ConfigProc/x86 -IC:/Perforce/src/ConfigProc -IC:/QNX641/target/qnx6/usr/
include -DBUILDENV_qss C:/Perforce/src/ConfigProc/ConfigProc.c
>
> In Momentics:
> C:/QNX641/host/win32/x86/usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -O -DNDEBUG -I. -IC:/
Perforce/src/ConfigProc/x86/o -IC:/Perforce/src/ConfigProc/x86 -IC:/Perforce/src/ConfigProc -IC:/Perforce/includes -IC:/
QNX641/target/qnx6/usr/include -DBUILDENV_qss C:/Perforce/src/ConfigProc/CRC.c
>
>
> When run from the command line the extra include path "-IC:/Perforce/includes" is not added. This is defined in the
common.mk as "EXTRA_INCVPATH+=$(PROJECT_ROOT_includes)".
>
You will need to define a make variable for this yourself, as you don't
have the IDE in this scenario to inject it for you. You can do this via
make PROJECT_ROOT_includes=C:/Perforce/includes all
or, if you have a number of such PROJECT_ROOT_xyz variables, you can put
them in a makefile (say, "C:/DOCUME~1/mpierce/projectroots.mk") and do
make MAKEFILES=C:/DOCUME~1/projectroots.mk all
> I was also curious about the content of the autogenerated file called out in the make command: make -k CPULIST=x86
EXCLUDE_VARIANTLIST=be/g/ all --file=C:/DOCUME~1/mpierce/LOCALS~1/Temp/QMakefile127723839573959888.tmp
>
Heh heh. As it happens, this temporary makefile is responsible for
bootstrapping the project build by, among other things, defining the
PROJECT_ROOT_xyz variables required by the project according to its
inter-project dependencies.
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post57567
>
>
--
*Christian W. Damus*
Software Developer, IDE Team
QNX Software Systems <http://www.qnx.com/>
|
|
|