I did  manage to get past the stc and src parts

after building wcGTK-2.4.1
cd wxGTK-2.4.1/contrib/stc;make;checkinstall
cd wxGTK-2.4.1/contrib/xrc;make;checkinstall

but got hung up on the make for pgadmin3-0.9.1 here

====================== CUT of make.log ===============
if g++ -DHAVE_CONFIG_H -I. -I. -I..  
-I/usr/kerberos/include -DSSL -I/usr/include
-I/usr/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS
-D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-I/usr/include -DDATA_DIR=\"/usr/share/pgadmin3/\"
-Wall -g -I../src/include -I -pipe -O2 -march=pentium3
-msse -mfpmath=sse -fprefetch-loop-arrays
-fomit-frame-pointer -frename-registers -MT misc.o -MD
-MP -MF ".deps/misc.Tpo" \
  -c -o misc.o `test -f 'utils/misc.cpp' || echo
'./'`utils/misc.cpp; \
then mv ".deps/misc.Tpo" ".deps/misc.Po"; \
else rm -f ".deps/misc.Tpo"; exit 1; \
fi
utils/misc.cpp: In function `wxString NumToStr(long
unsigned int)':
utils/misc.cpp:136: warning: unsigned int format, long
int arg (arg 3)
utils/misc.cpp: In function `wxString FileRead(const
wxString&, wxWindow*, int)
   ':
utils/misc.cpp:387: error: no matching function for
call to `wxMBConvUTF8::
   MB2WC(wxChar*, char*&, size_t&)'
/usr/include/wx/strconv.h:84: error: candidates are:
virtual size_t 
   wxMBConvUTF8::MB2WC(wchar_t*, const char*, unsigned
int) const
utils/misc.cpp:389: error: no matching function for
call to `wxMBConv::MB2WC(
   wxChar*, char*&, size_t&)'
/usr/include/wx/strconv.h:39: error: candidates are:
virtual size_t 
   wxMBConv::MB2WC(wchar_t*, const char*, unsigned
int) const
make[2]: *** [misc.o] Error 1
make[2]: Leaving directory
`/builddir/pgadmin3-0.9.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/builddir/pgadmin3-0.9.1'
make: *** [all] Error 2

=================== END Cut ========================

I went back into wxGTK and did a configure with
--enable-unicode  but still no help.

Looking at /usr/include/wx/strconv.h I see the
reference to wxMBConvUTF8::MB2WC as

#if wxUSE_WCHAR_T

//
----------------------------------------------------------------------------
// wxMBConv (base class for conversions, using libc
conversion itself)
//
----------------------------------------------------------------------------

class WXDLLEXPORT wxMBConv
{
public:
    // the actual conversion takes place here
    virtual size_t MB2WC(wchar_t *buf, const char
*psz, size_t n) const;
    virtual size_t WC2MB(char *buf, const wchar_t
*psz, size_t n) const;

    // No longer inline since BC++ complains.
    const wxWCharBuffer cMB2WC(const char *psz) const;
    const wxCharBuffer cWC2MB(const wchar_t *psz)
const;

#if wxUSE_UNICODE
    const wxWCharBuffer cMB2WX(const char *psz) const
{ return cMB2WC(psz); }
    const wxCharBuffer cWX2MB(const wchar_t *psz)
const { return cWC2MB(psz); }
    const wchar_t* cWC2WX(const wchar_t *psz) const {
return psz; }
    const wchar_t* cWX2WC(const wchar_t *psz) const {
return psz; }
#else // ANSI
    const char* cMB2WX(const char *psz) const { return
psz; }
    const char* cWX2MB(const char *psz) const { return
psz; }
    const wxCharBuffer cWC2WX(const wchar_t *psz)
const { return cWC2MB(psz); }
    const wxWCharBuffer cWX2WC(const char *psz) const
{ return cMB2WC(psz); }
#endif // Unicode/ANSI

    // virtual dtor for any base class
    virtual ~wxMBConv();
};


Trying a kludge for -DwxUSE_WCHAT_T didn't seem to
work either.

Any ideas?

  

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Fri, 29 Aug 2003 18:40:09 -0700 (PDT)
John Battles <capgadget@yahoo.com>
pgadmin3-0.9.1 wxwindows build woes utils/misc.cpp:389: error: no
	matching function for call to `wxMBConv::MB2WC
John,

please use the correct mailing list for this, pgadmin-hackers not 
pgsql-hackers.
second, use our wx snapshot, not an arbitrary version. 2.4.1 was never 
tested, and we may even drop 2.4 completely because we're revealing more 
and more problems in wx that need to be fixed for pgAdmin3.

Regards,
Andreas

John Battles wrote:

>I did  manage to get past the stc and src parts
>
>after building wcGTK-2.4.1
>cd wxGTK-2.4.1/contrib/stc;make;checkinstall
>cd wxGTK-2.4.1/contrib/xrc;make;checkinstall
>
>but got hung up on the make for pgadmin3-0.9.1 here
>
>====================== CUT of make.log ===============
>if g++ -DHAVE_CONFIG_H -I. -I. -I..  
>-I/usr/kerberos/include -DSSL -I/usr/include
>-I/usr/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS
>-D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
>-I/usr/include -DDATA_DIR=\"/usr/share/pgadmin3/\"
>-Wall -g -I../src/include -I -pipe -O2 -march=pentium3
>-msse -mfpmath=sse -fprefetch-loop-arrays
>-fomit-frame-pointer -frename-registers -MT misc.o -MD
>-MP -MF ".deps/misc.Tpo" \
>  -c -o misc.o `test -f 'utils/misc.cpp' || echo
>'./'`utils/misc.cpp; \
>then mv ".deps/misc.Tpo" ".deps/misc.Po"; \
>else rm -f ".deps/misc.Tpo"; exit 1; \
>fi
>utils/misc.cpp: In function `wxString NumToStr(long
>unsigned int)':
>utils/misc.cpp:136: warning: unsigned int format, long
>int arg (arg 3)
>utils/misc.cpp: In function `wxString FileRead(const
>wxString&, wxWindow*, int)
>   ':
>utils/misc.cpp:387: error: no matching function for
>call to `wxMBConvUTF8::
>   MB2WC(wxChar*, char*&, size_t&)'
>/usr/include/wx/strconv.h:84: error: candidates are:
>virtual size_t 
>   wxMBConvUTF8::MB2WC(wchar_t*, const char*, unsigned
>int) const
>utils/misc.cpp:389: error: no matching function for
>call to `wxMBConv::MB2WC(
>   wxChar*, char*&, size_t&)'
>/usr/include/wx/strconv.h:39: error: candidates are:
>virtual size_t 
>   wxMBConv::MB2WC(wchar_t*, const char*, unsigned
>int) const
>make[2]: *** [misc.o] Error 1
>make[2]: Leaving directory
>`/builddir/pgadmin3-0.9.1/src'
>make[1]: *** [all-recursive] Error 1
>make[1]: Leaving directory `/builddir/pgadmin3-0.9.1'
>make: *** [all] Error 2
>
>=================== END Cut ========================
>
>I went back into wxGTK and did a configure with
>--enable-unicode  but still no help.
>
>Looking at /usr/include/wx/strconv.h I see the
>reference to wxMBConvUTF8::MB2WC as
>
>#if wxUSE_WCHAR_T
>
>//
>----------------------------------------------------------------------------
>// wxMBConv (base class for conversions, using libc
>conversion itself)
>//
>----------------------------------------------------------------------------
>
>class WXDLLEXPORT wxMBConv
>{
>public:
>    // the actual conversion takes place here
>    virtual size_t MB2WC(wchar_t *buf, const char
>*psz, size_t n) const;
>    virtual size_t WC2MB(char *buf, const wchar_t
>*psz, size_t n) const;
>
>    // No longer inline since BC++ complains.
>    const wxWCharBuffer cMB2WC(const char *psz) const;
>    const wxCharBuffer cWC2MB(const wchar_t *psz)
>const;
>
>#if wxUSE_UNICODE
>    const wxWCharBuffer cMB2WX(const char *psz) const
>{ return cMB2WC(psz); }
>    const wxCharBuffer cWX2MB(const wchar_t *psz)
>const { return cWC2MB(psz); }
>    const wchar_t* cWC2WX(const wchar_t *psz) const {
>return psz; }
>    const wchar_t* cWX2WC(const wchar_t *psz) const {
>return psz; }
>#else // ANSI
>    const char* cMB2WX(const char *psz) const { return
>psz; }
>    const char* cWX2MB(const char *psz) const { return
>psz; }
>    const wxCharBuffer cWC2WX(const wchar_t *psz)
>const { return cWC2MB(psz); }
>    const wxWCharBuffer cWX2WC(const char *psz) const
>{ return cMB2WC(psz); }
>#endif // Unicode/ANSI
>
>    // virtual dtor for any base class
>    virtual ~wxMBConv();
>};
>
>
>Trying a kludge for -DwxUSE_WCHAT_T didn't seem to
>work either.
>
>Any ideas?
>
>  
>
>__________________________________
>Do you Yahoo!?
>Yahoo! SiteBuilder - Free, easy-to-use web site design software
>http://sitebuilder.yahoo.com
>
>---------------------------(end of broadcast)---------------------------
>TIP 5: Have you checked our extensive FAQ?
>
>               http://www.postgresql.org/docs/faqs/FAQ.html
>
>  
>



Sat, 30 Aug 2003 11:07:29 +0200
Andreas Pflug <pgadmin@pse-consulting.de>
Re: [HACKERS] pgadmin3-0.9.1 wxwindows build woes utils/misc.cpp:389: