Boost logo

Boost Users :

From: klapshin (klapshin_at_[hidden])
Date: 2003-03-12 11:24:04


Hi,
I am having few problems on CygWin with latest boost CVS snapshot.
I am building project with a number of dlls, and I need a way to run
program easily. I tried hardcode-dll-paths=true, but it does not
seem to work on CygWin, so I decided to use stage rule to copy all
binaries in top/bin folder.

First problem was that CP variable is empty and copying of the dlls
failed. I worked around this one with bjam -sCP=cp.

BTW, was not it supposed to be relinked rather then copied?

Next problem was with exe file. Stage failed with following errors:
-----------------
/cygdrive/c/work/boost1/tools/build/new/stage.jam:97: in
object(stage-exe-gener
tor)@1.run
*** argument error
* rule object(file-target)@174.depends ( d + )
* called with: ( )
* missing argument d
/cygdrive/c/work/boost1/tools/build/new/virtual-target.jam:86:see
definition of
rule 'object(file-target)@174.depends' being called
/cygdrive/c/work/boost1/tools/build/new/generators.jam:638: in
try-one-generato
/cygdrive/c/work/boost1/tools/build/new/generators.jam:885: in
construct-withou
-caching
/cygdrive/c/work/boost1/tools/build/new/generators.jam:937: in
generators.const
uct
/cygdrive/c/work/boost1/tools/build/new/stage.jam:56: in construct
/cygdrive/c/work/boost1/tools/build/new/targets.jam:604: in
object(stage-target
class)@3.generate
/cygdrive/c/work/boost1/tools/build/new/targets.jam:386: in
generate-really
/cygdrive/c/work/boost1/tools/build/new/targets.jam:363: in
object(main-target)
3.generate
/cygdrive/c/work/boost1/tools/build/new/targets.jam:182: in
object(project-targ
t)@1.generate
/cygdrive/c/work/boost1/tools/build/new/build-system.jam:140: in load
/cygdrive/c/work/boost1/tools/build/new/modules.jam:171: in import
/cygdrive/c/work/boost1/tools/build/new/bootstrap.jam:41: in
boost-build
/cygdrive/c/work/pricing/boost-build.jam:13: in module scope
------------------

One more thing. Suppose I want to install all dlls to bin subfolder
of project root. I tried to define path-constant in project-root,
and then in one of subprojects apply stage on target and supply path
from that path-constant. I end up with dll being copied into bin
subfolder of subproject, rather then root. Is it expected behavior?
My workaround was to put all stage rules in root Jamfile.

- Kirill


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net