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

Bill Deegan bill at baddogconsulting.com
Mon Apr 6 16:49:36 EDT 2015


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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150406/44d52d77/attachment.html>


More information about the Scons-users mailing list