Török Edwin
2011-Feb-14 18:58 UTC
[LLVMdev] Introducing LLBrowse: A graphical browser for LLVM modules
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 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
Török Edwin
2011-Feb-14 19:02 UTC
[LLVMdev] Introducing LLBrowse: A graphical browser for LLVM modules
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 ‘*’ tokenCorrection, 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
2011-Feb-14 19:18 UTC
[LLVMdev] Introducing LLBrowse: A graphical browser for LLVM modules
Thanks for letting me know. I'll look into it right now. 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110214/a4c7c2c7/attachment.html>
Talin
2011-Feb-14 21:11 UTC
[LLVMdev] Introducing LLBrowse: A graphical browser for LLVM modules
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110214/249561ab/attachment.html>
Reasonably Related Threads
- [LLVMdev] Introducing LLBrowse: A graphical browser for LLVM modules
- [LLVMdev] Introducing LLBrowse: A graphical browser for LLVM modules
- [LLVMdev] Introducing LLBrowse: A graphical browser for LLVM modules
- [LLVMdev] still failed to build the llbrowse on Debian5-32b-llvm2.8
- [LLVMdev] still failed to build the llbrowse on Debian5-32b-llvm2.8