[Scons-users] Problem with include path (CPPPATH)

Dirk Bächle tshortik at gmx.de
Mon Jan 20 17:08:40 EST 2014


Hi,

On 20.01.2014 15:25, delbert dev wrote:

> In a scons script in:

>

> *~/home/user/samples/test001*

>

> I have:

>

> env.Replace(CPPPATH = ['/home/user/test/gtest-1.7.0'])

> buildGtest = env.Library('/home/user/test/gtest-1.7.0/libs/libgtest',

> '/home/user/test/gtest-1.7.0/src/gtest-all.cc')

> Default(env.Alias('gtest', buildGtest))

>

>


can you please tell us why you have the SConstruct in
"/home/user/samples/test001", but are trying to build from files in
"/home/user/test/gtest-1.7.0/..."?
How exactly do you call the "scons" command, and from which directory
exactly (what's your current working dir)?

The standard way of setting up build scripts for SCons is to put them
next to the sources, with one top-level SConstruct at the very top. This
ensures that SCons "sees" all files underneath the top-level dir, and
pretty much does the right thing in most cases.
Please try to correct your setup first, this will also make debugging
for us easier if your problems should persist.

Thanks a lot in advance.

Best regards,

Dirk


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140120/49d2e9e3/attachment.html


More information about the Scons-users mailing list