On Tue, Oct 2, 2012 at 5:30 AM, Arindam Mukherjee <span dir="ltr"><<a href="mailto:arindam.mukerjee@gmail.com" target="_blank">arindam.mukerjee@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, Oct 2, 2012 at 2:48 AM, Xavier Besseron <<a href="mailto:xavier.besseron@uni.lu">xavier.besseron@uni.lu</a>> wrote:<br>
> Hi,<br>
><br>
> I was able to build win64 executable on my 32-bit Windows.<br>
><br>
> First, I had to make the "full installation" of VS 2008 (the "default<br>
> installation" did not provide the win64 compiler in my case). Then, I<br>
> had to select the "Visual Studio 9 2008 Win64" generator in CMake. And<br>
> the project built correctly.<br>
><br>
> However, it is not possible to execute the generated binaries on a<br>
> 32-bit Windows.<br>
><br>
><br>
<br>
</div>Thanks! That works perfectly. From a driver batch script, I now use:<br>
<br>
cmake -G "Visual Studio 9 2008 Win32" src_dir<br>
<br>
and:<br>
<br>
cmake -G "Visual Studio 9 2008 Win64" src_dir<br>
<br>
This, I guess, should work even if I move to a 64-bit build machine.<br>
<br>
Thanks again.<br>
<span class="HOEnZb"><font color="#888888">Arindam<br>
</font></span><div class="HOEnZb"><div class="h5">--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br><div><br></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">cmake -G "Visual Studio 9 2008 Win32" src_dir</span></div>
<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">will not work. There is no such generator. Leave out the " Win32" for this case... it is implied.</span></div>
<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
</span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">HTH,</span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">David</span></div>
<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></span></div>