<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Todd,<br>
<br>
You can build with Python successfully on Windows.<br>
If you define both -DLLDB_DISABLE_PYTHON=0 and -D
LLDB_ENABLE_PYTHON_SCRIPTS_SWIG_API_GENERATION=1, it should build
properly.<br>
<br>
You're right, it's currently broken for building without Python. <br>
I just checked CMakelists.txt. An ifdef is missing, so you cannot
build on Windows without Python for now.<br>
<br>
I can't commit the fix now, can fix it when I'm back in office
tomorrow or you can commit this to CMakeLists.txt.<br>
<small><tt>--- CMakeLists.txt Thu Jul 3 22:55:07 2014</tt><tt><br>
</tt><tt>+++ CMakeLists.txt Thu Jul 3 22:57:26 2014</tt><tt><br>
</tt><tt>@@ -316,7 +316,9 @@</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> #add_subdirectory(include)</tt><tt><br>
</tt><tt> add_subdirectory(docs)</tt><tt><br>
</tt><tt>-add_subdirectory(scripts)</tt><tt><br>
</tt><tt>+if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows" OR NOT
LLDB_DISABLE_PYTHON)</tt><tt><br>
</tt><tt>+ add_subdirectory(scripts)</tt><tt><br>
</tt><tt>+endif ()</tt><tt><br>
</tt><tt> add_subdirectory(source)</tt><tt><br>
</tt><tt> add_subdirectory(test)</tt><tt><br>
</tt><tt> add_subdirectory(tools)</tt></small><br>
<br>
Thanks,<br>
Deepak<br>
<br>
On 03/07/2014 22:30, Todd Fiala wrote:<br>
</div>
<blockquote
cite="mid:CANdL_FS9qHXrWwHDevBPKFBe3Yk_jTtgXPJxQaOE1MBOdXhhHQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hey all,
<div><br>
</div>
<div>Can somebody tell me what I need to install on a fresh
Window 8.1 x86_64 box to get an lldb windows build working?</div>
<div><br>
</div>
<div>Here is what I've tried so far:</div>
<div>
<ul>
<li>VS 2013</li>
<li>ninja - sync from github, build 32-bit version. (The
--x64 build option seems to always bring up an error
dialog box in a VS 2013 64-bit window, so I use the x86
32-bit VS command prompt and build it as 32-bit. This
might be part of my issue).</li>
<li>Initially I installed <a moz-do-not-send="true"
href="http://python.org">python.org</a>'s Python 2.7
64-bit. I later tried the 32-bit after hitting issues in
the build process.</li>
<li>cmake 2.8.12.2. I tried the same with 3.0.0 but backed
off to 2.8.12.2 to normalize with Zachary's setup and
avoid any issues that Reid may have seen with 3.0.0
recently.</li>
<li>Installed gnuwin32.</li>
</ul>
<div><br>
</div>
<div>I sync llvm, llvm/tools/clang, and llvm/tools/lldb to the
llvm, clang and lldb repos.</div>
<div><br>
</div>
<div>I ensure python is not in my path (i.e. 'where python'
does not find anything). I do have gnuwin32/bin, cmake and
ninja in my path.</div>
<div><br>
</div>
<div>I run:</div>
<div>dir</div>
<div>llvm</div>
<div><br>
</div>
<div>mkdir build</div>
<div>cd build</div>
<div>cmake -GNinja ..\llvm</div>
<div>ninja</div>
<div><br>
</div>
<div>I get an error after about 200 files in from trying to
build that says:</div>
<div><font face="courier new, monospace" size="1">Building
lldb python wrapper</font></div>
<div><font face="courier new, monospace" size="1">FAILED:
cmd.exe /c cd /D D:\lldb\git\build\tools\lldb\scripts
&& env PYTHON_EXEC</font></div>
<div><font face="courier new, monospace" size="1">UTABLE=C:/Python27/python.exe
D:/lldb/git/llvm/tools/lldb/scripts/build-swig-wra</font></div>
<div><font face="courier new, monospace" size="1">pper-classes.sh
D:/lldb/git/llvm/tools/lldb
D:/lldb/git/build/tools/lldb/scripts</font></div>
<div><font face="courier new, monospace" size="1"> D:/lldb/git/build/tools/lldb/scripts
D:/lldb/git/build -m && env PYTHON_EXECUTA</font></div>
<div><font face="courier new, monospace" size="1">BLE=C:/Python27/python.exe
D:/lldb/git/llvm/tools/lldb/scripts/finish-swig-wrapp</font></div>
<div><font face="courier new, monospace" size="1">er-classes.sh
D:/lldb/git/llvm/tools/lldb
D:/lldb/git/build/tools/lldb/scripts D</font></div>
<div><font face="courier new, monospace" size="1">:/lldb/git/build/tools/lldb/scripts
D:/lldb/git/build -m</font></div>
<div><font face="courier new, monospace" size="1"><b>env:
D:/lldb/git/llvm/tools/lldb/scripts/build-swig-wrapper-classes.sh:
Exec for</b></font></div>
<div><font face="courier new, monospace" size="1"><b>mat
error </b></font></div>
<div><br>
</div>
<div>That version is with a 32-bit python. I get the same
error with a 64-bit python installed in the same location.</div>
<div><br>
</div>
<div>I have tried disabling python:</div>
<div><br>
</div>
<div>delete the build dir</div>
<div>mkdir build</div>
<div>cd build</div>
<div>cmake -DLLDB_DISABLE_PYTHON=1 -GNinja ..\llvm</div>
<div><br>
</div>
<div>Same error - it still detects the python (not in the
path) and still uses it.</div>
<div><br>
</div>
<div>I've tried -DDISABLE_PYTHON=1 instead, that one just
tells me that variable is not used.</div>
<div><br>
</div>
<div>So - I'm missing something basic here. I do not have
cygwin in my path. I used msysgit to get the source.</div>
<div><br>
</div>
<div>Right now I would just settle for being able to disable
python, even though we need that running at some point.</div>
<div><br>
</div>
<div>Thanks for any help!</div>
<div><br>
</div>
<div>Sincerely,<br>
Todd Fiala</div>
<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
lldb-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>