Re: compile problem

From: Tim Stahlhut <stahta01(at)highstream(dot)net>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: compile problem
Date: 2007-03-13 13:49:56
Message-ID: et6a63$tsu$1@sea.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Hiroshi Saito 2007-03-13 13:57:16 Re: compile problem
Previous Message svn 2007-03-13 13:19:01 SVN Commit by dpage: r6050 - in trunk/pgadmin3/pgadmin: . frm include/utils utils