Does anybody install llvm-tv on ubuntu9.04? please share how to do it. Thanks very much! My problem is as followed: I follow the instruction of README in source of llvm-tv. First, I installe wxWidgets and graphviz, and then download the source of llvm from http://llvm.org/svn/llvm-project/llvm/trunk and download poolalloc from http://llvm.org/svn/llvm-project/poolalloc/trunk. Second, I compile llvm successfully but when I build poolalloc, it pour out some errors of the source of poolalloc. Then I chang to download llvm and poolalloc form release_26, and buid them successful. But when I build llvm-tv, it error as followed. --------------------------------------------------------------------------------------------------------------- /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/PictureCanvas.h:38: error: ‘myImage’ was not declared in this scope In file included from /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CFGGraphDrawer.h:10, from /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CFGGraphDrawer.cpp:1: /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h: At global scope: /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:28: error: ISO C++ forbids declaration of ‘wxImage’ with no type /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:28: error: expected ‘;’ before ‘*’ token /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:41: error: ISO C++ forbids declaration of ‘wxImage’ with no type /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:41: error: ‘wxImage’ declared as a ‘virtual’ field /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:41: error: expected ‘;’ before ‘*’ token /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:42: error: expected ‘;’ before ‘virtual’ /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:42: error: ISO C++ forbids declaration of ‘wxImage’ with no type /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:42: error: ‘wxImage’ declared as a ‘virtual’ field /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:42: error: expected ‘;’ before ‘*’ token /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:43: error: expected ‘;’ before ‘}’ token /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h: In member function ‘virtual wxWindow* GraphDrawer::getWindow()’: /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:34: error: cannot convert ‘PictureCanvas*’ to ‘wxWindow*’ in return In file included from /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CFGGraphDrawer.cpp:1: /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CFGGraphDrawer.h: At global scope: /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CFGGraphDrawer.h:22: error: ISO C++ forbids declaration of ‘wxImage’ with no type /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CFGGraphDrawer.h:22: error: expected ‘;’ before ‘*’ token In file included from /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:11, from /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CFGGraphDrawer.cpp:2: /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CodeViewer.h:28: error: expected class-name before ‘{’ token /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CodeViewer.h:39: error: expected class-name before ‘{’ token /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CodeViewer.h:46: error: ISO C++ forbids declaration of ‘wxColour’ with no type /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CodeViewer.h:46: error: expected ‘,’ or ‘...’ before ‘*’ token /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CodeViewer.h:53: error: ‘wxListEvent’ has not been declared /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CodeViewer.h:54: error: ‘wxListEvent’ has not been declared /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CodeViewer.h: In member function ‘virtual wxWindow* TVCodeViewer::getWindow()’: /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CodeViewer.h:72: error: cannot convert ‘TVCodeListCtrl*’ to ‘wxWindow*’ in return In file included from /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CFGGraphDrawer.cpp:2: /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h: At global scope: /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:25: error: expected class-name before ‘{’ token /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:29: error: ISO C++ forbids declaration of ‘wxImage’ with no type /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:29: error: ‘wxImage’ declared as a ‘virtual’ field /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:29: error: expected ‘;’ before ‘*’ token /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:30: error: expected ‘;’ before ‘virtual’ /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:61: error: ISO C++ forbids declaration of ‘wxImage’ with no type /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:61: error: expected ‘;’ before ‘*’ token /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:64: error: expected ‘;’ before ‘void’ /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:81: error: ISO C++ forbids declaration of ‘wxImage’ with no type /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:81: error: expected ‘;’ before ‘*’ token /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:84: error: expected ‘;’ before ‘void’ /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CFGGraphDrawer.cpp:13: error: expected constructor, destructor, or type conversion before ‘*’ token make[2]: *** [/root/Program_file/llvm/llvm_tv_obj/tools/llvm-tv/Debug/CFGGraphDrawer.o] 错误 1 make[2]:正在离开目录 `/root/Program_file/llvm/llvm_tv_obj/tools/llvm-tv' make[1]: *** [llvm-tv/.makeall] 错误 2 make[1]:正在离开目录 `/root/Program_file/llvm/llvm_tv_obj/tools' make: *** [all] 错误 1 root at ubuntu:~/Program_file/llvm/llvm_tv_obj# ----------------------------------------------------------------------------------------------------------------------------- Could somebody help me? Thank you very much! Best regards 2010-09-08 Daneill -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100909/0f60c579/attachment.html>
llvm-tv is unmaintained and has not been ported either to modern wxWindows nor modern LLVMs. You will have to do substantial work to make it run again. Nick huwei8717 wrote:> > Does anybody install llvm-tv on ubuntu9.04? please share how to do it. > Thanks very much! > My problem is as followed: > I follow the instruction of README in source of llvm-tv. > First, I installe wxWidgets and graphviz, and then download the source > of llvm from http://llvm.org/svn/llvm-project/llvm/trunk and download > poolalloc from http://llvm.org/svn/llvm-project/poolalloc/trunk. Second, > I compile llvm successfully but when I build poolalloc, it pour out some > errors of the source of poolalloc. Then I chang to download llvm and > poolalloc form release_26, and buid them successful. But when I build > llvm-tv, it error as followed. > --------------------------------------------------------------------------------------------------------------- > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/PictureCanvas.h:38: > error: ‘myImage’ was not declared in this scope > In file included from > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CFGGraphDrawer.h:10, > from /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CFGGraphDrawer.cpp:1: > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h: At > global scope: > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:28: > error: ISO C++ forbids declaration of ‘wxImage’ with no type > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:28: > error: expected ‘;’ before ‘*’ token > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:41: > error: ISO C++ forbids declaration of ‘wxImage’ with no type > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:41: > error: ‘wxImage’ declared as a ‘virtual’ field > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:41: > error: expected ‘;’ before ‘*’ token > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:42: > error: expected ‘;’ before ‘virtual’ > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:42: > error: ISO C++ forbids declaration of ‘wxImage’ with no type > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:42: > error: ‘wxImage’ declared as a ‘virtual’ field > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:42: > error: expected ‘;’ before ‘*’ token > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:43: > error: expected ‘;’ before ‘}’ token > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h: In > member function ‘virtual wxWindow* GraphDrawer::getWindow()’: > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/GraphDrawer.h:34: > error: cannot convert ‘PictureCanvas*’ to ‘wxWindow*’ in return > In file included from > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CFGGraphDrawer.cpp:1: > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CFGGraphDrawer.h: At > global scope: > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CFGGraphDrawer.h:22: > error: ISO C++ forbids declaration of ‘wxImage’ with no type > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CFGGraphDrawer.h:22: > error: expected ‘;’ before ‘*’ token > In file included from > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:11, > from /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CFGGraphDrawer.cpp:2: > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CodeViewer.h:28: > error: expected class-name before ‘{’ token > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CodeViewer.h:39: > error: expected class-name before ‘{’ token > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CodeViewer.h:46: > error: ISO C++ forbids declaration of ‘wxColour’ with no type > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CodeViewer.h:46: > error: expected ‘,’ or ‘...’ before ‘*’ token > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CodeViewer.h:53: > error: ‘wxListEvent’ has not been declared > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CodeViewer.h:54: > error: ‘wxListEvent’ has not been declared > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CodeViewer.h: In > member function ‘virtual wxWindow* TVCodeViewer::getWindow()’: > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CodeViewer.h:72: > error: cannot convert ‘TVCodeListCtrl*’ to ‘wxWindow*’ in return > In file included from > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CFGGraphDrawer.cpp:2: > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h: At > global scope: > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:25: > error: expected class-name before ‘{’ token > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:29: > error: ISO C++ forbids declaration of ‘wxImage’ with no type > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:29: > error: ‘wxImage’ declared as a ‘virtual’ field > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:29: > error: expected ‘;’ before ‘*’ token > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:30: > error: expected ‘;’ before ‘virtual’ > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:61: > error: ISO C++ forbids declaration of ‘wxImage’ with no type > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:61: > error: expected ‘;’ before ‘*’ token > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:64: > error: expected ‘;’ before ‘void’ > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:81: > error: ISO C++ forbids declaration of ‘wxImage’ with no type > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:81: > error: expected ‘;’ before ‘*’ token > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/TVTreeItem.h:84: > error: expected ‘;’ before ‘void’ > /root/Program_file/llvm/llvm_tv_src/tools/llvm-tv/CFGGraphDrawer.cpp:13: > error: expected constructor, destructor, or type conversion before ‘*’ token > make[2]: *** > [/root/Program_file/llvm/llvm_tv_obj/tools/llvm-tv/Debug/CFGGraphDrawer.o] > 错误 1 > make[2]:正在离开目录 `/root/Program_file/llvm/llvm_tv_obj/tools/llvm-tv' > make[1]: *** [llvm-tv/.makeall] 错误 2 > make[1]:正在离开目录 `/root/Program_file/llvm/llvm_tv_obj/tools' > make: *** [all] 错误 1 > root at ubuntu:~/Program_file/llvm/llvm_tv_obj# > ----------------------------------------------------------------------------------------------------------------------------- > Could somebody help me? Thank you very much! > Best regards > 2010-09-08 > Daneill > > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev