|
From: <tim...@en...> - 2006-10-25 17:30:54
|
Joe Koski wrote: > <snip> > Timoth=E9e, Per, > > We're now back to the focus issue in with the wxt terminal, but more on= that > later. > > To summarize my progress so far: > > I now have installed on my Mac: cairo, pango, gettext, wxMac, and pkg-c= onfig > above and beyond the usual Xcode-2.4 tools. Are any of these unnecessar= y for > building wxt on the Mac? > =20 I am not sure about gettext, but I guess it's a dependency of glib,=20 right ? If it's the case, you're all set. > To build cairo, I did > > ./configure --enable-atsui --enable-quartz --enable-freetype=3Dno > --enable-xlib=3Dno > > After two minor corrections to the pango build (thanks to Behdad on the > gtk-i18n Mail List), I built pango with > > ./configure --with-x=3Dno > =20 Ok. Good to know. > Then I went back and rebuilt gnuplot-4.2.rc1, including wxt, with the n= ew > pango and cairo. The wxt plot window again appears with gnuplot, but I = still > can't get focus inside the plot window. I do see Mac fonts, however. Th= e > cursor behavior has changed. When the plot appears, my arrow cursor cha= nges > to crosshairs similar to X11, which is a step forward. When I place the > crosshairs over the plot window, the cursor changes to a spinning color > pinwheel. If I click back to the finder, I get my arrow cursor back. > > I'm with Per. I'm surprised that the wxWidget folks don't have a way of > getting focus without bundling. Should I post the question there? > =20 It doesn't seem to be a rare question, since the wxWidgets wiki is quite=20 lengthy about it. We should have looked at it earlier. Below are a=20 couple of interesting links: http://www.wxwidgets.org/wiki/index.php/App_Not_Getting_Input_When_Run "You _must_ create a bundle for Carbon and Cocoa apps on OS X. If your binary is named "foo" then this works for testing purposes=20 (don't ship like this): mkdir -p foo.app/Contents/MacOS mv foo=20 foo.app/Contents/MacOS When you get things working you can eventually tweak your build system=20 to make the bundle before the final link step and pass -o=20 foo.app/Contents/MacOS/foo to the linker rather than plain -o foo." Some more details: http://www.wxwidgets.org/wiki/index.php/Distributing_WxWidgets_Applicatio= ns-Distributing_WxMac_Programs http://www.wxwidgets.org/wiki/index.php/Installing_WxMac#Executables_.28.= 27Bundles.27.29 http://www.wxwidgets.org/wiki/index.php/WxMac_Issues#Building_a_MacOSX_ap= plication_bundle Could you try the mkdir suggestion above ? (Don't use my second patch,=20 it should be useless.) It seems quite straightforward. I also asked on irc again, and was redirected to the following page: http://wxforum.shadonet.com/viewtopic.php?t=3D9146 The alternative to "bundling" is the "resource fork", that can be done wi= th: /Developer/Tools/Rez -d __DARWIN__ -t APPL -d __WXMAC__ -i=20 <insert_app_name> -d WXUSINGDLL -o <insert_app_name> Carbon.r where <insert_app_name> is the name of the executable (gnuplot here). On=20 http://wxforum.shadonet.com/viewtopic.php?t=3D6045&highlight=3Dmacos, it = is=20 said that this is only for test purposes. I hope you'll finally get it working ! Best regards, Timoth=E9e |