From hiben@tzi.de Sun Dec 2 12:06:33 2007 From: hiben@tzi.de (Hendrik Iben) Date: Sun, 02 Dec 2007 13:06:33 +0100 Subject: [OTR-dev] Building otrproxy-0.3.1 with wxGTK-2.6 Message-ID: <47529FC9.5020904@tzi.de> This is a multi-part message in MIME format. --------------050700050707040704050001 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Hi, I'm just trying to get started using OTR and was firsted stopped when trying to build otrproxy. My linux distribution (Gentoo) does not support wxWindows 2.5 anymore but wxGTK 2.6. The configure script is unable to use the 2.6 libraries on my system and has some other problems. After some trial-and-error I was able to solve my problems with a small patch and maybe this is of use for somebody else. I'm posting this to the user- and dev-mailing-list because I am not sure where 'patching the source' fits... :-) This patch only messes with the GUI-code and was tested with wxGTK-2.6.3.3 on x86 and 2.6.4.0 on amd64. Technically this patch only makes the linker use the non-static wxGTK-libraries and resolves an ambigous constructor. Best regards, Hendrik --------------050700050707040704050001 Content-Type: text/plain; name="0.3.1-wxGTK-2.6.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="0.3.1-wxGTK-2.6.patch" diff -Naur otrproxy-0.3.1/configure otrproxy-0.3.1-wxGTK-2.6/configure --- otrproxy-0.3.1/configure 2005-11-02 23:28:29.000000000 +0100 +++ otrproxy-0.3.1-wxGTK-2.6/configure 2007-12-01 11:03:59.000000000 +0100 @@ -3946,7 +3946,7 @@ echo "$as_me:$LINENO: checking for wxWindows static library" >&5 echo $ECHO_N "checking for wxWindows static library... $ECHO_C" >&6 - WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs` + WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --libs` if test -n "$WX_LIBS_STATIC"; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 diff -Naur otrproxy-0.3.1/wxui/wxprefframe.cpp otrproxy-0.3.1-wxGTK-2.6/wxui/wxprefframe.cpp --- otrproxy-0.3.1/wxui/wxprefframe.cpp 2005-10-16 18:01:47.000000000 +0200 +++ otrproxy-0.3.1-wxGTK-2.6/wxui/wxprefframe.cpp 2007-12-01 11:04:25.000000000 +0100 @@ -105,7 +105,7 @@ wxID_ANY, wxT("Key for account:")); account_menu_sizer->Add(account_label, 0, wxALL | wxALIGN_CENTER, 5); account_menu = new wxChoice(otrprefs, wxID_ANY, wxDefaultPosition, - wxDefaultSize, 0, NULL); + wxDefaultSize, 0, (const wxString *)NULL); account_menu_sizer->Add(account_menu, 1, wxALL | wxALIGN_CENTER, 5); account_list = NULL; --------------050700050707040704050001-- From ian@cypherpunks.ca Sun Dec 9 01:03:25 2007 From: ian@cypherpunks.ca (Ian Goldberg) Date: Sat, 8 Dec 2007 20:03:25 -0500 Subject: [OTR-dev] Building otrproxy-0.3.1 with wxGTK-2.6 In-Reply-To: <47529FC9.5020904@tzi.de> References: <47529FC9.5020904@tzi.de> Message-ID: <20071209010325.GU32346@yoink.cs.uwaterloo.ca> On Sun, Dec 02, 2007 at 01:06:33PM +0100, Hendrik Iben wrote: > Hi, > > I'm just trying to get started using OTR and was firsted stopped when > trying to build otrproxy. > My linux distribution (Gentoo) does not support wxWindows 2.5 anymore > but wxGTK 2.6. The configure script is unable to use the 2.6 libraries > on my system and has some other problems. > > After some trial-and-error I was able to solve my problems with a small > patch and maybe this is of use for somebody else. > > I'm posting this to the user- and dev-mailing-list because I am not sure > where 'patching the source' fits... :-) otr-dev, I think. > This patch only messes with the GUI-code and was tested with > wxGTK-2.6.3.3 on x86 and 2.6.4.0 on amd64. > > Technically this patch only makes the linker use the non-static > wxGTK-libraries and resolves an ambigous constructor. Thanks! - Ian