GNU Radio Companion and WxWidgets 2.9.0 on Mac OS X 10.6.4

Hi Josh,
WxWidgets 2.9.0 supports Cocoa on Mac OS X 10.6.4, so
if I were to get that running with WxPython, would grc automatically
switch over to using Cocoa instead of gtk, when running on Mac OS X?

Best regards,

Elvis D.

On Jul 18, 2010, at 3:09 AM, Elvis D. wrote:

WxWidgets 2.9.0 supports Cocoa on Mac OS X 10.6.4, so if I were to
get that running with WxPython, would grc automatically switch over
to using Cocoa instead of gtk, when running on Mac OS X?

Short answer: yes.

Longer answer: So long as you can do “import wx” from Python, then grc
should work with whatever display is provided (whether gtk or cocoa /
aqua). The wx API hides the actual GUI being used, at least to a high
degree.

If you do decide to try this, <
http://wiki.wxwidgets.org/Development:_wxMac

might be useful. Do let the list know if you have success :slight_smile:

Hi Michael,

On Jul 19, 2010, at 1:23 AM, Michael D. wrote:

Longer answer: So long as you can do “import wx” from Python, then grc should work with whatever display is provided (whether gtk or cocoa / aqua). The wx API hides the actual GUI being used, at least to a high degree.

There is a wxPython-2.8.11 binary that you can download from the
following link

http://downloads.sourceforge.net/wxpython/wxPython2.8-osx-unicode-2.8.11.0-universal-py2.6.dmg

This is for a 32-bit carbon framework.

I still haven’t managed to get 64-bit cocoa framework building, although
some of the wxPython developer have said that they have done so.

So, back to the discussion, now I have wxPython for carbon installed and
import wx works, and it reports the correct version:

$ python

import wx
wx.VERSION_STRING
‘2.8.11.0’

exit()
$

I’ve still do to import some more dependent libraries (cheetah, lxml)
and see if grc will get built.

This is what is looks like at the moment, when I run gnuradio
./configure

checking for xdg-mime… false
checking for Python >= 2.5… yes
checking for Python Cheetah templates >= 2.0.0… no
checking for Python lxml wrappers >= 1.3.6… no
checking for Python gtk wrappers >= 2.10.0… no
Not building component grc.


The following components were skipped either because you asked not
to build them or they didn’t pass configuration checks:

usrp2-firmware

These components will not be built.


The following GNU Radio components have been successfully configured:

config
gruel
gnuradio-core
gr-msdd6000
gr-audio-osx
gr-atsc
gr-cvsd-vocoder
gr-gsm-fr-vocoder
gr-noaa
gr-pager
gr-radio-astronomy
gr-trellis
gr-wxgui
gnuradio-examples
docs

You my now run the make command to build these components.


The following components were skipped either because you asked not
to build them or they didn’t pass configuration checks:

gcell
usrp
usrp2
gr-usrp
gr-usrp2
gr-gcell
gr-audio-alsa
gr-audio-jack
gr-audio-oss
gr-audio-portaudio
gr-audio-windows
gr-comedi
gr-gpio
gr-radar-mono
gr-video-sdl
gr-qtgui
gr-sounder
gr-utils
grc

These components will not be built.

Configured GNU Radio release v3.3.1git-30-g278b6db3 for build.

best regards,

Elvis D.

Hi,

On Jul 19, 2010, at 1:40 AM, Michael D. wrote:

Now, you need to install “Python Cheetah templates >= 2.0.0”, “Python lxml wrappers >= 1.3.6”, and “Python gtk wrappers >= 2.10.0” in order to GRC to be built.

Does GRC require GTK, or does it use wxPython for the GUI?

best regards,

Elvis D.

Hi Elvis - As I said, good luck with the 64-bit cocoa version. I’m
choosing to wait until 2.9.0 comes out, but also concentrating my
efforts on getting Qt working well enough that it can be used instead
– if you’re running 10.5 or 10.6, you can get a 64-bit cocoa version
pretty easily.

So, from what you wrote it looks like gr-wxgui is to be built, which
is good. Now, you need to install “Python Cheetah templates >=
2.0.0”, “Python lxml wrappers >= 1.3.6”, and “Python gtk wrappers >=
2.10.0” in order to GRC to be built. If you’re using MacPorts, those
are pretty simple to install (though it might take a while depending
on what else is already installed). If you’re doing this install by
hand, search (e.g., using Google) for those terms & I’m pretty sure
you’ll find them; they’re not difficult to install by hand. - MLD

Now, you need to install “Python Cheetah templates >= 2.0.0”,
“Python lxml wrappers >= 1.3.6”, and “Python gtk wrappers >=
2.10.0” in order to GRC to be built.

Does GRC require GTK, or does it use wxPython for the GUI?

My bad: GRC uses GTK2 for the GUI, not wxPython – right Josh?

Hi,

On Jul 19, 2010, at 2:08 AM, Michael D. wrote:

My bad: GRC uses GTK2 for the GUI, not wxPython – right Josh?

Apparently a newer vesion of GTK supports Mac OS X’s quartz backend,
bypassing X11, so that the applications will look like a Mac app, rather
than an X11 app.

See the following link for some screenshots:

http://gtk-osx.sourceforge.net/

I’m going to try and install that, and see if it satisfies all GRC
dependencies.

http://sourceforge.net/apps/trac/gtk-osx/wiki/Build

Best regards,

Elvis D.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs