[Scons-users] Can't install to a parent directory
Wallet, Brad C.
bwallet at ou.edu
Fri May 29 10:47:08 EDT 2015
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
More information about the Scons-users
mailing list