Обсуждение: Can not build pgadmin3-1.6.0

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

Can not build pgadmin3-1.6.0

От
Bryan Wilkerson
Дата:
Let me start by kicking Novell for deciding to leave these very useful packages out of their latest distribution.

I'm trying to build & install pgadmin3-1.6.0 on a SuSE Linux Enterprise Desktop 10 distro.   The distro does not
includewxWidgets so I downloaded and installed wxWidgets 2.8.0 and then noticed the pgadmin3 requirement for wxWidgets
2.6.xso I did a 'make uninstall' on wxWidgets 2.8.0. I didn't see any signs of wxWidgets on the machine.  So I then
configured,built and installed wxWidgets 2.6.3.   

I have tried configuring wxWidgets using two suggestions I've found:
   ./configure --with-gtk --enable-gtk2 --enable-unicode --enable-mimetype=yes   ./configure --enable-unicode

Regardless, I get the following when trying to ./configure pdadmin:

checking libpq-fe.h usability... yes
checking libpq-fe.h presence... yes
checking for libpq-fe.h... yes
checking PostgreSQL in /usr/local/pgsql... ok
checking wxWidgets in /usr/local... failed
configure: error: Your wxWidgets installation cannot support pgAdmin in the selected configuration. This may be because
itwas configured without the --enable-unicode option, or the combination of dynamic/static linking and debug/non-debug
librariesselected did not match any installed wxWidgets libraries. 
bryanw@f177a:~/src/pgadmin3-1.6.0>

Please help,

-bryan






Re: Can not build pgadmin3-1.6.0

От
Devrim GUNDUZ
Дата:
Hello,

On Wed, 2006-11-22 at 12:10 -0800, Bryan Wilkerson wrote:

> I'm trying to build & install pgadmin3-1.6.0 on a SuSE Linux
> Enterprise Desktop 10 distro.   The distro does not include wxWidgets
> so I downloaded and installed wxWidgets 2.8.0 and then noticed the
> pgadmin3 requirement for wxWidgets 2.6.x so I did a 'make uninstall'
> on wxWidgets 2.8.0. I didn't see any signs of wxWidgets on the
> machine.  So I then configured, built and installed wxWidgets
> 2.6.3.

You need to stick to wx 2.7.0+, or better, 2.8.0rc1 (current version)
pgAdmin requires 2.7.0 and above. None of the distros ship this version;
because it is not stable yet.

Regards,

--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/





Re: Can not build pgadmin3-1.6.0

От
Dave Page
Дата:
Devrim GUNDUZ wrote:
> Hello,
> 
> On Wed, 2006-11-22 at 12:10 -0800, Bryan Wilkerson wrote:
> 
>> I'm trying to build & install pgadmin3-1.6.0 on a SuSE Linux
>> Enterprise Desktop 10 distro.   The distro does not include wxWidgets
>> so I downloaded and installed wxWidgets 2.8.0 and then noticed the
>> pgadmin3 requirement for wxWidgets 2.6.x so I did a 'make uninstall'
>> on wxWidgets 2.8.0. I didn't see any signs of wxWidgets on the
>> machine.  So I then configured, built and installed wxWidgets
>> 2.6.3.   
> 
> You need to stick to wx 2.7.0+, or better, 2.8.0rc1 (current version)
> pgAdmin requires 2.7.0 and above.

If you use 2.8, you will need to configure pgAdmin with 
--with-wx-version=2.8.

Regards, Dave.


Re: Can not build pgadmin3-1.6.0

От
Bryan Wilkerson
Дата:
Thanks for the tips.  That got me past the ./configure of pgadmin3.  Now I get an error during compile:

./pgAdmin3.cpp: In member function ‘virtual bool pgAdmin3::OnInit()’:

./pgAdmin3.cpp:365: error: ‘wxOGLInitialize’ was not declared in this scope

Is there another flag I need to configure wxWidgets with?   Again,  I used       ./configure --with-gtk --enable-gtk2
--enable-unicode--enable-mimetype=yes  
to build wxWidgets-2.8.0-rc1.   I can't find the documents on compiling and installing.  I'm sure I missed them.

Full text of ./configure and make of pgAdmin below...


