Thread: Error when trying to build on Ubunt 11.10

Error when trying to build on Ubunt 11.10

From
Tim Uckun
Date:
I am getting the following error when running make.  Configure went smoothly.

./pgAdmin3.cpp: In function ‘wxAppConsole* wxCreateApp()’:
./pgAdmin3.cpp:117:1: error: cannot allocate an object of abstract
type ‘pgAdmin3’
../pgadmin/include/pgAdmin3.h:147:7: note:   because the following
virtual functions are pure within ‘pgAdmin3’:
/usr/include/wx-2.8/wx/app.h:89:17: note:     virtual int wxAppConsole::OnRun()
./pgAdmin3.cpp: At global scope:
./pgAdmin3.cpp:142:1: error: invalid use of incomplete type ‘struct wxFrame’
/usr/include/wx-2.8/wx/utils.h:50:28: error: forward declaration of
‘struct wxFrame’
./pgAdmin3.cpp:146:16: error: ‘wxCommandEvent’ has not been declared
./pgAdmin3.cpp:147:2: error: ‘wxListBox’ does not name a type
./pgAdmin3.cpp:152:1: error: incomplete type ‘wxFrame’ used in nested
name specifier
./pgAdmin3.cpp:153:2: error: invalid use of non-static member function
‘void frmDlgTest::OnSelect(int&)’
./pgAdmin3.cpp:153:2: error: ‘wxCommandEventHandler’ was not declared
in this scope
./pgAdmin3.cpp: In constructor ‘frmDlgTest::frmDlgTest()’:
./pgAdmin3.cpp:157:28: error: type ‘wxFrame’ is not a direct base of
‘frmDlgTest’
./pgAdmin3.cpp:159:2: error: ‘dlgList’ was not declared in this scope
./pgAdmin3.cpp:159:16: error: expected type-specifier before ‘wxListBox’
./pgAdmin3.cpp:159:16: error: expected ‘;’ before ‘wxListBox’
./pgAdmin3.cpp: At global scope:
./pgAdmin3.cpp:182:27: error: variable or field ‘OnSelect’ declared void
./pgAdmin3.cpp:182:27: error: ‘wxCommandEvent’ was not declared in this scope
./pgAdmin3.cpp:182:43: error: ‘ev’ was not declared in this scope
make[3]: *** [pgAdmin3.o] Error 1
make[3]: Leaving directory
`/usr/local/home/tim/Downloads/pgadmin3-1.14.0/pgadmin'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/usr/local/home/tim/Downloads/pgadmin3-1.14.0/pgadmin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/home/tim/Downloads/pgadmin3-1.14.0'
make: *** [all] Error 2
/usr/local/home/tim/Downloads/pgadmin3-1.14.0 $


Re: Error when trying to build on Ubunt 11.10

From
Guillaume Lelarge
Date:
On Thu, 2011-10-27 at 16:29 +1300, Tim Uckun wrote:
> I am getting the following error when running make.  Configure went smoothly.
> 
> ./pgAdmin3.cpp: In function ‘wxAppConsole* wxCreateApp()’:
> ./pgAdmin3.cpp:117:1: error: cannot allocate an object of abstract
> type ‘pgAdmin3’
> ../pgadmin/include/pgAdmin3.h:147:7: note:   because the following
> virtual functions are pure within ‘pgAdmin3’:
> /usr/include/wx-2.8/wx/app.h:89:17: note:     virtual int wxAppConsole::OnRun()
> ./pgAdmin3.cpp: At global scope:
> ./pgAdmin3.cpp:142:1: error: invalid use of incomplete type ‘struct wxFrame’
> /usr/include/wx-2.8/wx/utils.h:50:28: error: forward declaration of
> ‘struct wxFrame’
> ./pgAdmin3.cpp:146:16: error: ‘wxCommandEvent’ has not been declared
> ./pgAdmin3.cpp:147:2: error: ‘wxListBox’ does not name a type
> ./pgAdmin3.cpp:152:1: error: incomplete type ‘wxFrame’ used in nested
> name specifier
> ./pgAdmin3.cpp:153:2: error: invalid use of non-static member function
> ‘void frmDlgTest::OnSelect(int&)’
> ./pgAdmin3.cpp:153:2: error: ‘wxCommandEventHandler’ was not declared
> in this scope
> ./pgAdmin3.cpp: In constructor ‘frmDlgTest::frmDlgTest()’:
> ./pgAdmin3.cpp:157:28: error: type ‘wxFrame’ is not a direct base of
> ‘frmDlgTest’
> ./pgAdmin3.cpp:159:2: error: ‘dlgList’ was not declared in this scope
> ./pgAdmin3.cpp:159:16: error: expected type-specifier before ‘wxListBox’
> ./pgAdmin3.cpp:159:16: error: expected ‘;’ before ‘wxListBox’
> ./pgAdmin3.cpp: At global scope:
> ./pgAdmin3.cpp:182:27: error: variable or field ‘OnSelect’ declared void
> ./pgAdmin3.cpp:182:27: error: ‘wxCommandEvent’ was not declared in this scope
> ./pgAdmin3.cpp:182:43: error: ‘ev’ was not declared in this scope
> make[3]: *** [pgAdmin3.o] Error 1
> make[3]: Leaving directory
> `/usr/local/home/tim/Downloads/pgadmin3-1.14.0/pgadmin'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory
> `/usr/local/home/tim/Downloads/pgadmin3-1.14.0/pgadmin'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/home/tim/Downloads/pgadmin3-1.14.0'
> make: *** [all] Error 2
> /usr/local/home/tim/Downloads/pgadmin3-1.14.0 $
> 

All this probably means it doesn't find the wxWidgets headers. How did
you do the configure step? can you tell us a bit more on your way to get
the whole thing?


-- 
Guillaume http://blog.guillaume.lelarge.info http://www.dalibo.com



Re: Error when trying to build on Ubunt 11.10

From
Tim Uckun
Date:
> All this probably means it doesn't find the wxWidgets headers. How did
> you do the configure step? can you tell us a bit more on your way to get
> the whole thing?


I ran configure and it complained about missing wxwidgets. I did an
apt-get install on wxwidgets 2.8 and the configure went through (see
below).  I then did a make and ran into that error.

--- configure output

PostgreSQL directory:            /usr
PostgreSQL pg_config binary:        /usr/bin/pg_config
PostgreSQL version:            PostgreSQL 9.1.1

PostgreSQL PQconninfoParse support:     Present
PostgreSQL SSL support:            Missing

wxWidgets directory:            /usr
wxWidgets wx-config binary:        /usr/bin/wx-config
wxWidgets version:            wxWidgets 2.8.11

libxml2 directory:            /usr
libxml2 xml2-config binary:        /usr/bin/xml2-config
libxml2 version:            libxml2 2.7.8

libxslt directory:            /usr
libxslt xslt-config binary:        /usr/bin/xslt-config
libxslt version:            libxslt 1.1.26

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

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


Re: Error when trying to build on Ubunt 11.10

From
Tim Uckun
Date:
I installed a couple of -dev packages and got a little further. Now I
get this error.


./db/keywords.c:33:27: fatal error: parser/kwlist.h: No such file or directory
compilation terminated.
make[3]: *** [keywords.o] Error 1
make[3]: Leaving directory
`/usr/local/home/tim/Downloads/pgadmin3-1.14.0/pgadmin'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/usr/local/home/tim/Downloads/pgadmin3-1.14.0/pgadmin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/home/tim/Downloads/pgadmin3-1.14.0'
make: *** [all] Error 2


Re: Error when trying to build on Ubunt 11.10

From
Guillaume Lelarge
Date:
On Fri, 2011-10-28 at 11:59 +1300, Tim Uckun wrote:
> I installed a couple of -dev packages and got a little further. Now I
> get this error.
> 
> 
> ./db/keywords.c:33:27: fatal error: parser/kwlist.h: No such file or directory
> compilation terminated.
> make[3]: *** [keywords.o] Error 1
> make[3]: Leaving directory
> `/usr/local/home/tim/Downloads/pgadmin3-1.14.0/pgadmin'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory
> `/usr/local/home/tim/Downloads/pgadmin3-1.14.0/pgadmin'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/home/tim/Downloads/pgadmin3-1.14.0'
> make: *** [all] Error 2
> 

These are part of the PostgreSQL headers. I heard about it before but
couldn't find the thread about it. Search in the archives, you may find
your answer there.


-- 
Guillaume http://blog.guillaume.lelarge.info http://www.dalibo.com