From: Marian B. <mar...@gm...> - 2009-02-05 01:07:26
|
Hi all. I have problem with compiling of RSGEdit. My steps are following (I use Ubuntu 8.10): Install GTK2.0: sudo apt-get install libgtk2.0-dev build-essential Download wxWidgets (http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.8.9.zip): unzip wxWidgets-2.8.9.zip cd wxWidgets-2.8.9 mkdir build ../configure --with-gtk make sudo make install sudo ldconfig Then I set to the rsgedit "build" directory and wrote "cmake ..": cd trunk/rsgedit mkdir build cd build cmake .. Everithing it's ok, but during compilation it write out this error: [ 86%] Building CXX object src/CMakeFiles/rsgedit.dir/mainframe.cpp.o In file included from /home/dupi/sserver/trunk/rsgedit/src/mainframe.cpp:22: /home/dupi/sserver/trunk/rsgedit/src/sparkglcanvas.h:39: error: expected class-name before '{' token /home/dupi/sserver/trunk/rsgedit/src/mainframe.cpp: In constructor 'mainframe::mainframe(wxWindow*, int, const wxString&, const wxPoint&, const wxSize&, long int)': /home/dupi/sserver/trunk/rsgedit/src/mainframe.cpp:231: error: 'class SparkGLCanvas' has no member named 'SetLabel' /home/dupi/sserver/trunk/rsgedit/src/mainframe.cpp:232: error: no matching function for call to 'wxFlatNotebook::AddPage(SparkGLCanvas*&, const char [7])' /home/dupi/sserver/trunk/rsgedit/wxutil/include/wx/wxflatnotebook/wxflatnote book.h:131: note: candidates are: bool wxFlatNotebook::AddPage(wxWindow*, const wxString&, bool, int) /home/dupi/sserver/trunk/rsgedit/src/mainframe.cpp: In member function 'void mainframe::OnClose(wxCloseEvent&)': /home/dupi/sserver/trunk/rsgedit/src/mainframe.cpp:424: error: comparison between distinct pointer types 'wxWindow*' and 'SparkGLCanvas*' lacks a cast /home/dupi/sserver/trunk/rsgedit/src/mainframe.cpp: In member function 'void mainframe::SelectCanvasTab()': /home/dupi/sserver/trunk/rsgedit/src/mainframe.cpp:1121: error: no matching function for call to 'wxFlatNotebook::GetPageIndex(SparkGLCanvas*&)' /home/dupi/sserver/trunk/rsgedit/wxutil/include/wx/wxflatnotebook/wxflatnote book.h:175: note: candidates are: int wxFlatNotebook::GetPageIndex(wxWindow*) const /home/dupi/sserver/trunk/rsgedit/src/mainframe.cpp:1129: error: 'class SparkGLCanvas' has no member named 'SetFocus' /home/dupi/sserver/trunk/rsgedit/src/mainframe.cpp: In member function 'void mainframe::OnTabClosing(wxFlatNotebookEvent&)': /home/dupi/sserver/trunk/rsgedit/src/mainframe.cpp:1337: error: comparison between distinct pointer types 'wxWindow*' and 'SparkGLCanvas*' lacks a cast /home/dupi/sserver/trunk/rsgedit/src/mainframe.cpp: In member function 'void mainframe::OnTabChanged(wxFlatNotebookEvent&)': /home/dupi/sserver/trunk/rsgedit/src/mainframe.cpp:1456: error: comparison between distinct pointer types 'wxWindow*' and 'SparkGLCanvas*' lacks a cast /home/dupi/sserver/trunk/rsgedit/src/mainframe.cpp:1458: error: 'class SparkGLCanvas' has no member named 'SetFocus' make[2]: *** [src/CMakeFiles/rsgedit.dir/mainframe.cpp.o] Error 1 make[1]: *** [src/CMakeFiles/rsgedit.dir/all] Error 2 make: *** [all] Error 2 root@dupi-vm-ubuntu:~/sserver/trunk/rsgedit/build# Please, What I doing wrong :) ? Thanks Best Regards Marian Buchta |