[Scons-users] Scons does not knkow how to Make File Target after adding Variant Build

Bill Deegan bill at baddogconsulting.com
Tue Jul 14 16:58:57 EDT 2015


Malek,

That's only going to list files under the current directory.
If you want see from a parent dir or another dir, you need to add that to
the command line as an argument.

-Bill

On Tue, Jul 14, 2015 at 4:53 PM, Malek Musleh <malek.musleh at gmail.com>
wrote:

> scons --tree=all lists the header files, but not the cpp or SConscript
> files (this is true even for a clean build).
>
>     +-export/include/zro2_client/Exception.h
>     | +-tools/zro2_client/Exception.h
>     +-export/include/zro2_client/Logger.h
>     | +-tools/zro2_client/Logger.h
>     +-export/include/zro2_client/LoggerBuilder.h
>     | +-tools/zro2_client/LoggerBuilder.h
>     +-export/include/zro2_client/LoggerStream.h
>     | +-tools/zro2_client/LoggerStream.h
>     +-export/include/zro2_client/MessageTag.h
>     | +-tools/zro2_client/MessageTag.h
>     +-export/include/zro2_client/MessageType.h
>     | +-tools/zro2_client/MessageType.h
>     +-export/include/zro2_client/zro2_client.h
>       +-tools/zro2_client/zro2_client.h
>
> On Tue, Jul 14, 2015 at 11:30 AM, Bill Deegan <bill at baddogconsulting.com>
> wrote:
> > Probably scons --tree=all | grep SConscript ?
> >
> > On Tue, Jul 14, 2015 at 1:57 PM, Malek Musleh <malek.musleh at gmail.com>
> > wrote:
> >>
> >> I think I might have found the problem: There are a bunch of
> >> side-projects in the same build directory whose SConscript files need
> >> to have variant_dir added.
> >>
> >> Is there a way to print out the list of SConscript files read just
> >> before scons starts building?
> >>
> >>
> >>
> >> On Tue, Jul 14, 2015 at 10:15 AM, Bill Deegan <
> bill at baddogconsulting.com>
> >> wrote:
> >> > Malek,
> >> >
> >> > Any chance you can make a small dummy build which demonstrates the
> >> > problem?
> >> >
> >> > -Bill
> >> >
> >> > On Tue, Jul 14, 2015 at 12:48 PM, Malek Musleh <
> malek.musleh at gmail.com>
> >> > wrote:
> >> >>
> >> >> Hello,
> >> >>
> >> >> I am trying to make scons build my project + object files into a
> >> >> separate build directory instead of doing it in the source
> >> >> directories.
> >> >>
> >> >> To do this, I made the following changes to the SConstruct/SConscript
> >> >> files in the project:
> >> >>
> >> >> I included the "variant_dir" whereevere the SConscript files were
> being
> >> >> sourced.
> >> >> I also added duplicate=0, and set an environment option where
> >> >> duplicate=0 indicates soft-copy link of .cpp files instead of
> >> >> duplicating the source files in the build.
> >> >>
> >> >>
> >> >> SConscript('archlib/SConscript', variant_dir = joinpath(build_roo
> >> >> t, 'archlib'), duplicate=0)
> >> >>
> >> >> Doing so, makes it partially works: as in the build directory is
> >> >> created, and I see the source files being soft-linked, but I get the
> >> >> custom error saying:
> >> >>
> >> >> scons: *** Do not know how to make File target `'.  Stop.
> >> >>
> >> >> (I have removed the binary name from the above output, but the File
> >> >> target it says it cannot build is the project binary. From my
> >> >> experience, this is because of some bad build rules (typo or
> >> >> something) but I don't see that being the case here.
> >> >>
> >> >> Reading online, doing what I did should be enough for building into a
> >> >> separate build directory, so I am not sure what is causing the error.
> >> >> Is there something else I am missing?
> >> >>
> >> >> Malek
> >> >> _______________________________________________
> >> >> 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
> >> >
> >> _______________________________________________
> >> 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
> >
> _______________________________________________
> 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/20150714/f9077c51/attachment.html>


More information about the Scons-users mailing list