[Scons-users] Windows Subsystem for Linux (WSL) with SCons for cross-compiling

Mats Wichmann mats at wichmann.us
Thu Jun 20 11:18:20 EDT 2019


On 6/20/19 8:56 AM, Bill Deegan wrote:
> I"m going to agree with Jason.
...
> SCons interrogates the system it's on to decide about initializing
> various tools. To get scons to think it's on a linux system when it does
> such on a windows system, but only for one Environment() would be likely
> way more work than it's worth.
> 
> BTW - Mats - I wouldn't consider this really cross building as it's
> really building on linux from windows.  And it's not that bad to setup. 
> Of course pull request to make it easier to cross compile and/or
> docs/wiki pages always welcome.. ;)

Well, it kinda is:  scons running in the windows context to run commands
which are running in the linux context.  But yeah, it's not the
classical case, which I don't know how to fix or I would have done it
for IoTivity (of course I knew much much less about scons then!).

But I think this was really the crux of it: if it's Windows scons,
everything it finds is going to be in the Windows filesystem, then you
try to run actions which are going to need tools in the Linux container
- and last I knew Microsoft still said there wasn't support for Windows
commands looking at files inside the Linux environment (although it
works the other direction).

So scons will have detected all the wrong stuff.



More information about the Scons-users mailing list