bryanw@f177a:~/src/pgadmin3-1.6.0> ./configure --with-wx-version=2.8
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working strtod... yes
checking for gethostbyname... yes
checking for inet_ntoa... yes
checking for memmove... yes
checking for memset... yes
checking for strchr... yes
checking for PQexec in -lpq... yes
checking for SSL_connect in -lpq... no
checking for krb5_free_principal in -lpq... no
checking libpq-fe.h usability... yes
checking libpq-fe.h presence... yes
checking for libpq-fe.h... yes
checking PostgreSQL in /usr/local/pgsql... ok
checking wxWidgets in /usr/local... ok
checking libxml2 in /usr... ok
checking libxml2 version... ok
checking libxslt in /usr... ok
configure: creating ./config.status
config.status: creating Makefile
config.status: creating i18n/Makefile
config.status: creating src/Makefile
config.status: creating pkg/Makefile
config.status: creating pkg/debian/Makefile
config.status: creating pkg/mac/Makefile
config.status: creating pkg/mandrake/Makefile
config.status: creating pkg/redhat/Makefile
config.status: creating pkg/slackware/Makefile
config.status: creating pkg/src/Makefile
config.status: creating pkg/suse/Makefile
config.status: creating pkg/win32/Makefile
config.status: creating xtra/Makefile
config.status: creating xtra/pgagent/Makefile
config.status: creating xtra/pgagent/pgaevent/Makefile
config.status: creating xtra/wx-build/Makefile
config.status: creating config.h
config.status: executing depfiles commands

PostgreSQL directory:                   /usr/local/pgsql
PostgreSQL pg_config binary:            /usr/local/pgsql/bin/pg_config
PostgreSQL version:                     PostgreSQL 8.1.5
PostgreSQL SSL support:                 Missing

wxWidgets directory:                    /usr/local
wxWidgets wx-config binary:             /usr/local/bin/wx-config
wxWidgets version:                      wxWidgets 2.8.0

Building a debug version of pgAdmin:    No
Statically linking pgAdmin:             No
Building a Mac OS X appbundle:          No
Include documentation:                  Yes

pgAdmin configuration is now complete. You can now compile and
install pgAdmin using 'make; make install'.

