ninja path to msvc

115 views
Skip to first unread message

sha...@infograph.com

unread,
Oct 30, 2017, 1:50:52 PM10/30/17
to skia-discuss
I am trying to build static, 32bit versions of debug and release.  On Windows, using command prompt, the commands I issue are:

bin\gn gen out\Release_Static\Win32 --args="target_os=\"win\" is_debug=false host_cpu=\"x86\""
bin\gn gen out\Debug_Static\Win32 --args="target_os=\"win\" host_cpu=\"x86\""

ninja -C out\Release_Static\Win32
ninja -C out\Debug_Static\Win32

The ninja commands fail with this:

ninja: Entering directory `out\Release_Static\Win32'
[3/1989] compile ../../../bench/BlurRectBench.cpp
FAILED: obj/bench/bench.BlurRectBench.obj
cmd /c C:/Program Files (x86)/Microsoft Visual Studio 14.0/win_sdk/bin/SetEnv.cmd /x86 &&   "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64_x86/cl.exe" /nologo /showIncludes /FC @obj/bench/bench.BlurRectBench.obj.rsp /c ../../../bench/BlurRectBench.cpp /Foobj/bench/bench.BlurRectBench.obj /Fd"obj/bench_c.pdb"
'C:/Program' is not recognized as an internal or external command,
operable program or batch file.

So, it looks like it is trying to reference SetEnv.cmd using a path that doesn't have double-quotes around it.  
What did I do wrong?

Mike Klein

unread,
Oct 30, 2017, 2:05:38 PM10/30/17
to skia-d...@googlegroups.com
Hmm.  I don't think we support building for x86 with MSVC 2015.  If you use MSVC 2017, it should print out some instructions to set up your environment for 32-bit builds.

I also suspect you want to be setting target_cpu instead of host_cpu?  I've got to imagine no one has ever tried to build from an x86 host, and I'd be very surprised if that worked.

--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/skia-discuss.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages