tag:help.appveyor.com,2012-11-13:/discussions/questions/2794-vs2015-x64-native-tools-command-promptAppVeyor: Discussion 2018-10-19T08:18:06Ztag:help.appveyor.com,2012-11-13:Comment/412779482016-11-22T05:23:22Z2016-11-22T05:23:24ZVS2015 x64 Native Tools Command Prompt<div><p>From what I can gather AppVeyor refuses to acknowledge the
vcvarsall.bat environmental setup.</p>
<p>If you attempt to create the environment the whole setup craps
itself.<br>
... set LIB=...;%LIB%<br>
set UseEnv=true<br>
...</p>
<p>Well after 35 odd build attempts and a 7 hour day, I need a
drink!</p></div>Ben Crowhursttag:help.appveyor.com,2012-11-13:Comment/412779482016-11-22T22:45:03Z2016-11-22T22:45:03ZVS2015 x64 Native Tools Command Prompt<div><p>Hi Ben, hope you feel well after yesterday :)</p>
<p>Could you please provide me steps how to do a simple problem
repro? Am I understand correctly, that you managed to execute
<code>vcvarsall.bat amd64</code> without errors. But after it some
environment variables are not changed as expected?</p>
<p>Thank you,<br>
Ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/412779482016-11-22T22:53:36Z2016-11-23T00:00:24ZVS2015 x64 Native Tools Command Prompt<div><p>Build steps on Windows are as follows:</p>
<p>"C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\vcvarsall.bat" amd64</p>
<p>git clone --recursive <a href="https://github.com/corvusoft/restbed.git">https://github.com/corvusoft/restbed.git</a></p>
<p>cd restbed\dependency\openssl<br>
perl Configure VC-WIN64A<br>
ms\do_win64a<br>
nmake -f ms\ntdll.mak<br>
nmake -f ms\ntdll.mak test<br>
set PATH=restbed\dependency\openssl\out32dll;%PATH%</p>
<p>mkdir restbed/build<br>
cd restbed/build<br>
cmake -G "Visual Studio 14 2015 Win64" -DBUILD_EXAMPLES=YES
-DBUILD_TESTS=YES ..<br>
cmake --build . --target ALL_BUILD --config Release<br>
ctest</p>
<p>The errors I see from AppVeyor have all been expressed locally
when the Native Tools environment is not setup correctly. That is
to state, unless I open the the command prompt via</p>
<p>%comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\vcvarsall.bat"" amd64</p>
<p>The build will not succeed. Either failing when building OpenSSL
or when linking the OpenSSL dependency with the primary project;
depending on the attempted AppVeyor setup.</p></div>Ben Crowhursttag:help.appveyor.com,2012-11-13:Comment/412779482016-11-24T23:45:56Z2016-11-25T08:31:33ZVS2015 x64 Native Tools Command Prompt<div><p>Yeah I see, I cloned your repo and made a lot of attempts to
build using YAML you provided originally, with different
modifications. But the only success I got when I connected to build
worker with RDP and followed stamps manually from command prompt
started as <code>%comspec% /k ""C:\Program Files (x86)\Microsoft
Visual Studio 14.0\VC\vcvarsall.bat"" amd64</code>.</p>
<p>There is some difference between command line where you run
<code>"C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\vcvarsall.bat" amd64</code> and new command line started
this way. Will look more later.</p>
<p>--ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/412779482016-12-05T21:16:13Z2016-12-05T21:16:14ZVS2015 x64 Native Tools Command Prompt<div><p>ilya,</p>
<p>Is this a lost cause? Really not looking forward to keeping
Jenkins :/</p>
<p>Regards,<br>
Ben Crowhurst</p></div>Ben Crowhursttag:help.appveyor.com,2012-11-13:Comment/412779482016-12-05T21:20:32Z2016-12-05T21:20:32ZVS2015 x64 Native Tools Command Prompt<div><p>Sorry, let us do another investigation push and update in one
day.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/412779482016-12-05T21:22:23Z2016-12-05T21:22:23ZVS2015 x64 Native Tools Command Prompt<div><p>Sounds good, thanks.</p></div>Ben Crowhursttag:help.appveyor.com,2012-11-13:Comment/412779482016-12-06T21:28:02Z2016-12-06T21:28:02ZVS2015 x64 Native Tools Command Prompt<div><p>Hi Ben, we are still debugging. Meanwhile is it possible to make
a smaller repro of this issue? Each attempt to verify next theory
takes too long now...</p>
<p>--ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/412779482016-12-06T21:55:20Z2016-12-06T21:55:21ZVS2015 x64 Native Tools Command Prompt<div><p>ilya,</p>
<p>I've disabled all the tests and removed all but one example.
Still required to build OpenSSL but has helped to bring the build
time down. You can find the updated repo here <a href="https://ci.appveyor.com/project/ben-crowhurst/restbed-abebc">https://ci.appveyor.com/project/ben-crowhurst/restbed-abebc</a></p></div>Ben Crowhursttag:help.appveyor.com,2012-11-13:Comment/412779482016-12-28T21:24:41Z2016-12-28T21:24:41ZVS2015 x64 Native Tools Command Prompt<div><p>Any traction here? Looking to determine our options for rolling
out across the company early next year.</p></div>Ben Crowhursttag:help.appveyor.com,2012-11-13:Comment/412779482017-04-24T21:28:43Z2017-04-24T21:28:43ZVS2015 x64 Native Tools Command Prompt<div><p>Try to do it like that:</p>
<ul>
<li>call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64</li>
</ul>
<p>Alternatively:<br>
- %COMSPEC% /E:ON /V:ON /K "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64</p>
<p>One of those should work.</p></div>Maik Riechert