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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| ||||
| 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 |
| Thread Tools | |
| Display Modes | |
|
|