[LLVMdev] Introducing LLBrowse: A graphical browser for LLVM modules

Talin viridia at gmail.com
Mon Feb 14 13:13:05 PST 2011


Oh, and I updated the MIME types on the docs, so now you can read them
online here:

http://llvm.org/svn/llvm-project/llbrowse/trunk/doc/LLBrowse.html

2011/2/14 Talin <viridia at gmail.com>

> OK I figured out what the problem was - I assume you are trying to compile
> under Snow Leopard? There is a problem with linking against wxWidgets
> because the prebuilt binaries for wxWidgets are compiled in 32-bit mode, and
> the default compilation mode in Snow Leopard is 64 bits. See this article
> for an explanation:
>
>
> http://wiki.wxwidgets.org/Development:_wxMac#Building_under_10.6_Snow_Leopard
>
> Unfortunately, I am not certain what the right solution is yet. Maybe I'll
> have to add a check for Snow Leopard and add a flag to compile in 32-bit
> mode. Apparently this problem is solved in the upcoming 2.9 release of
> wxWidgets, but that is still an experimental version.
>
> In the mean time, I discovered a bunch of other build problems on OS X,
> which I have gone ahead and checked in fixes for (Things like <memory> vs.
> <auto_ptr>. I've also updated the docs to explain how to tell CMake where to
> find llvm-config.
>
> 2011/2/14 Török Edwin <edwintorok at gmail.com>
>
>> On 2011-02-14 20:58, Török Edwin wrote:
>>
>> > On 2011-02-14 20:39, Talin wrote:
>> >>
>> >>
>> >> On Mon, Feb 14, 2011 at 1:17 AM, Renato Golin <rengolin at systemcall.org
>> >> <mailto:rengolin at systemcall.org>> wrote:
>> >>
>> >>     I think this deserves a blog post...
>> >>
>> >> I'd like to wait until I get some feedback - I don't know yet if anyone
>> >> is having trouble building or running the thing...
>> >
>> > Hi Talin,
>> >
>> > What version of wxwidgets does llbrowse require, tried 2.8.10, and 2.9.1
>> > and none worked:
>> > /home/edwin/llbrowse/include/llbrowse/Resources.h:46: error: ISO C++
>> > forbids declaration of ‘wxImageList’ with no type
>> > /home/edwin/llbrowse/include/llbrowse/Resources.h:46: error: expected
>> > ‘;’ before ‘*’ token
>> > /home/edwin/llbrowse/include/llbrowse/Resources.h:47: error: ISO C++
>> > forbids declaration of ‘wxImageList’ with no type
>> > /home/edwin/llbrowse/include/llbrowse/Resources.h:47: error: expected
>> > ‘;’ before ‘*’ token
>>
>> Correction, 2.8.10 gets past these errors, and shows these errors instead:
>>
>> CMakeFiles/llbrowse.dir/lib/BrowserApp.cpp.o:(.rodata._ZTV10BrowserApp[vtable
>> for BrowserApp]+0x120): undefined reference to
>> `wxApp::OnAssertFailure(wchar_t const*, int, wchar_t const*, wchar_t
>> const*, wchar_t const*)'
>>
>> CMakeFiles/llbrowse.dir/lib/BrowserApp.cpp.o:(.rodata._ZTV10BrowserApp[vtable
>> for BrowserApp]+0x128): undefined reference to
>> `wxAppConsole::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t
>> const*)'
>> CMakeFiles/llbrowse.dir/lib/TreeView.cpp.o: In function
>> `wxStringBase::wxStringBase(wxStringBase const&)':
>>
>> TreeView.cpp:(.text._ZN12wxStringBaseC2ERKS_[wxStringBase::wxStringBase(wxStringBase
>> const&)]+0x43): undefined reference to `wxOnAssert(wchar_t const*, int,
>> char const*, wchar_t const*, wchar_t const*)'
>> CMakeFiles/llbrowse.dir/lib/TreeView.cpp.o: In function
>> `wxArrayString::Item(unsigned long) const':
>>
>> TreeView.cpp:(.text._ZNK13wxArrayString4ItemEm[wxArrayString::Item(unsigned
>> long) const]+0x39): undefined reference to `wxOnAssert(wchar_t const*,
>> int, char const*, wchar_t const*, wchar_t const*)'
>>
>>
>> >
>> > Some other minor issues:
>> > 1. If llvm-config is not in the path, 'cmake .' succeeds, and 'make
>> fails'.
>> > cmake-gui shows that the problem is LLVM_CONFIG_EXECUTABLE-NOTFOUND.
>> >
>> > 2. It doesn't seem to build with LLVM 2.8, maybe you should check the
>> > LLVM version in CMake:
>> > /home/edwin/llbrowse/lib/BrowserApp.cpp:9:34: error: llvm/Support
>> > /Signals.h: No such file or directory
>> >
>> > Best regards,
>> > --Edwin
>>
>>
>
>
> --
> -- Talin
>



-- 
-- Talin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110214/cc991068/attachment.html>


More information about the llvm-dev mailing list