Mahogany on wxGTK

Yuriy Tkachenko <[email protected]>
Newsgroups gmane.mail.mahogany.user
Message-ID <20040412111124.00002633@server>
Please help me to build Mahogany with wxGTK.

Using: Mandrake 9.2, wxWindows (wxAll) 2.5.1, Mahogany 0.66.

I tried to build Mahogany with several wxWindows configurations.
The Mahogany configuration was default in each case.

----------
wxWindows configuration 1:
../configure --with-gtk --disable-threads --disable-joystick

Mahogany build output:
...
c++ -o classes/MApplication.o -c -I/home/yt/mahogany/buildgtk/include
-I/home/yt/mahogany/include -I/usr/include/python2.3 -DNO_IDEA -DNO_DSA
-DOPENSSL_NO_KRB5 -I/usr/local/lib/wx/include/gtk2u-2.5
-I/usr/local/include -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/home/yt/mahogany/extra/include
-I/home/yt/mahogany/buildgtk/extra/src/c-client
-I/home/yt/mahogany/extra/src/compface -I/home/yt/mahogany/src/wx/vcard
-fno-exceptions -fno-rtti -fno-operator-names -O2 -MMD -Wall
.src/classes/MApplication.cpp.src/classes/MApplication.cpp: In member
function `void
MAppBase::ContinueStartup()':.src/classes/MApplication.cpp:286: error:
cannot convert `char*' to `wxChar*' for argument `1' to `void
strutil_tokenise(wxChar*, const wxChar*,
kbStringList&)'.src/classes/MApplication.cpp: In member function
`virtual bool MAppBase::OnStartup()':.src/classes/MApplication.cpp:529:
error: `Lmsg' undeclared (first use this
function).src/classes/MApplication.cpp:529: error: (Each undeclared
identifier is reported only once for each function it appears
in.).src/classes/MApplication.cpp:521: warning: unused variable `const
wxChar*msg'.src/classes/MApplication.cpp: In member function `void
MAppBase::InitDirectories()':.src/classes/MApplication.cpp:1044: error:
cannot convert `const wxChar*' to `const char*' for argument `1' to
`size_t strlen(const char*)'...

----------
wxWindows configuration 2:
../configure --with-gtk --disable-threads --disable-joystick
--disable-unicode

Mahogany build output:
...
c++ -o gui/wxDialogLayout.o -c -I/home/yt/mahogany/buildgtk/include
-I/home/yt/mahogany/include -I/usr/include/python2.3 -DNO_IDEA -DNO_DSA
-DOPENSSL_NO_KRB5 -I/usr/local/lib/wx/include/gtk2-2.5
-I/usr/local/include -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/home/yt/mahogany/extra/include
-I/home/yt/mahogany/buildgtk/extra/src/c-client
-I/home/yt/mahogany/extra/src/compface -I/home/yt/mahogany/src/wx/vcard
-fno-exceptions -fno-rtti -fno-operator-names -O2 -MMD -Wall
.src/gui/wxDialogLayout.cpp.src/gui/wxDialogLayout.cpp:105: error:
invalid static_cast from type `void
(wxOptionsPageSubdialog::*)(wxEvent&)' to type `void
(wxEvtHandler::*)(wxCommandEvent&)'.src/gui/wxDialogLayout.cpp:106:
error: invalid static_cast from type `void
(wxOptionsPageSubdialog::*)(wxEvent&)' to type `void
(wxEvtHandler::*)(wxCommandEvent&)'.src/gui/wxDialogLayout.cpp:107:
error: invalid static_cast from type `void
(wxOptionsPageSubdialog::*)(wxEvent&)' to type `void
(wxEvtHandler::*)(wxCommandEvent&)'.src/gui/wxDialogLayout.cpp:122:
error: invalid static_cast from type `void
(wxNotebookPageBase::*)(wxEvent&)' to type `void
(wxEvtHandler::*)(wxCommandEvent&)'.src/gui/wxDialogLayout.cpp:123:
error: invalid static_cast from type `void
(wxNotebookPageBase::*)(wxEvent&)' to type `void
(wxEvtHandler::*)(wxCommandEvent&)'.src/gui/wxDialogLayout.cpp:124:
error: invalid static_cast from type `void
(wxNotebookPageBase::*)(wxEvent&)' to type `void
(wxEvtHandler::*)(wxCommandEvent&)'.src/gui/wxDialogLayout.cpp:125:
error: invalid static_cast from type `void
(wxNotebookPageBase::*)(wxEvent&)' to type `void
(wxEvtHandler::*)(wxCommandEvent&)'...

----------
wxWindows configuration 3:
../configure --with-gtk --disable-threads --disable-joystick
--disable-unicode --disable-gtk2

Mahogany build output:
...
c++ -o gui/wxDialogLayout.o -c -I/home/yt/mahogany/buildgtk/include
-I/home/yt/mahogany/include -I/usr/include/python2.3 -DNO_IDEA -DNO_DSA
-DOPENSSL_NO_KRB5 -I/usr/local/lib/wx/include/gtk-2.5
-I/usr/local/include -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/home/yt/mahogany/extra/include
-I/home/yt/mahogany/buildgtk/extra/src/c-client
-I/home/yt/mahogany/extra/src/compface -I/home/yt/mahogany/src/wx/vcard
-fno-exceptions -fno-rtti -fno-operator-names -O2 -MMD -Wall
.src/gui/wxDialogLayout.cpp.src/gui/wxDialogLayout.cpp:105: error:
invalid static_cast from type `void
(wxOptionsPageSubdialog::*)(wxEvent&)' to type `void
(wxEvtHandler::*)(wxCommandEvent&)'.src/gui/wxDialogLayout.cpp:106:
error: invalid static_cast from type `void
(wxOptionsPageSubdialog::*)(wxEvent&)' to type `void
(wxEvtHandler::*)(wxCommandEvent&)'.src/gui/wxDialogLayout.cpp:107:
error: invalid static_cast from type `void
(wxOptionsPageSubdialog::*)(wxEvent&)' to type `void
(wxEvtHandler::*)(wxCommandEvent&)'.src/gui/wxDialogLayout.cpp:122:
error: invalid static_cast from type `void
(wxNotebookPageBase::*)(wxEvent&)' to type `void
(wxEvtHandler::*)(wxCommandEvent&)'.src/gui/wxDialogLayout.cpp:123:
error: invalid static_cast from type `void
(wxNotebookPageBase::*)(wxEvent&)' to type `void
(wxEvtHandler::*)(wxCommandEvent&)'.src/gui/wxDialogLayout.cpp:124:
error: invalid static_cast from type `void
(wxNotebookPageBase::*)(wxEvent&)' to type `void
(wxEvtHandler::*)(wxCommandEvent&)'.src/gui/wxDialogLayout.cpp:125:
error: invalid static_cast from type `void
(wxNotebookPageBase::*)(wxEvent&)' to type `void
(wxEvtHandler::*)(wxCommandEvent&)'...

----------

Thanks in advance for suggestions.


-- 
Best regards,
Yuriy Tkachenko 


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.