Обсуждение: compile problem

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

compile problem

От
Giuseppe Sacco
Дата:
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

Re: compile problem

От
Dave Page
Дата:
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.

Re: compile problem

От
Tim Stahlhut
Дата:
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



Re: compile problem

От
Dave Page
Дата:
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.

Re: compile problem

От
"Hiroshi Saito"
Дата:
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



Re: compile problem

От
"Hiroshi Saito"
Дата:
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



Re: compile problem

От
"Hiroshi Saito"
Дата:
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


Re: compile problem

От
Tim Stahlhut
Дата:
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


Re: compile problem

От
"Tim Stahlhut"
Дата:
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



Re: compile problem

От
"Tim Stahlhut"
Дата:
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



Re: compile problem

От
Dave Page
Дата:
Tim Stahlhut wrote:
> Sorry, about my misunderstanding the permission system.

No problem at all.

> 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

Yup, it was just two wxSAVE's. Everything else is OK. We only support
2.8 so I've just fixed those two occurances.

Cheers, Dave

Re: compile problem

От
Dave Page
Дата:
Tim Stahlhut wrote:
> Note, wxWidgets 2.8.2 is do to be released today, if internal testing works
> well.

Oh - what happened to 2.8.1?

Regards, Dave.

Re: compile problem

От
"Tim Stahlhut"
Дата:
It failed windows testing, but it may appear on Macs since Apple was
supposed to be using it in their new release of OSX.

Tim S

-----Original Message-----
From: Dave Page [mailto:dpage@postgresql.org]
Sent: Tuesday, March 13, 2007 11:23 AM
To: Tim Stahlhut
Cc: 'Hiroshi Saito'; pgadmin-hackers@postgresql.org
Subject: Re: [pgadmin-hackers] compile problem

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

Oh - what happened to 2.8.1?

Regards, Dave.

--
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



Re: compile problem

От
Dave Page
Дата:
Tim Stahlhut wrote:
> It failed windows testing, but it may appear on Macs since Apple was
> supposed to be using it in their new release of OSX.

OK, thanks. I'll resist the urge to upgrade to Leopard just for that!

Regards, Dave

Found a bug in frmIndexcheck.xrc, is it still being used?

От
Tim Stahlhut
Дата:
FYI:

Found a bug in frmIndexcheck.xrc, the class wxCheckList was renamed
wxCheckListBox in wxWidgets 2.6, so it works in 2.6 with compatible
support for 2.4 on, but under 2.8 by default 2.4 compatible
support is off. So, if this XRC is still being used it will have a
runtime error.

Tim S

Index: pgadmin/ui/frmIndexcheck.xrc
===================================================================
--- pgadmin/ui/frmIndexcheck.xrc    (revision 6050)
+++ pgadmin/ui/frmIndexcheck.xrc    (working copy)
@@ -8,7 +8,7 @@
       <object class="notebookpage">
         <label>Selection</label>
         <object class="wxPanel" name="pnlSelection">
-          <object class="wxCheckList" name="chkList">
+          <object class="wxCheckListBox" name="chkList">
             <content/>
             <pos>2,3d</pos>
             <size>183,234d</size>



Re: Found a bug in frmIndexcheck.xrc, is it still being used?

От
Dave Page
Дата:
Tim Stahlhut wrote:
> FYI:
>
> Found a bug in frmIndexcheck.xrc, the class wxCheckList was renamed
> wxCheckListBox in wxWidgets 2.6, so it works in 2.6 with compatible
> support for 2.4 on, but under 2.8 by default 2.4 compatible
> support is off. So, if this XRC is still being used it will have a
> runtime error.

I committed this to SVN, then promptly realised that code is dead anyway
:-(. It's all gone now.

But thanks anyway :-)

Regards, Dave

Re: compile problem

От
Giuseppe Sacco
Дата:
Hi all,

Il giorno mar, 13/03/2007 alle 15.22 +0000, Dave Page ha scritto:
[...]
> > #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
>
> Yup, it was just two wxSAVE's. Everything else is OK. We only support
> 2.8 so I've just fixed those two occurances.

I just recompiled from CVS HEAD. Now the build goes to the end, but when
I run the application and click on my first database connection, I get
this message: "An error has occurred: Unknown style flag
wxDIALOG_MODAL". Then I press [OK] and I get the normal window where I
type my password. I type the wrong password and get a "segmentation
fault" :-(

Should I just rebuild everything with wxWindget 2.6?

Thanks,
Giuseppe

Re: compile problem

От
Dave Page
Дата:
Giuseppe Sacco wrote:
> Hi all,
>
> Il giorno mar, 13/03/2007 alle 15.22 +0000, Dave Page ha scritto:
> [...]
>>> #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
>> Yup, it was just two wxSAVE's. Everything else is OK. We only support
>> 2.8 so I've just fixed those two occurances.
>
> I just recompiled from CVS HEAD. Now the build goes to the end, but when
> I run the application and click on my first database connection, I get
> this message: "An error has occurred: Unknown style flag
> wxDIALOG_MODAL". Then I press [OK] and I get the normal window where I
> type my password. I type the wrong password and get a "segmentation
> fault" :-(
>
> Should I just rebuild everything with wxWindget 2.6?

No, use 2.8, as that's what we support. I'm happy to accept patches to
update for deprecated constants in wx2.9, but I've got too much to do at
the moment to bust a gut trying to track them all down myself -
especially given that we're unlikely to see a stable wxWidgets 2.10 for
quite some time.

Regards, Dave