bryanw@f177a:~/src/pgadmin3-1.6.0> make
make  all-recursive
make[1]: Entering directory `/home/bryanw/src/pgadmin3-1.6.0'
Making all in i18n
make[2]: Entering directory `/home/bryanw/src/pgadmin3-1.6.0/i18n'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/bryanw/src/pgadmin3-1.6.0/i18n'
Making all in src
make[2]: Entering directory `/home/bryanw/src/pgadmin3-1.6.0/src'
test -f ./include/svnversion.cpp || touch ./include/svnversion.cpp
test -d ./.svn && ( V=`svnversion ./..` && OV=`cat ./include/svnversion.h | cut -d' ' -f3|tr -d '"'` ; if [ "$V" !=
"$OV"]; then echo "#define VERSION_SVN \"$V\"" > ./include/svnversion.h ; fi ) || true 
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -Wno-non-virtual-dtor
-I../src/include-I../src/agent/include -I../src/slony/include -I/usr/local/pgsql/include
-I/usr/local/lib/wx/include/gtk2-unicode-release-2.8-I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D__WXGTK__-O2 -I/usr/include/libxml2 -I/usr/include/libxml2 -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall
-Wno-non-virtual-dtor-I../src/include -I../src/agent/include -I../src/slony/include  -MT svnversion.o -MD -MP -MF
".deps/svnversion.Tpo"-c -o svnversion.o `test -f './include/svnversion.cpp' || echo './'`./include/svnversion.cpp; \ 
then mv -f ".deps/svnversion.Tpo" ".deps/svnversion.Po"; else rm -f ".deps/svnversion.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -Wno-non-virtual-dtor
-I../src/include-I../src/agent/include -I../src/slony/include -I/usr/local/pgsql/include
-I/usr/local/lib/wx/include/gtk2-unicode-release-2.8-I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D__WXGTK__-O2 -I/usr/include/libxml2 -I/usr/include/libxml2 -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall
-Wno-non-virtual-dtor-I../src/include -I../src/agent/include -I../src/slony/include  -MT pgAdmin3.o -MD -MP -MF
".deps/pgAdmin3.Tpo"-c -o pgAdmin3.o `test -f './pgAdmin3.cpp' || echo './'`./pgAdmin3.cpp; \ 
then mv -f ".deps/pgAdmin3.Tpo" ".deps/pgAdmin3.Po"; else rm -f ".deps/pgAdmin3.Tpo"; exit 1; fi
In file included from ../src/include/pgAdmin3.h:22,                from ./pgAdmin3.cpp:13:
../src/include/ctl/ctlSQLBox.h:17:24: error: wx/stc/stc.h: No such file or directory
./pgAdmin3.cpp:65:24: error: wx/ogl/ogl.h: No such file or directory
/usr/local/include/wx-2.8/wx/hashmap.h: In member function ‘wxLongToLongHashMap_wxImplementation_HashTable::Node**
wxLongToLongHashMap_wxImplementation_HashTable::GetNodePtr(constlong int&) const’: 
/usr/local/include/wx-2.8/wx/hashmap.h:714: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/local/include/wx-2.8/wx/clntdata.h: In member function ‘wxShadowObjectMethods_wxImplementation_HashTable::Node**
wxShadowObjectMethods_wxImplementation_HashTable::GetNodePtr(constwxString&) const’: 
/usr/local/include/wx-2.8/wx/clntdata.h:20: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/local/include/wx-2.8/wx/clntdata.h: In member function ‘wxShadowObjectFields_wxImplementation_HashTable::Node**
wxShadowObjectFields_wxImplementation_HashTable::GetNodePtr(constwxString&) const’: 
/usr/local/include/wx-2.8/wx/clntdata.h:25: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/local/include/wx-2.8/wx/gdicmn.h: In member function ‘wxStringToColourHashMap_wxImplementation_HashTable::Node**
wxStringToColourHashMap_wxImplementation_HashTable::GetNodePtr(constwxString&) const’: 
/usr/local/include/wx-2.8/wx/gdicmn.h:540: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/local/include/wx-2.8/wx/image.h: In member function ‘wxImageHistogramBase_wxImplementation_HashTable::Node**
wxImageHistogramBase_wxImplementation_HashTable::GetNodePtr(constlong unsigned int&) const’: 
/usr/local/include/wx-2.8/wx/image.h:136: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/local/include/wx-2.8/wx/filesys.h: In member function ‘wxFSHandlerHash_wxImplementation_HashTable::Node**
wxFSHandlerHash_wxImplementation_HashTable::GetNodePtr(constvoid* const&) const’: 
/usr/local/include/wx-2.8/wx/filesys.h:176: warning: dereferencing type-punned pointer will break strict-aliasing rules
../src/include/ctl/ctlSQLBox.h: At global scope:
../src/include/ctl/ctlSQLBox.h:25: error: expected class-name before ‘{’ token
../src/include/ctl/ctlSQLBox.h:52: error: ‘wxStyledTextEvent’ has not been declared
../src/include/frmMain.h:155: error: ‘wxStyledTextEvent’ has not been declared
../src/include/frmMain.h: In member function ‘void frmMain::OnCopy(wxCommandEvent&)’:
../src/include/frmMain.h:149: error: ‘class ctlSQLBox’ has no member named ‘Copy’
/usr/include/libxml2/libxml/xmlerror.h: At global scope:
/usr/include/libxml2/libxml/xmlerror.h:837: error: typedef ‘xmlGenericErrorFunc’ is initialized (use __typeof__
instead)
/usr/include/libxml2/libxml/xmlerror.h:868: error: function ‘void xmlParserError(void*, const char*, ...)’ is
initializedlike a variable 
/usr/include/libxml2/libxml/xmlerror.h:872: error: function ‘void xmlParserWarning(void*, const char*, ...)’ is
initializedlike a variable 
/usr/include/libxml2/libxml/xmlerror.h:876: error: function ‘void xmlParserValidityError(void*, const char*, ...)’ is
initializedlike a variable 
/usr/include/libxml2/libxml/xmlerror.h:880: error: function ‘void xmlParserValidityWarning(void*, const char*, ...)’ is
initializedlike a variable 
/usr/include/libxml2/libxml/valid.h:44: error: typedef ‘xmlValidityErrorFunc’ is initialized (use __typeof__ instead)
/usr/include/libxml2/libxml/valid.h:59: error: typedef ‘xmlValidityWarningFunc’ is initialized (use __typeof__ instead)
/usr/include/libxml2/libxml/parser.h:595: error: typedef ‘warningSAXFunc’ is initialized (use __typeof__ instead)
/usr/include/libxml2/libxml/parser.h:605: error: typedef ‘errorSAXFunc’ is initialized (use __typeof__ instead)
/usr/include/libxml2/libxml/parser.h:617: error: typedef ‘fatalErrorSAXFunc’ is initialized (use __typeof__ instead)
/usr/include/libxml2/libxml/relaxng.h:30: error: typedef ‘xmlRelaxNGValidityErrorFunc’ is initialized (use __typeof__
instead)
/usr/include/libxml2/libxml/relaxng.h:31: error: typedef ‘xmlRelaxNGValidityWarningFunc’ is initialized (use __typeof__
instead)
/usr/include/libxml2/libxml/xmlschemas.h:90: error: typedef ‘xmlSchemaValidityErrorFunc’ is initialized (use __typeof__
instead)
/usr/include/libxml2/libxml/xmlschemas.h:91: error: typedef ‘xmlSchemaValidityWarningFunc’ is initialized (use
__typeof__instead) 
/usr/include/libxml2/libxml/xmlwriter.h:73: error: function ‘int xmlTextWriterWriteFormatComment(xmlTextWriter*, const
char*,...)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:78: error: function ‘int xmlTextWriterWriteVFormatComment(xmlTextWriter*, const
char*,char*)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:108: error: function ‘int xmlTextWriterWriteFormatElement(xmlTextWriter*, const
xmlChar*,const char*, ...)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:114: error: function ‘int xmlTextWriterWriteVFormatElement(xmlTextWriter*,
constxmlChar*, const char*, char*)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:126: error: function ‘int xmlTextWriterWriteFormatElementNS(xmlTextWriter*,
constxmlChar*, const xmlChar*, const xmlChar*, const char*, ...)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:134: error: function ‘int xmlTextWriterWriteVFormatElementNS(xmlTextWriter*,
constxmlChar*, const xmlChar*, const xmlChar*, const char*, char*)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:151: error: function ‘int xmlTextWriterWriteFormatRaw(xmlTextWriter*, const
char*,...)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:155: error: function ‘int xmlTextWriterWriteVFormatRaw(xmlTextWriter*, const
char*,char*)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:166: error: function ‘int xmlTextWriterWriteFormatString(xmlTextWriter*, const
char*,...)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:172: error: function ‘int xmlTextWriterWriteVFormatString(xmlTextWriter*, const
char*,char*)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:207: error: function ‘int xmlTextWriterWriteFormatAttribute(xmlTextWriter*,
constxmlChar*, const char*, ...)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:213: error: function ‘int xmlTextWriterWriteVFormatAttribute(xmlTextWriter*,
constxmlChar*, const char*, char*)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:225: error: function ‘int xmlTextWriterWriteFormatAttributeNS(xmlTextWriter*,
constxmlChar*, const xmlChar*, const xmlChar*, const char*, ...)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:233: error: function ‘int xmlTextWriterWriteVFormatAttributeNS(xmlTextWriter*,
constxmlChar*, const xmlChar*, const xmlChar*, const char*, char*)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:260: error: function ‘int xmlTextWriterWriteFormatPI(xmlTextWriter*, const
xmlChar*,const char*, ...)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:265: error: function ‘int xmlTextWriterWriteVFormatPI(xmlTextWriter*, const
xmlChar*,const char*, char*)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:290: error: function ‘int xmlTextWriterWriteFormatCDATA(xmlTextWriter*, const
char*,...)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:294: error: function ‘int xmlTextWriterWriteVFormatCDATA(xmlTextWriter*, const
char*,char*)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:318: error: function ‘int xmlTextWriterWriteFormatDTD(xmlTextWriter*, const
xmlChar*,const xmlChar*, const xmlChar*, const char*, ...)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:325: error: function ‘int xmlTextWriterWriteVFormatDTD(xmlTextWriter*, const
xmlChar*,const xmlChar*, const xmlChar*, const char*, char*)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:356: error: function ‘int xmlTextWriterWriteFormatDTDElement(xmlTextWriter*,
constxmlChar*, const char*, ...)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:362: error: function ‘int xmlTextWriterWriteVFormatDTDElement(xmlTextWriter*,
constxmlChar*, const char*, char*)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:386: error: function ‘int xmlTextWriterWriteFormatDTDAttlist(xmlTextWriter*,
constxmlChar*, const char*, ...)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:392: error: function ‘int xmlTextWriterWriteVFormatDTDAttlist(xmlTextWriter*,
constxmlChar*, const char*, char*)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:417: error: function ‘int
xmlTextWriterWriteFormatDTDInternalEntity(xmlTextWriter*,int, const xmlChar*, const char*, ...)’ is initialized like a
variable
/usr/include/libxml2/libxml/xmlwriter.h:424: error: function ‘int
xmlTextWriterWriteVFormatDTDInternalEntity(xmlTextWriter*,int, const xmlChar*, const char*, char*)’ is initialized like
avariable 
../src/include/frmQuery.h:69: error: ‘wxStyledTextEvent’ has not been declared
../src/include/frmQuery.h:70: error: ‘wxStyledTextEvent’ has not been declared
/usr/local/include/wx-2.8/wx/fs_arc.h: In member function ‘wxArchiveFilenameHashMap_wxImplementation_HashTable::Node**
wxArchiveFilenameHashMap_wxImplementation_HashTable::GetNodePtr(constwxString&) const’: 
/usr/local/include/wx-2.8/wx/fs_arc.h:20: warning: dereferencing type-punned pointer will break strict-aliasing rules
./pgAdmin3.cpp: In member function ‘virtual bool pgAdmin3::OnInit()’:
./pgAdmin3.cpp:365: error: ‘wxOGLInitialize’ was not declared in this scope
make[2]: *** [pgAdmin3.o] Error 1
make[2]: Leaving directory `/home/bryanw/src/pgadmin3-1.6.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bryanw/src/pgadmin3-1.6.0'
make: *** [all] Error 2


