Grc launch failed on MinGW

I followed all the instructions on gnuradio.org to build gnuradio+uhd on
XP+SP3 with MinGW
Everything went well. uhd_fft.py shows spectrum window, all well.
However, when I tried gnuradio-companion, I got the following errors.
Any
ideas? I thought someone had success with grc on MinGW.

C:/MinGW/msys/1.0/local/bin/gnuradio-companion:51: GtkWarning: Could not
find th
e icon ‘gnuradio-grc’. The ‘hicolor’ theme
was not found either, perhaps you need to install it.
You can get a copy from:
Index of /releases
try:
gtk.window_set_default_icon(gtk.IconTheme().load_icon(‘gnuradio-grc’,
256
, 0))
<<< Welcome to GNU Radio Companion >>>
Error: ‘options’

Failue
Traceback (most recent call last):
File
"C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\gui\MainWindow.py
", line 171, in new_page
flow_graph = self._platform.get_new_flow_graph()
File
“C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\base\Platform.py”
, line 148, in get_new_flow_graph
def get_new_flow_graph(self): return self.FlowGraph(platform=self)
File
“C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\python\FlowGraph.
py”, line 31, in init
_FlowGraph.init(self, **kwargs)
File
"C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\base\FlowGraph.py
", line 35, in init
self.import_data()
File
"C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\base\FlowGraph.py
", line 176, in import_data
self._options_block = self.get_parent().get_new_block(self,
‘options’)
File
“C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\base\Platform.py”
, line 158, in get_new_block
def get_new_block(self, flow_graph, key): return
self.Block(flow_graph,
n=se
lf._blocks_n[key])
File
“C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\base\odict.py”,
l
ine 34, in getitem
return self._data[key]
KeyError: ‘options’
Error: ‘options’
Failue
Traceback (most recent call last):
File
"C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\gui\MainWindow.py
", line 171, in new_page
flow_graph = self._platform.get_new_flow_graph()
File
“C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\base\Platform.py”
, line 148, in get_new_flow_graph
def get_new_flow_graph(self): return self.FlowGraph(platform=self)
File
“C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\python\FlowGraph.
py”, line 31, in init
_FlowGraph.init(self, **kwargs)
File
"C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\base\FlowGraph.py
", line 35, in init
self.import_data()
File
"C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\base\FlowGraph.py
", line 176, in import_data
self._options_block = self.get_parent().get_new_block(self,
‘options’)
File
“C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\base\Platform.py”
, line 158, in get_new_block
def get_new_block(self, flow_graph, key): return
self.Block(flow_graph,
n=se
lf._blocks_n[key])
File
“C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\base\odict.py”,
l
ine 34, in getitem
return self._data[key]
KeyError: ‘options’
Traceback (most recent call last):
File
“C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\gui\ActionHandler
.py”, line 310, in _handle_action
Actions.ERRORS_WINDOW_DISPLAY.set_sensitive(not
self.get_flow_graph().is_val
id())
File
"C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\gui\MainWindow.py
", line 278, in get_flow_graph
return self.get_page().get_flow_graph()
AttributeError: ‘NoneType’ object has no attribute ‘get_flow_graph’

On 08/11/2011 09:07 PM, Kyle Z. wrote:

You can get a copy from:
Index of /releases
try: gtk.window_set_default_icon(gtk.IconTheme().load_icon(‘gnuradio-grc’,
256
, 0))
<<< Welcome to GNU Radio Companion >>>
Error: ‘options’

I think this means it cant find the xml block files. Probably some
mismatch between mingw paths and native windows paths?

This may be of help:
http://gnuradio.org/redmine/projects/gnuradio/wiki/GNURadioCompanion#Installing-the-XML-Block-Definition

-josh

On 12 August 2011 18:05, Josh B. [email protected] wrote:

Yes, you are so right! I need to create config.conf in ~/.gnuradio
[grc]
local_blocks_path=C:/MinGW/msys/1.0/local/share/gnuradio/grc/blocks

Even though the xml files are all in the default directory. Also
/usr/local/share/gnuradio/grc/blocks does not work. Must use windows
style
path.

Thanks Josh for the prompt support.