Обсуждение: Compile PgAdIII on OS X error

Поиск
Список
Период
Сортировка

Compile PgAdIII on OS X error

От
Patrick Hatcher
Дата:
<br /><font face="sans-serif" size="2">Trying to compile pgAdmin III beta 3  OS X 10.3.5 and I'm getting the following
error:</font><br/><br /><font face="sans-serif" size="2">if g++ -DHAVE_CONFIG_H -I. -I. -I..
 -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\"-Wall -g -I../src/include -I../src/agent/include
-I/usr/local/pgsql/include-DSSL -I/usr/local/lib/wx/include/mac-ansi-release-2.5 -I/usr/local/include/wx-2.5
-D__WXMAC__-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWX_PRECOMP -DNO_GCC_PRAGMA   -I/usr/local/include/wx-2.5
-no-cpp-precomp-fno-rtti -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g -I../src/include
-I../src/agent/include-g -O2 -MT utffile.o -MD -MP -MF ".deps/utffile.Tpo" \</font><br /><font face="sans-serif"
size="2"> -c -o utffile.o `test -f 'utils/utffile.cpp' || echo './'`utils/utffile.cpp; \</font><br /><font
face="sans-serif"size="2">then mv -f ".deps/utffile.Tpo" ".deps/utffile.Po"; \</font><br /><font face="sans-serif"
size="2">elserm -f ".deps/utffile.Tpo"; exit 1; \</font><br /><font face="sans-serif" size="2">fi</font><br /><font
face="sans-serif"size="2">utils/utffile.cpp: In member function `off_t wxUtfFile::Read(wxString&, long </font><br
/><fontface="sans-serif" size="2">   long int)':</font><br /><font face="sans-serif" size="2">utils/utffile.cpp:86:
error:no matching function for call to `wxMBConv::MB2WC(</font><br /><font face="sans-serif" size="2"> 
 wxStringBuffer,char*&, long unsigned int)'</font><br /><font face="sans-serif"
size="2">/usr/local/include/wx-2.5/wx/strconv.h:46:error: candidates are: virtual </font><br /><font face="sans-serif"
size="2">  size_t wxMBConv::MB2WC(wchar_t*, const char*, long unsigned int) const</font><br /><font face="sans-serif"
size="2">make[2]:*** [utffile.o] Error 1</font><br /><font face="sans-serif" size="2">make[1]: *** [all-recursive]
Error1</font><br /><font face="sans-serif" size="2">make: *** [all] Error 2</font><br /><br /><br /><font
face="sans-serif"size="2">Any clues on how to fix this? </font><br /><font face="sans-serif" size="2">TIA</font><br
/><fontface="sans-serif" size="2">-patrick</font><br /><br /><font face="sans-serif" size="2"> Patrick Hatcher<br />
Macys.Com<br/></font> 

Re: Compile PgAdIII on OS X error

От
Andreas Pflug
Дата:
Patrick Hatcher wrote:
> 
> utils/utffile.cpp: In member function `off_t wxUtfFile::Read(wxString&, 
> long
>    long int)':
> utils/utffile.cpp:86: error: no matching function for call to 
> `wxMBConv::MB2WC(
>    wxStringBuffer, char*&, long unsigned int)'
> /usr/local/include/wx-2.5/wx/strconv.h:46: error: candidates are: virtual
>    size_t wxMBConv::MB2WC(wchar_t*, const char*, long unsigned int) const
> make[2]: *** [utffile.o] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> 
> 
> Any clues on how to fix this?

Full casting is needed on some compilers (e.g. gcc3.4), since they 
aren't able to perform the required casts implicitely any more.

I just commited a patch performing this.

Regards,
Andreas