<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<span>
<div style="font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size-adjust: none; font-stretch: 100%; margin-bottom: 0px; margin-top: 0px">
Thanks for the reply.</div>
<span style="display: inline !important; color: rgb(33, 33, 33); font-family: "Segoe UI","Segoe UI Web (West European)","Segoe UI",-apple-system,BlinkMacSystemFont,"Roboto","Helvetica Neue",sans-serif; font-size: 15px; font-size-adjust: none; font-stretch: 100%"></span>
<div style="font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size-adjust: none; font-stretch: 100%; margin-bottom: 0px; margin-top: 0px">
<br>
</div>
<span style="display: inline !important; color: rgb(33, 33, 33); font-family: "Segoe UI","Segoe UI Web (West European)","Segoe UI",-apple-system,BlinkMacSystemFont,"Roboto","Helvetica Neue",sans-serif; font-size: 15px; font-size-adjust: none; font-stretch: 100%"></span>
<div style="font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size-adjust: none; font-stretch: 100%; margin-bottom: 0px; margin-top: 0px">
The problem may really have been that I was trying to use C:/Program Files/LLVM/install_x64 as the value for the CMAKE_INSTALL_PREFIX macro.  I do have LLD and Clang in C:/llvm/tools/lld and C:/llvm/tools/clang respectively.  I did try to use the "Visual Studio
 15 2017 Win64" as the generator, but I got a warning about complications that may arise if I were to do that.  </div>
<span style="display: inline !important; color: rgb(33, 33, 33); font-family: "Segoe UI","Segoe UI Web (West European)","Segoe UI",-apple-system,BlinkMacSystemFont,"Roboto","Helvetica Neue",sans-serif; font-size: 15px; font-size-adjust: none; font-stretch: 100%"></span>
<div style="font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size-adjust: none; font-stretch: 100%; margin-bottom: 0px; margin-top: 0px">
<br>
</div>
<span style="display: inline !important; color: rgb(33, 33, 33); font-family: "Segoe UI","Segoe UI Web (West European)","Segoe UI",-apple-system,BlinkMacSystemFont,"Roboto","Helvetica Neue",sans-serif; font-size: 15px; font-size-adjust: none; font-stretch: 100%"></span>
<div style="font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size-adjust: none; font-stretch: 100%; margin-bottom: 0px; margin-top: 0px">
I'll try it again, this time putting the installation directory in the same root folder as the source file, and then get back to this mailing list with the results.  </div>
<span style="display: inline !important; color: rgb(33, 33, 33); font-family: "Segoe UI","Segoe UI Web (West European)","Segoe UI",-apple-system,BlinkMacSystemFont,"Roboto","Helvetica Neue",sans-serif; font-size: 15px; font-size-adjust: none; font-stretch: 100%"></span>
<div style="font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size-adjust: none; font-stretch: 100%; margin-bottom: 0px; margin-top: 0px">
<br>
</div>
<span style="display: inline !important; color: rgb(33, 33, 33); font-family: "Segoe UI","Segoe UI Web (West European)","Segoe UI",-apple-system,BlinkMacSystemFont,"Roboto","Helvetica Neue",sans-serif; font-size: 15px; font-size-adjust: none; font-stretch: 100%"></span>
<div style="font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size-adjust: none; font-stretch: 100%; margin-bottom: 0px; margin-top: 0px">
I tried to use the command line tool for CMake, rather than the GUI.  I find that easier in some cases.  Would be great if I knew the flags I need to use to have it locate LLD and Clang and build them when using the command line tool.</div>
<br>
</span></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Jonathan Goodwin <jondgoodwin@gmail.com><br>
<b>Sent:</b> Sunday, November 25, 2018 5:32 AM<br>
<b>To:</b> osmanzakir90@hotmail.com<br>
<b>Subject:</b> Re: [llvm-dev] Couldn't successfully generate project files for LLVM (checked out from trunk)</font>
<div> </div>
</div>
<div>
<div dir="ltr">I will tell you what I did when recently building LLVM v7 on Windows, in case this might help. I don't have a lot of experience with this, but I did eventually get it built (including with WebAssembly).
<div><br>
</div>
<div>First off, I believe there may be a problem building from a folder with a space as part of the name (e.g., "Program Files"). So, I put the source in D:\libs\llvm. The same is true for fixing up INSTALL_PREFIX to another folder (which does not have spaces
 in it). If you don't get that right, the latter "install" step does not work properly.<br>
<div><br>
</div>
<div> It turns out that LLD and Clang not only need to be placed in the tools folder, but also using the correct name (lld and clang). When this is right, CMake notices their presence and the CMake GUI offers up the options to build Clang and LLD.</div>
</div>
<div><br>
</div>
<div>If you want to build the 64-bit LLVM, be sure you are using the right Visual Studio generator. If you use the CMake GUI on a fresh install-to folder, it will ask you which generator to use, and you need to specify the VIsual Studio 2017 generator for 64-bit
 (vs. the x86 one).</div>
<div><br>
</div>
<div>Hope these tips help you some...</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr">On Sun, Nov 25, 2018 at 3:42 AM Osman Zakir via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<span>I'm replying here to give an update.  I installed CMake 3.13.0 and then tried to generate project file again, but had the same result.  I'm attaching the updated logs to this message.</span></div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<span><br>
</span></div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
I did check out the source files from the trunk and put them into the directories specified in the instruction on building LLVM from source on
<a href="http://llvm.org" target="_blank">llvm.org</a>.  Do I have to manually specify the paths to the files somehow (if so, where and how? Do I need to edit CMakeFiles.txt?)?  </div>
<hr style="display:inline-block; width:98%">
<div id="x_m_-4756812509592897686divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> llvm-dev <<a href="mailto:llvm-dev-bounces@lists.llvm.org" target="_blank">llvm-dev-bounces@lists.llvm.org</a>> on
 behalf of Osman Zakir via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>><br>
<b>Sent:</b> Friday, November 23, 2018 11:47 PM<br>
<b>To:</b> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<b>Subject:</b> [llvm-dev] Couldn't successfully generate project files for LLVM (checked out from trunk)</font>
<div> </div>
</div>
<div dir="ltr">
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
I'm using CMake version 3.12.3 on Windows 10 Home.  I checked out LLVM, Clang, Clang extra tools, Compiler-RT, LLD, LibOMP, LIBCXX, and LIBCXXABI with SVN and am now trying to generate project files.  But LLD, among some other things, wasn't found (even though
 put all of those in the documented directories inside the LLVM source tree).  And a lot of the tests failed.  I'm attaching the CMake error and output logs to this message.  Please help me out.  </div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<br>
</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
I'm trying to build it from source and added the "<span style="display:inline!important; color:rgb(231,76,60); font-family:"Inconsolata","Consolata","Monaco",monospace; font-size:14.4px">-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly</span>".  I'm not trying
 to ask for help on targeting WebAssembly, though, but only on building LLVM from source.  For now it's specifically generating Visual Studio 2017 project files.  </div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<br>
</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
I added the -Thost=x64 flag to CMake as well, but it still seemed to target x86.  Why?  </div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<br>
</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
Anyway, please help.  </div>
</div>
</div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote>
</div>
</div>
</body>
</html>