----- Original Message ----
From: Dave Page <dpage@postgresql.org>
To: Devrim GUNDUZ <devrim@CommandPrompt.com>
Cc: Bryan Wilkerson <bryanwilkerson@yahoo.com>; pgadmin-support@postgresql.org
Sent: Thursday, November 23, 2006 12:23:14 AM
Subject: Re: [pgadmin-support] Can not build pgadmin3-1.6.0

Devrim GUNDUZ wrote:
> Hello,
>
> On Wed, 2006-11-22 at 12:10 -0800, Bryan Wilkerson wrote:
>
>> I'm trying to build & install pgadmin3-1.6.0 on a SuSE Linux
>> Enterprise Desktop 10 distro.   The distro does not include wxWidgets
>> so I downloaded and installed wxWidgets 2.8.0 and then noticed the
>> pgadmin3 requirement for wxWidgets 2.6.x so I did a 'make uninstall'
>> on wxWidgets 2.8.0. I didn't see any signs of wxWidgets on the
>> machine.  So I then configured, built and installed wxWidgets
>> 2.6.3.
>
> You need to stick to wx 2.7.0+, or better, 2.8.0rc1 (current version)
> pgAdmin requires 2.7.0 and above.

If you use 2.8, you will need to configure pgAdmin with
--with-wx-version=2.8.

