Boost logo

Boost-Build :

From: Alain (js_at_[hidden])
Date: 2004-12-21 03:37:32


Hello,

I am trying to use 'usage-requirements', but I seem to be having some
problems:

The 3 attached Jamfiles are located in this directory tree:

top/
|
+-- Jamfile (has all the 'use-project' statements)
+-- project-root.jam (empty)
|
`-- generic/
|
+-- apps/
. |
. +-- rf /
. |
. + Jamfile (project /app-rf)
. `-- cfg.c

+-- libs/
. |
. +-- crc/
. |
. + Jamfile (project /lib-crc)
. `-- crc.h

In the '/app-rf' Jamfile, when I comment out the line:

# <include>../../libs/crc

to try to use the statement in '/lib-crc' Jamfile:

project /lib-crc : usage-requirements <include>. ;

I get the following errors:
==================================================================
~/code/tst/Portec/RF-Link-Eval/code/generic/apps/rf>bjam -d2 cfg
...found 14 targets...
...updating 2 targets...
icc.compile.c ../../../generic/apps/rf/bin/icc/debug/link-static/cfg.o
../../../generic/apps/rf/bin/icc/debug/link-static/cfg.lis

C:/icc/bin/icc12w -e -Wf-intenum -Wf-cpdoff
-I"../../../generic/hc12_e128" -I"../../../generic/libs/iic/hc12_E128"
-I"../../../generic/libs/sio" -I"../../../generic/libs/sio/hc12_E128"
-I"../../../generic/libs/x24" -I"c:/icc/include" -c -o "b
in\icc\debug\link-static\cfg.o" "cfg.c"

!E cfg.c(36): Could not find include file "crc.h"
!E cfg.c(38): Could not find include file "nvm.h"
...failed icc.compile.c
../../../generic/apps/rf/bin/icc/debug/link-static/cfg.o
../../../generic/apps/rf/bin/icc/debug/link
-static/cfg.lis...
...failed updating 2 targets...
~/code/tst/Portec/RF-Link-Eval/code/generic/apps/rf>
=====================================================================

which tells me that the <inlcude>. (which should be translated to
<include>../../libs/crc) was not passed to the compiler as:

-I"../../libs/crc"

Any ideas why?
Thanks!
Alain.

 --------------000905060404090301040509 Content-Type: text/plain;
name="Jamfile"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Jamfile"

#import toolset : using ;
#using icc ;

import icc ;
project

: requirements <toolset>icc <include>c:/icc/include <link>static

;

use-project /lib-bqueue : generic/libs/bqueue ;
use-project /lib-crc : generic/libs/crc ;
use-project /lib-iic_hc12-e128 : generic/libs/iic/hc12_e128 ;
use-project /lib-nvm : generic/libs/nvm ;
use-project /lib-sio_hc12-e128 : generic/libs/sio/hc12_e128 ;
use-project /lib-stopwatch : generic/libs/stopwatch ;
use-project /lib-x24 : generic/libs/x24 ;

build-project generic ; --------------000905060404090301040509 Content-Type: text/plain;
name="Jamfile"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Jamfile"

#============================================================================#
# #
# Boost Build v2 Makefile to RF-Link-Evaluation #
# #
# ( Test Target : 68HCS912E128 ) #
# #
#============================================================================#

project /app-rf

: requirements

<include>../../libs/sio
<include>../../libs/sio/hc12_E128

<include>../../libs/iic/hc12_E128

<include>../../hc12_e128

<include>../../libs/x24
# <include>../../libs/stopwatch

# <include>../../libs/nvm
# <include>../../libs/crc
# <search>c:/icc/lib
;

#=========================================================#
# !!! I M P O R T A N T !!!! #
# #
# 'vectors.c' must be the first object module in the list #
# for the 'main' executable to ensure correct vector #
# table enries are generated by the linker. #
#=========================================================#

### Target Binary File ###

obj cfg : cfg.c ;

exe main : # Sources

vectors.c
reset.c
hook.c
cpu_stop.c
../../hc12_e128/sys_timer.c
main.c
cfg
globals.c
regexp.c
rf_sym.c

# Local libraries

task
cmd

# Public libraries

/lib-bqueue//bqueue
/lib-crc//crc
/lib-iic_hc12-e128//iic
/lib-nvm//nvm
/lib-sio_hc12-e128//sio
/lib-stopwatch//stopwatch
/lib-x24//x24

# Remote libraries

os
c12
c12p

: # Requirements

<define>USE_WAI_OPCODE=0

: # Default Build
;

lib os : : <name>os ;
lib c12 : : <name>c12 ;
lib c12p : : <name>c12p ;

### Application Specific Files ###

lib task : task_vars.c
task_console.c
task_rf_mobile.c
task_rf_station.c

;

lib cmd : con_cmd_vars.c
con_cmd_interpreter.c
con_cmd_parsers.c
con_cmd_misc.c
con_cmd_load.c
con_cmd_save.c
con_cmd_reset.c
con_cmd_edit.c
con_cmd_ping.c
con_cmd_help.c
rf_cmd_cfg.c
rf_cmd_ping.c
rf_cmd_misc.c
rf_cmd_resp_ping.c

;

 --------------000905060404090301040509 Content-Type: text/plain;
name="Jamfile"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Jamfile"

project /lib-crc

: usage-requirements <include>.

;

lib crc : crc_dow8.c ;

 --------------000905060404090301040509--


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk