Unix Technical Forum

compile problem

This is a discussion on compile problem within the pgsql Interfaces Pgadmin Hackers forums, part of the PostgreSQL category; --> Hi all, I am testing pgadmin3 and wxwidget, both from CVS head on a GNU/Linux system. Once I compiled ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces Pgadmin Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 07:42 PM
Giuseppe Sacco
 
Posts: n/a
Default compile problem

Hi all,
I am testing pgadmin3 and wxwidget, both from CVS head on a GNU/Linux
system. Once I compiled and installaed wxwidget and its "contrib"
directory, I get this error while compiling pgAdmin3:

../frm/frmBackupServer.cpp: In member function ‘void frmBackupServer::OnSelectFilename(wxCommandEvent&) ’:
../frm/frmBackupServer.cpp:96: error: ‘wxSAVE’ was not declared in this scope

Is this a problem in my configuration?

Thanks,
Giuseppe

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 07:42 PM
Dave Page
 
Posts: n/a
Default Re: compile problem

Giuseppe Sacco wrote:
> Hi all,
> I am testing pgadmin3 and wxwidget, both from CVS head on a GNU/Linux
> system. Once I compiled and installaed wxwidget and its "contrib"
> directory, I get this error while compiling pgAdmin3:
>
> ./frm/frmBackupServer.cpp: In member function ‘void frmBackupServer::OnSelectFilename(wxCommandEvent&) ’:
> ./frm/frmBackupServer.cpp:96: error: ‘wxSAVE’ was not declared in this scope
>
> Is this a problem in my configuration?


It might be a change in wxWidgets CVS head. We only support 2.8.0 at the
moment. pgAdmin SVN trunk certainly builds OK for me on Linux.

Regards, Dave.

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-17-2008, 07:42 PM
Tim Stahlhut
 
Posts: n/a
Default Re: compile problem

Dave Page wrote:

> Giuseppe Sacco wrote:
>> Hi all,
>> I am testing pgadmin3 and wxwidget, both from CVS head on a GNU/Linux
>> system. Once I compiled and installaed wxwidget and its "contrib"
>> directory, I get this error while compiling pgAdmin3:
>>
>> ./frm/frmBackupServer.cpp: In member function ¡void frmBackupServer::OnSelectFilename(wxCommandEvent&) ¢:
>> ./frm/frmBackupServer.cpp:96: error: ¡wxSAVE¢ was not declared in this scope
>>
>> Is this a problem in my configuration?

>
> It might be a change in wxWidgets CVS head. We only support 2.8.0 at the
> moment. pgAdmin SVN trunk certainly builds OK for me on Linux.
>
> Regards, Dave.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: You can help support the PostgreSQL project by donating at
>
> http://www.postgresql.org/about/donate


Sorry if this is a duplicate, I waited over two hours and my first post
never showed.

¡wxSAVE¢ was renamed to wxFD_SAVE when WXWIN_COMPATIBILITY_2_6=0 which
is the default for 2.9 builds now (cvs head is 2.9)

Tim S




---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-17-2008, 07:42 PM
Dave Page
 
Posts: n/a
Default Re: compile problem

Tim Stahlhut wrote:
> Dave Page wrote:
>
>> Giuseppe Sacco wrote:
>>> Hi all,
>>> I am testing pgadmin3 and wxwidget, both from CVS head on a GNU/Linux
>>> system. Once I compiled and installaed wxwidget and its "contrib"
>>> directory, I get this error while compiling pgAdmin3:
>>>
>>> ./frm/frmBackupServer.cpp: In member function ¡void frmBackupServer::OnSelectFilename(wxCommandEvent&) ¢:
>>> ./frm/frmBackupServer.cpp:96: error: ¡wxSAVE¢ was not declared in this scope
>>>
>>> Is this a problem in my configuration?

>> It might be a change in wxWidgets CVS head. We only support 2.8.0 at the
>> moment. pgAdmin SVN trunk certainly builds OK for me on Linux.

>
> Sorry if this is a duplicate, I waited over two hours and my first post
> never showed.


Sorry, I was sleeping - and you did email to say cancel the post!

> ¡wxSAVE¢ was renamed to wxFD_SAVE when WXWIN_COMPATIBILITY_2_6=0 which
> is the default for 2.9 builds now (cvs head is 2.9)


Thanks, will fix.

Regards, Dave.

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-17-2008, 07:42 PM
Hiroshi Saito
 
Posts: n/a
Default Re: compile problem

Hi Dave.

From: "Dave Page"
>
> Sorry, I was sleeping - and you did email to say cancel the post!
>
>> ?wxSAVE was renamed to wxFD_SAVE when WXWIN_COMPATIBILITY_2_6=0 which
>> is the default for 2.9 builds now (cvs head is 2.9)


Umm, I am confused for a moment.....
as for wxWidgets-2.8.0, WXWIN_COMPATIBILITY_2_6=1?

c:\home\pgadmin3-1.7.0b\pgadmin\frm\frmoptions.cpp(324) : error C2027: [snip-japanese] 'wxFile' [snip-japanese]
c:\home\wxwidgets-2.8.0\include\wx\filename.h(32) : 'wxFile' [snip-japanese]

#include <wx/file.h> add the frmoptions.cpp is normal finished.

About which does this think to be correct?

Regards,
Hiroshi Saito



---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-17-2008, 07:42 PM
Hiroshi Saito
 
Posts: n/a
Default Re: compile problem

Hi Tim-san.

> Yes, wxWidgets-2.8 has WXWIN_COMPATIBILITY_2_6=1 this is set in setup.h for
> windows users and passed as an option for Linux Users when building
> wxWidgets. If, you no longer support your application under wxWidgets 2.6 or
> below I would just rename them all they are listed in wx/filedlg.h. If you
> still support 2.6 I would set WXWIN_COMPATIBILITY_2_6=1 in setup.h till you
> get the other errors fixed first compiling against 2.9 (cvs-head)
>
> Tim S


Ahh, Indeed, Version 2.9 was understood. thanks!!
However, The problem has occurred to present SVN(pgadmin3) in wxWidgets 2.8.0.
I thought it was problem.?_?

Dave is thought to have forgotten this?
#include <wx/file.h> add the frmoptions.cpp is normal finished.

Regards,
Hiroshi Saito



---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-17-2008, 07:42 PM
Hiroshi Saito
 
Posts: n/a
Default Re: compile problem

Hi Tim-san.

>I would check your setup.h file, it is never safe to assume what values is
> in it.
> Check both include\wx\msw\setup.h and the one(s) under sub-folders in the
> folder lib\
>
> The ones under lib\ are the ones that should be used in compiling clients
> apps, but this starts out as a copy of include\wx\msw\setup.h
> Which in turn is a copy of include\wx\msw\setup0.h
>
> The line to verify is this one
>
> #define WXWIN_COMPATIBILITY_2_6 1


Um, we have the recommends xtra/wx-build/setup0-msw-2.8.h
It has already #define WXWIN_COMPATIBILITY_2_6 1

>
> Note, wxWidgets 2.8.2 is do to be released today, if internal testing works
> well.


Ah, It is a good news. Thanks!

Regards,
Hiroshi Saito


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-17-2008, 07:42 PM
Tim Stahlhut
 
Posts: n/a
Default Re: compile problem

Dave Page wrote:

> Tim Stahlhut wrote:
>> Dave Page wrote:
>>
>>> Giuseppe Sacco wrote:
>>>> Hi all,
>>>> I am testing pgadmin3 and wxwidget, both from CVS head on a GNU/Linux
>>>> system. Once I compiled and installaed wxwidget and its "contrib"
>>>> directory, I get this error while compiling pgAdmin3:
>>>>
>>>> ./frm/frmBackupServer.cpp: In member function ¡void frmBackupServer::OnSelectFilename(wxCommandEvent&) ¢:
>>>> ./frm/frmBackupServer.cpp:96: error: ¡wxSAVE¢ was not declared in this scope
>>>>
>>>> Is this a problem in my configuration?
>>> It might be a change in wxWidgets CVS head. We only support 2.8.0 at the
>>> moment. pgAdmin SVN trunk certainly builds OK for me on Linux.

>>
>> Sorry if this is a duplicate, I waited over two hours and my first post
>> never showed.

>
> Sorry, I was sleeping - and you did email to say cancel the post!
>
>> ¡wxSAVE¢ was renamed to wxFD_SAVE when WXWIN_COMPATIBILITY_2_6=0 which
>> is the default for 2.9 builds now (cvs head is 2.9)

>
> Thanks, will fix.
>
> Regards, Dave.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match


Sorry, about my misunderstanding the permission system.
Here's a subset of a patch I did for codeblocks to get 2.9 to work, they
are maintaining 2.6 support as primary. These constants were everywhere
so I added the below code to the application common header.

See wx/filedlg.h for the changes.

#if wxCHECK_VERSION(2, 8, 0) && !(WXWIN_COMPATIBILITY_2_6)
// Note the following defines need removed
// when CodeBlocks support for wxWidgets 2.6 is dropped
#define wxOPEN wxFD_OPEN
#define wxFILE_MUST_EXIST wxFD_FILE_MUST_EXIST
#define wxMULTIPLE wxFD_MULTIPLE
#define wxSAVE wxFD_SAVE
#define wxOVERWRITE_PROMPT wxFD_OVERWRITE_PROMPT
#define wxCHANGE_DIR wxFD_CHANGE_DIR
#endif



---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-17-2008, 07:42 PM
Tim Stahlhut
 
Posts: n/a
Default Re: compile problem

Yes, wxWidgets-2.8 has WXWIN_COMPATIBILITY_2_6=1 this is set in setup.h for
windows users and passed as an option for Linux Users when building
wxWidgets. If, you no longer support your application under wxWidgets 2.6 or
below I would just rename them all they are listed in wx/filedlg.h. If you
still support 2.6 I would set WXWIN_COMPATIBILITY_2_6=1 in setup.h till you
get the other errors fixed first compiling against 2.9 (cvs-head)

Tim S

-----Original Message-----
From: Hiroshi Saito [mailto:z-saito@guitar.ocn.ne.jp]
Sent: Tuesday, March 13, 2007 9:57 AM
To: Dave Page; Tim Stahlhut
Cc: pgadmin-hackers@postgresql.org
Subject: Re: [pgadmin-hackers] compile problem

Hi Dave.

From: "Dave Page"
>
> Sorry, I was sleeping - and you did email to say cancel the post!
>
>> ?wxSAVE was renamed to wxFD_SAVE when WXWIN_COMPATIBILITY_2_6=0
>> which is the default for 2.9 builds now (cvs head is 2.9)


Umm, I am confused for a moment.....
as for wxWidgets-2.8.0, WXWIN_COMPATIBILITY_2_6=1?

c:\home\pgadmin3-1.7.0b\pgadmin\frm\frmoptions.cpp(324) : error C2027:
[snip-japanese] 'wxFile' [snip-japanese]
c:\home\wxwidgets-2.8.0\include\wx\filename.h(32) : 'wxFile' [snip-japanese]

#include <wx/file.h> add the frmoptions.cpp is normal finished.

About which does this think to be correct?

Regards,
Hiroshi Saito



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.9/719 - Release Date: 3/12/2007
8:41 AM


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.9/719 - Release Date: 3/12/2007
8:41 AM



---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-17-2008, 07:42 PM
Tim Stahlhut
 
Posts: n/a
Default Re: compile problem

I would check your setup.h file, it is never safe to assume what values is
in it.
Check both include\wx\msw\setup.h and the one(s) under sub-folders in the
folder lib\

The ones under lib\ are the ones that should be used in compiling clients
apps, but this starts out as a copy of include\wx\msw\setup.h
Which in turn is a copy of include\wx\msw\setup0.h

The line to verify is this one

#define WXWIN_COMPATIBILITY_2_6 1

Note, wxWidgets 2.8.2 is do to be released today, if internal testing works
well.

-----Original Message-----
From: Hiroshi Saito [mailto:z-saito@guitar.ocn.ne.jp]
Sent: Tuesday, March 13, 2007 10:24 AM
To: Tim Stahlhut; 'Dave Page'
Cc: pgadmin-hackers@postgresql.org
Subject: Re: [pgadmin-hackers] compile problem

Hi Tim-san.

> Yes, wxWidgets-2.8 has WXWIN_COMPATIBILITY_2_6=1 this is set in
> setup.h for windows users and passed as an option for Linux Users when
> building wxWidgets. If, you no longer support your application under
> wxWidgets 2.6 or below I would just rename them all they are listed in
> wx/filedlg.h. If you still support 2.6 I would set
> WXWIN_COMPATIBILITY_2_6=1 in setup.h till you get the other errors
> fixed first compiling against 2.9 (cvs-head)
>
> Tim S


Ahh, Indeed, Version 2.9 was understood. thanks!!
However, The problem has occurred to present SVN(pgadmin3) in wxWidgets
2.8.0.
I thought it was problem.?_?

Dave is thought to have forgotten this?
#include <wx/file.h> add the frmoptions.cpp is normal finished.

Regards,
Hiroshi Saito



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.9/719 - Release Date: 3/12/2007
8:41 AM


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.9/719 - Release Date: 3/12/2007
8:41 AM



---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:25 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com