Regards, Dave.





Re: Can not build pgadmin3-1.6.0

От
Dave Page
Дата:
Bryan Wilkerson wrote:
> Thanks for the tips.  That got me past the ./configure of pgadmin3.  Now I get an error during compile:
> 
> ./pgAdmin3.cpp: In member function ‘virtual bool pgAdmin3::OnInit()’:
> 
> ./pgAdmin3.cpp:365: error: ‘wxOGLInitialize’ was not declared in this scope
> 
> Is there another flag I need to configure wxWidgets with?   Again,  I used 
>        ./configure --with-gtk --enable-gtk2 --enable-unicode --enable-mimetype=yes 
> to build wxWidgets-2.8.0-rc1.   I can't find the documents on compiling and installing.  I'm sure I missed them.
> 
> Full text of ./configure and make of pgAdmin below...

Looks like you forgot to build and install wxWidgets' contrib modules.

Regards, Dave.


Re: Can not build pgadmin3-1.6.0

От
"Hiroshi Saito"
Дата:
Hi.

From: "Bryan Wilkerson" <bryanwilkerson@yahoo.com>

> ./pgAdmin3.cpp:365: error: ?wxOGLInitialize' was not declared in this scope

I think you has probably forgotten to include a wxWidgets/contrib module.?

Regards,
Hiroshi Saito



Re: Can not build pgadmin3-1.6.0

От
Bryan Wilkerson
Дата:
Dave Page wrote:
>TIP 4: Have you searched our list archives?
>
>               http://archives.postgresql.org

Yes and wxWidgets returned 801 hits.  Trying to piece together the requirements is time consuming.  An INSTALL text
filewith the definitive instructions could be useful?   I 

----- Original Message ----
From: Dave Page <dpage@postgresql.org>
To: Bryan Wilkerson <bryanwilkerson@yahoo.com>
Cc: Devrim GUNDUZ <devrim@CommandPrompt.com>; pgadmin-support@postgresql.org
Sent: Friday, November 24, 2006 11:08:04 AM
Subject: Re: [pgadmin-support] Can not build pgadmin3-1.6.0

