Boost C++ Libraries: Ticket #12862: build boost with Visual Studio 2017 RC without sdk 10 https://svn.boost.org/trac10/ticket/12862 <p> I have installed Visual Studio 2017 with 7.1SDK </p> <p> After run b2 i got error "cl" not found. Many times! If i run b2 with Visual Studio CMD i got error: </p> <pre class="wiki">********************************************************************** ** Visual Studio 2017 RC Developer Command Prompt v15.0.26206.0 ** Copyright (c) 2016 Microsoft Corporation ********************************************************************** C:\Program Files (x86)\Microsoft Visual Studio\2017\Community&gt;cd c:\boost c:\BOOST&gt;b2 C:/BOOST/tools/build/src/tools\msvc.jam:834: in generate-setup-cmd *** argument error * rule maybe-rewrite-setup ( toolset : setup-script : setup-options : version : rewrite-setup ? ) * called with: ( msvc : : : default : ) * missing argument setup-script C:/BOOST/tools/build/src/tools\msvc.jam:746:see definition of rule 'maybe-rewrit e-setup' being called C:/BOOST/tools/build/src/tools\msvc.jam:1076: in configure-really C:/BOOST/tools/build/src/tools\msvc.jam:201: in configure C:/BOOST/tools/build/src/tools\msvc.jam:153: in msvc.init C:/BOOST/tools/build/src/build\toolset.jam:43: in toolset.using C:/BOOST/tools/build/src/build\project.jam:1052: in using project-config.jam:3: in modules.load C:/BOOST/tools/build/src\build-system.jam:249: in load-config C:/BOOST/tools/build/src\build-system.jam:412: in load-configuration-files C:/BOOST/tools/build/src\build-system.jam:524: in load C:\BOOST\tools\build\src/kernel\modules.jam:295: in import C:\BOOST\tools\build\src/kernel/bootstrap.jam:139: in boost-build C:\BOOST\boost-build.jam:17: in module scope c:\BOOST&gt; </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12862 Trac 1.4.3 anonymous Thu, 23 Feb 2017 04:45:25 GMT <link>https://svn.boost.org/trac10/ticket/12862#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12862#comment:1</guid> <description> <p> Need very fast help please !! sorry bad english))) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 24 Feb 2017 22:20:45 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12862#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12862#comment:2</guid> <description> <p> b2 doesn't seem to be able to find cl.exe for 2017 on its own. You can provide the path by updating the project-config.jam to include: </p> <pre class="wiki">using msvc : : &lt;path to x86 or x64 cl.exe&gt; </pre><p> This should be something like "c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.24911\bin\HostX64\x64\cl.exe" </p> </description> <category>Ticket</category> </item> <item> <author>cingelmarekmt@…</author> <pubDate>Wed, 29 Mar 2017 17:45:50 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12862#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12862#comment:3</guid> <description> <p> Hello, my problem :( </p> <p> Run in Developer command prompt VS 2017 </p> <p> b2 -a -q -d1 -j8 address-model=64 toolset=msvc-14.1 --build-type=complete </p> <p> project-config.jam ... import option ; using msvc : 14.1 : C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\cl.exe; option.set keep-going : false; ... </p> <p> Log: c:\sdk\boost_1_63_0&gt;b2 -a -q -d1 -j8 address-model=64 toolset=msvc-14.1 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\cl.exe --build-type=complete notice: could not find main target C:\Program notice: assuming it is a name of file to create. notice: could not find main target Files notice: assuming it is a name of file to create. notice: could not find main target (x86)\Microsoft notice: assuming it is a name of file to create. notice: could not find main target Visual notice: assuming it is a name of file to create. notice: could not find main target Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\cl.exe notice: assuming it is a name of file to create. Performing configuration checks </p> <ul><li>32-bit : yes (cached) </li><li>arm : no (cached) </li><li>mips1 : no (cached) </li><li>power : no (cached) </li><li>sparc : no (cached) </li><li>x86 : yes (cached) </li></ul><p> Still not work, please give me a hint (- 64-bit not in a log). </p> </description> <category>Ticket</category> </item> <item> <author>Torsten@…</author> <pubDate>Thu, 30 Mar 2017 18:16:24 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12862#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12862#comment:4</guid> <description> <p> I have the very same problem here. I can run cl (or cl.exe) from the Developer Command Prompt for VS 2017. Using the suggested workaround and adding the full path (in quotes) to cl.exe (using "where cl.exe") in the project-config.jam, seems to fix the problem. </p> </description> <category>Ticket</category> </item> <item> <author>cingelmarekmt@…</author> <pubDate>Sun, 02 Apr 2017 10:24:18 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12862#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12862#comment:5</guid> <description> <p> I must open in "x64 Native Tools Command Prompt for VS 2017", now working OK. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 12 Apr 2017 22:02:10 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12862#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12862#comment:6</guid> <description> <p> Some problem here, even with the "x64 Native Tools Command Prompt for VS 2017" command prompt. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 13 Apr 2017 03:37:27 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12862#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12862#comment:7</guid> <description> <p> I had the same problem. I added the line </p> <pre class="wiki">using msvc : 14.1 : "E:\Program Files (x86)\Visual Studio 2017\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\cl.exe" ; </pre><p> to my project-config.jam and ran </p> <pre class="wiki">./b2 -j8 address-model=64 toolset=msvc-14.1 </pre><p> from the x64 Native Tools Command Prompt and I'm compiling away. </p> </description> <category>Ticket</category> </item> </channel> </rss>