[Scons-users] Adding Libs and Include to a build

Owen Alanzo Hogarth gurenchan at gmail.com
Tue Apr 7 10:47:56 EDT 2015


Hi guys

Dirk's comment helped me I had to put root-sdk/platform1/include and this
solved the problem.

Best,
Owen

On Tue, Apr 7, 2015 at 4:49 AM, Bill Deegan <bill at baddogconsulting.com>
wrote:

> Owen,
>
> I think you'll need to add 'root-sdk/platform1' to your includePaths if
> you want SCons (or any build system) to find 'folder/header2.h'.
>
> -Bill
>
> On Mon, Apr 6, 2015 at 4:28 PM, Owen Alanzo Hogarth <gurenchan at gmail.com>
> wrote:
>
>> I have a c++ project that I would like to add build on.
>>
>> It's in a folder structure like this
>>
>> root-sdk/
>> --platform1/
>> ----include/
>> --------folder/
>> ------------[list of header files]
>> ----lib/
>> --------c++/
>> ----------arm/
>> ------------lib.a
>> ----------arm-v7/
>> ------------lib.a
>>
>> now I setup my env like this
>>
>> libPaths = ["root-sdk/platform1/lib"]
>> includePaths = ["root-sdk/platform1/include/folder"]
>>
>> env.Append(LIBPATH = libPaths, CPPPATH = includePaths)
>> env.add_source_files(env.modules_sources,"*.cpp")
>>
>> I do not get a link error but if I try to do #include "folder/header.h"
>>
>> I get file not found linking error BUT if I do #include header.h This
>> links correctly but then that header.h file will link to another file at a
>> location like #include "folder/header2.h"
>>
>> If I could just get scons to find the files at #include "folder/____.h"
>> things would work out just fine.
>> Is it possible to do that?
>>
>> Best,
>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>>
>
> _______________________________________________
> 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/20150407/40abd172/attachment.html>


More information about the Scons-users mailing list