Bryan Wilkerson wrote:
> Thanks for the tips.  That got me past the ./configure of pgadmin3.  Now I get an error during compile:
>
> ./pgAdmin3.cpp: In member function ‘virtual bool pgAdmin3::OnInit()’:
>
> ./pgAdmin3.cpp:365: error: ‘wxOGLInitialize’ was not declared in this scope
>
> Is there another flag I need to configure wxWidgets with?   Again,  I used
>        ./configure --with-gtk --enable-gtk2 --enable-unicode --enable-mimetype=yes
> to build wxWidgets-2.8.0-rc1.   I can't find the documents on compiling and installing.  I'm sure I missed them.
>
> Full text of ./configure and make of pgAdmin below...

Looks like you forgot to build and install wxWidgets' contrib modules.

Regards, Dave.

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
              http://archives.postgresql.org





Re: Can not build pgadmin3-1.6.0

От
Bryan Wilkerson
Дата:
Nevermind,  I found it at the bottom of the source download page: http://www.pgadmin.org/download/source.php  I knew I
overlookedit somewhere.   

Thanks,

-bryan

----- Original Message ----
From: Bryan Wilkerson <bryanwilkerson@yahoo.com>
To: Dave Page <dpage@postgresql.org>
Cc: Devrim GUNDUZ <devrim@CommandPrompt.com>; pgadmin-support@postgresql.org
Sent: Friday, November 24, 2006 11:26:53 AM
Subject: Re: [pgadmin-support] Can not build pgadmin3-1.6.0


Dave Page wrote:
>TIP 4: Have you searched our list archives?
>
>               http://archives.postgresql.org

Yes and wxWidgets returned 801 hits.  Trying to piece together the requirements is time consuming.  An INSTALL text
filewith the definitive instructions could be useful?   I 

----- Original Message ----
From: Dave Page <dpage@postgresql.org>
To: Bryan Wilkerson <bryanwilkerson@yahoo.com>
Cc: Devrim GUNDUZ <devrim@CommandPrompt.com>; pgadmin-support@postgresql.org
Sent: Friday, November 24, 2006 11:08:04 AM
Subject: Re: [pgadmin-support] Can not build pgadmin3-1.6.0

Bryan Wilkerson wrote:
> Thanks for the tips.  That got me past the ./configure of pgadmin3.  Now I get an error during compile:
>
> ./pgAdmin3.cpp: In member function ‘virtual bool pgAdmin3::OnInit()’:
>
> ./pgAdmin3.cpp:365: error: ‘wxOGLInitialize’ was not declared in this scope
>
> Is there another flag I need to configure wxWidgets with?   Again,  I used
>        ./configure --with-gtk --enable-gtk2 --enable-unicode --enable-mimetype=yes
> to build wxWidgets-2.8.0-rc1.   I can't find the documents on compiling and installing.  I'm sure I missed them.
>
> Full text of ./configure and make of pgAdmin below...

Looks like you forgot to build and install wxWidgets' contrib modules.

Regards, Dave.

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
              http://archives.postgresql.org








Re: Can not build pgadmin3-1.6.0

От
Bryan Wilkerson
Дата:
Still no joy.  I have followed all the instructions and now I get this error during compile (tail follows):

