Re: compile problem - Mailing list pgadmin-hackers

From Tim Stahlhut
Subject Re: compile problem
Date
Msg-id et6a63$tsu$1@sea.gmane.org
Whole thread Raw
In response to compile problem  (Giuseppe Sacco <giuseppe@eppesuigoccas.homedns.org>)
Responses Re: compile problem  (Dave Page <dpage@postgresql.org>)
List pgadmin-hackers
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


pgadmin-hackers by date:

Previous
From: "Hiroshi Saito"
Date:
Subject: keyword and parse from PostgreSQL file.
Next
From: "Tim Stahlhut"
Date:
Subject: Re: compile problem