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

delbert dev delbertum at gmail.com
Mon Jan 20 18:31:37 EST 2014


Yes I have left out some details with regard to how subscripts are
defined/used in the "parent" project hoping that those details were
irrelevant. I will return with a more concise example (but for now the
problem is gone when I simply use 'thirdparty' instead of '3rdparty' in the
path)


On Mon, Jan 20, 2014 at 11:08 PM, Dirk Bächle <tshortik at gmx.de> wrote:


> 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

>

>

>

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>

>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140121/1d655c32/attachment-0001.htm


More information about the Scons-users mailing list