...
/usr/include/libxml2/libxml/xmlwriter.h:386: error: function ‘int xmlTextWriterWriteFormatDTDAttlist(xmlTextWriter*,
constxmlChar*, const char*, ...)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:392: error: function ‘int xmlTextWriterWriteVFormatDTDAttlist(xmlTextWriter*,
constxmlChar*, const char*, char*)’ is initialized like a variable 
/usr/include/libxml2/libxml/xmlwriter.h:417: error: function ‘int
xmlTextWriterWriteFormatDTDInternalEntity(xmlTextWriter*,int, const xmlChar*, const char*, ...)’ is initialized like a
variable
/usr/include/libxml2/libxml/xmlwriter.h:424: error: function ‘int
xmlTextWriterWriteVFormatDTDInternalEntity(xmlTextWriter*,int, const xmlChar*, const char*, char*)’ is initialized like
avariable 
/usr/local/include/wx-2.8/wx/fs_arc.h: In member function ‘wxArchiveFilenameHashMap_wxImplementation_HashTable::Node**
wxArchiveFilenameHashMap_wxImplementation_HashTable::GetNodePtr(constwxString&) const’: 
/usr/local/include/wx-2.8/wx/fs_arc.h:20: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[2]: *** [pgAdmin3.o] Error 1
make[2]: Leaving directory `/home/bryanw/src/pgadmin3-1.6.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bryanw/src/pgadmin3-1.6.0'




----- Original Message ----
From: Bryan Wilkerson <bryanwilkerson@yahoo.com>
To: Bryan Wilkerson <bryanwilkerson@yahoo.com>; Dave Page <dpage@postgresql.org>
Cc: Devrim GUNDUZ <devrim@CommandPrompt.com>; pgadmin-support@postgresql.org
Sent: Friday, November 24, 2006 11:37:58 AM
Subject: Re: [pgadmin-support] Can not build pgadmin3-1.6.0

Nevermind,  I found it at the bottom of the source download page: http://www.pgadmin.org/download/source.php  I knew I
overlookedit somewhere.   

Thanks,

-bryan

----- Original Message ----
From: Bryan Wilkerson <bryanwilkerson@yahoo.com>
To: Dave Page <dpage@postgresql.org>
Cc: Devrim GUNDUZ <devrim@CommandPrompt.com>; pgadmin-support@postgresql.org
Sent: Friday, November 24, 2006 11:26:53 AM
Subject: Re: [pgadmin-support] Can not build pgadmin3-1.6.0


Dave Page wrote:
>TIP 4: Have you searched our list archives?
>
>               http://archives.postgresql.org

Yes and wxWidgets returned 801 hits.  Trying to piece together the requirements is time consuming.  An INSTALL text
filewith the definitive instructions could be useful?   I 

----- Original Message ----
From: Dave Page <dpage@postgresql.org>
To: Bryan Wilkerson <bryanwilkerson@yahoo.com>
Cc: Devrim GUNDUZ <devrim@CommandPrompt.com>; pgadmin-support@postgresql.org
Sent: Friday, November 24, 2006 11:08:04 AM
Subject: Re: [pgadmin-support] Can not build pgadmin3-1.6.0

Bryan Wilkerson wrote:
> Thanks for the tips.  That got me past the ./configure of pgadmin3.  Now I get an error during compile:
>
> ./pgAdmin3.cpp: In member function ‘virtual bool pgAdmin3::OnInit()’:
>
> ./pgAdmin3.cpp:365: error: ‘wxOGLInitialize’ was not declared in this scope
>
> Is there another flag I need to configure wxWidgets with?   Again,  I used
>        ./configure --with-gtk --enable-gtk2 --enable-unicode --enable-mimetype=yes
> to build wxWidgets-2.8.0-rc1.   I can't find the documents on compiling and installing.  I'm sure I missed them.
>
> Full text of ./configure and make of pgAdmin below...

Looks like you forgot to build and install wxWidgets' contrib modules.

Regards, Dave.

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
              http://archives.postgresql.org











Re: Can not build pgadmin3-1.6.0

От
Dave Page
Дата:
Bryan Wilkerson wrote:
> Still no joy.  I have followed all the instructions and now I get this error during compile (tail follows):
> 
> ...
> /usr/include/libxml2/libxml/xmlwriter.h:386: error: function ‘int xmlTextWriterWriteFormatDTDAttlist(xmlTextWriter*,
constxmlChar*, const char*, ...)’ is initialized like a variable
 
> /usr/include/libxml2/libxml/xmlwriter.h:392: error: function ‘int xmlTextWriterWriteVFormatDTDAttlist(xmlTextWriter*,
constxmlChar*, const char*, char*)’ is initialized like a variable
 
> /usr/include/libxml2/libxml/xmlwriter.h:417: error: function ‘int
xmlTextWriterWriteFormatDTDInternalEntity(xmlTextWriter*,int, const xmlChar*, const char*, ...)’ is initialized like a
variable
> /usr/include/libxml2/libxml/xmlwriter.h:424: error: function ‘int
xmlTextWriterWriteVFormatDTDInternalEntity(xmlTextWriter*,int, const xmlChar*, const char*, char*)’ is initialized like
avariable
 
> /usr/local/include/wx-2.8/wx/fs_arc.h: In member function
‘wxArchiveFilenameHashMap_wxImplementation_HashTable::Node**
wxArchiveFilenameHashMap_wxImplementation_HashTable::GetNodePtr(constwxString&) const’:
 
> /usr/local/include/wx-2.8/wx/fs_arc.h:20: warning: dereferencing type-punned pointer will break strict-aliasing
rules
> make[2]: *** [pgAdmin3.o] Error 1
> make[2]: Leaving directory `/home/bryanw/src/pgadmin3-1.6.0/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/bryanw/src/pgadmin3-1.6.0'

That looks remarkably similar to a problem reported on Suse 10.1 earlier 
- it was resolved per the following message: 
http://www.pgadmin.org/archives/pgadmin-support/2006-11/msg00183.php

