<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jun 10, 2010, at 12:21 AM, Eli Friedman wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Wed, Jun 9, 2010 at 11:18 PM, Greg Clayton <<a href="mailto:gclayton@apple.com">gclayton@apple.com</a>> wrote:<br><font class="Apple-style-span" color="#006312"><br></font><blockquote type="cite">source/Interpreter/ScriptInterpreterPython.cpp:<br></blockquote><blockquote type="cite">My build doesn't define init_lldb anywhere; I have no idea where the<br></blockquote><blockquote type="cite">definition is supposed to be.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">This comes from the file cpp file that is generated by swig when run on the<br></blockquote><blockquote type="cite">ABI sources.<br></blockquote><blockquote type="cite">This is done by a shell script build phaes in the Xcode project that<br></blockquote><blockquote type="cite">essentially does a:<br></blockquote><blockquote type="cite">cd scripts<br></blockquote><blockquote type="cite">sh ./build-swig-wrapper-classes.sh lldb.swig ../source/LLDBWrapPython.cpp<br></blockquote><blockquote type="cite">The init_lldb ends up being in the LLDBWrapPython.cpp<br></blockquote><br>Ah, okay; I'll adjust my in-progress build system to do that.<br><br></div></blockquote></div><div><br></div><div>There are a couple of things to be aware of in running those scripts. The first thing is that,</div><div>as written, they were intended to be run from Xcode, which means they contain references to</div><div>environment variables that Xcode defines in its build process, so they probably won't work for</div><div>you 'as is'. One of the next things on my to do list is to try to modify the scripts to take those</div><div>values as parameters instead. The other thing you should be aware of is that there are two sets of</div><div>scripts, the build-swig-... scripts and the finish-swig-... scripts. The build scripts need to be run fairly early</div><div>in the overall build process, because they cause SWIG to build the C++ file(s) for the scripting language API(s) that need to be compiled and linked with all the other source files to create lldb. The finish-swig... scripts</div><div>need to be run after it's all been compiled, to generate links and copy files around to where they need to be</div><div>in order for the embedded scripting stuff in lldb to find them properly. </div><div><br></div><div>-- Caroline</div><div><a href="mailto:ctice@apple.com">ctice@apple.com</a></div></body></html>