[Scons-users] Can't install to a parent directory

William Blevins wblevins001 at gmail.com
Fri May 29 13:05:37 EDT 2015


It probably has to do with how you are calling scons.  The default target
is '.' So you are only requesting targets built in the cwd and down the
filesystem; thus, '..' and further up the tree are not built.

V/R,
William
On May 29, 2015 11:03 AM, "Wallet, Brad C." <bwallet at ou.edu> wrote:

> I'm trying to do a build and install the target to a parent directory, but
> nothing I do seems to work.
>
> The following creates my target in the current directory:
>
> env = Environment(CPPPATH=".;../../../include/fox",
> CPPDEFINES=['f2cFortran'], CCFLAGS=buildFlags, TOOLS=['default'])
>
> target = env.StaticLibrary(target="somelib", source=["source1.cpp",
> "source2.cpp"])
>
> The following creates it in a directory bin:
>
> env = Environment(CPPPATH=".;../../../include/fox",
> CPPDEFINES=['f2cFortran'], CCFLAGS=buildFlags, TOOLS=['default'])
>
> target = env.StaticLibrary(target="bin/somelib", source=["source1.cpp",
> "source2.cpp"])
>
> But, the follow creates obj files but no target:
>
> env = Environment(CPPPATH=".;../../../include/fox",
> CPPDEFINES=['f2cFortran'], CCFLAGS=buildFlags, TOOLS=['default'])
>
> target = env.StaticLibrary(target="../somelib", source=["source1.cpp",
> "source2.cpp"])
>
> And even this creates no target:
>
> env = Environment(CPPPATH=".;../../../include/fox",
> CPPDEFINES=['f2cFortran'], CCFLAGS=buildFlags, TOOLS=['default'])
>
> target = env.StaticLibrary(target="somelib", source=["source1.cpp",
> "source2.cpp"])
>
> env.Install("..", target)
>
> This is on a Windows system.
>
> Can someone tell me what is going wrong?
>
> Thanks,
> Brad
>
>
> ******************************************************************************************************************
> Brad Wallet, Ph.D.
> Director
> Crustal Imaging Facility
> ConocoPhillips School of Geology and Geophysics
> University of Oklahoma
> bwallet at ou.edu
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150529/1287d13b/attachment.html>


More information about the Scons-users mailing list