Regards, Dave.


Re: Can not build pgadmin3-1.6.0

От
Bryan Wilkerson
Дата:
Thanks for all your help Dave.  Yes, it was.  The issue appears to be that libxml2-2.6.23-15.2, that ships with SLED10,
isnot compatible. Version 2.6.24-0.pm.1 available at http://packman.links2linux.de/:  does work with pgadmin3-1.6.0.    

I feel the hints at self service, but piecing this together from anecdotal evidence is never going to be as efficient
asa configure script that does it's job and detects dependency failures.   

I had been saying to myself through the various obstacles, "I hope this is worth it."   Now seeing it running and
workingwith my database a little, I see that it is well worth it and some.  I can give you a patch to configure if
you'lluse it that detects the two issues and the lack of the libpq.so library and, perhaps more important, tells the
userwhat exactly they need to do, which versions are known to work etc.  I don't have the time or resources to do a
propertest and try to build on a very vanilla distro install to figure out what else is missing from the dependency
check.

-bryan

----- Original Message ----
From: Dave Page <dpage@postgresql.org>
To: Bryan Wilkerson <bryanwilkerson@yahoo.com>
Cc: Devrim GUNDUZ <devrim@CommandPrompt.com>; pgadmin-support@postgresql.org
Sent: Friday, November 24, 2006 12:29:09 PM
Subject: Re: [pgadmin-support] Can not build pgadmin3-1.6.0

Bryan Wilkerson wrote:
> Still no joy.  I have followed all the instructions and now I get this error during compile (tail follows):
>
> ...
> /usr/include/libxml2/libxml/xmlwriter.h:386: error: function ‘int xmlTextWriterWriteFormatDTDAttlist(xmlTextWriter*,
constxmlChar*, const char*, ...)’ is initialized like a variable 
> /usr/include/libxml2/libxml/xmlwriter.h:392: error: function ‘int xmlTextWriterWriteVFormatDTDAttlist(xmlTextWriter*,
constxmlChar*, const char*, char*)’ is initialized like a variable 
> /usr/include/libxml2/libxml/xmlwriter.h:417: error: function ‘int
xmlTextWriterWriteFormatDTDInternalEntity(xmlTextWriter*,int, const xmlChar*, const char*, ...)’ is initialized like a
variable
> /usr/include/libxml2/libxml/xmlwriter.h:424: error: function ‘int
xmlTextWriterWriteVFormatDTDInternalEntity(xmlTextWriter*,int, const xmlChar*, const char*, char*)’ is initialized like
avariable 
> /usr/local/include/wx-2.8/wx/fs_arc.h: In member function
‘wxArchiveFilenameHashMap_wxImplementation_HashTable::Node**
wxArchiveFilenameHashMap_wxImplementation_HashTable::GetNodePtr(constwxString&) const’: 
> /usr/local/include/wx-2.8/wx/fs_arc.h:20: warning: dereferencing type-punned pointer will break strict-aliasing rules
> make[2]: *** [pgAdmin3.o] Error 1
> make[2]: Leaving directory `/home/bryanw/src/pgadmin3-1.6.0/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/bryanw/src/pgadmin3-1.6.0'

That looks remarkably similar to a problem reported on Suse 10.1 earlier
- it was resolved per the following message:
http://www.pgadmin.org/archives/pgadmin-support/2006-11/msg00183.php

Regards, Dave.

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
              http://archives.postgresql.org





Re: Can not build pgadmin3-1.6.0

От
Dave Page
Дата:
Bryan Wilkerson wrote:

> I feel the hints at self service, but piecing this together from > anecdotal evidence is never going to be as
efficientas a configure> script that does it's job and detects dependency failures.
 

Well it does detect if libxml2 is missing, or too old, but I'm still not 
sure what is wrong with the version shipped with Suse. I can only assume 
it's a non-standard version, but I don't know how we can test for that. 
Are there any obvious differences between the Suse and non-Suse versions 
that you can see (assuming you have both around still)?

> I had been saying to myself through the various obstacles, "I hope 
> this is worth it."   Now seeing it running and working with my database 
> a little, I see that it is well worth it and some.  I can give you a 
> patch to configure if you'll use it that detects the two issues and 
> the lack of the libpq.so library and, perhaps more important, tells 
> the user what exactly they need to do, which versions are known to work etc.  

I guess you mean OGL & STC, rather than libpq. But yes, we're happy to 
accept patches to improve configure and appreciate any contributions you 
might make.

Regards, Dave