Re: Gnuradio and Uhd on windows,

Hi Josh,

Just to verify things, I decided to try this out on an old XP laptop. I
installed uhd and set my UHD_IMAGE_PATH, updated the driver to the
WinUSB. The probe and find devices worked just fine.

I recommend you try a different computer, a different usb cable, or a
different os. Just to eliminate the variables. You only need to install
uhd to test this.

I tried it ona different PC I installed UHD, when I wanted to try the
uhd_find_devices.exe (previouslyI set the UHD_IMAGE_PATH in the SYSTEM
VARIABLES not USER VARIABLESas Markus mentioned in one of his posts) it
told me
that can’t find MSVCP100.dll, after I downloaded the MSVCP100.dll it
asked for
MSVCR100.dll, after that it started with some error saying that it
wasn’t able
to locate an entry point into MSVCR100.dll. So, unfortunatelly it’s not
working.

I tried to check if gnuradio is OK,yes I have the most recent
installer. I
havetested python.exe -c “from gnuradio import gr” and python.exe -c
“from
gnuradio import uhd”. It can’t find the path to the DLL file (like the
problem
of Ryan van den Bergh in one of these posts) even if I changed theyr
pathfrom
User Variables Path to System Variables Path.

d:\Docs\Code\Python27>python.exe -c “from gnurad
io import gr”
Traceback (most recent call last):
File “”, line 1, in
File “d:\Docs\Code\gnuradio\lib\site-packages
gnuradio\gr_init_.py”, line 43, in
from gnuradio_core import *
File “d:\Docs\Code\gnuradio\lib\site-packages
gnuradio\gr\gnuradio_core.py”, line 23, in
from gnuradio_core_runtime import *
File “d:\Docs\Code\gnuradio\lib\site-packages
gnuradio\gr\gnuradio_core_runtime.py”, line 25, in
_gnuradio_core_runtime = swig_import_helper()
File “d:\Docs\Code\gnuradio\lib\site-packages
gnuradio\gr\gnuradio_core_runtime.py”, line 21, in swig_import_helper
_mod = imp.load_module(’_gnuradio_core_runtime’, fp, pathname,
description)
ImportError: DLL load failed: The specified module could not be found.

d:\Docs\Code\Python27>python.exe -c “from gnurad
io import uhd”
Traceback (most recent call last):
File “”, line 1, in
File “d:\Docs\Code\gnuradio\lib\site-packages
gnuradio\uhd_init_.py”, line 87, in
prepare_uhd_swig()
File "d:\Docs\Code\gnuradio\lib\site-packages
gnuradio\uhd_init
.py", line 26, in _prepare_uhd_swig
import uhd_swig
File “d:\Docs\Code\gnuradio\lib\site-packages
gnuradio\uhd\uhd_swig.py”, line 24, in
_uhd_swig = swig_import_helper()
File “d:\Docs\Code\gnuradio\lib\site-packages
gnuradio\uhd\uhd_swig.py”, line 20, in swig_import_helper
_mod = imp.load_module(’_uhd_swig’, fp, pathname, description)
ImportError: DLL load failed: The specified module could not be found.

I checked files with Dependency walker and it reports that can’t find
file. To
tell you the truth I don’t know why it can’t find DLL files, I’m making
softwares for more than 5 years but only once or twice happend to have
some
problems with paths, anyway that’s not a good practice to use hardcoded
things
into the application, maybe this is why it can’t find the DLL files.

Thanks you very much Josh.

Best regards,
Mark.

that can’t find MSVCP100.dll, after I downloaded the MSVCP100.dll it asked for
MSVCR100.dll, after that it started with some error saying that it wasn’t able
to locate an entry point into MSVCR100.dll. So, unfortunatelly it’s not working.

Install msvc redistributable package.
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a7b7a05e-6de6-4d3a-a423-37bf0912db84

-Josh

On 04/15/2011 07:06 PM, Josh B. wrote:

So, maybe we’ve reached the point on the Windows binary stuff where a
“mega installer” is called for, kind of like
build-gnuradio, but for the Winderz binary install? Install the
dependencies, UHD, Gnu Radio, and maybe edits your
PATHs appropriately? I dunno if that’s even possible on Windows, and
I don’t even know how to do it, and I’m not
volunteering. And I know the Josh object(s) has just sooooo much
free time :slight_smile:


Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org

On Fri, Apr 15, 2011 at 7:40 PM, Josh B. [email protected] wrote:

“mega installer” is called for, kind of like
Honestly, I’m new to this windows installer thing. I have no idea what

There is always more time if you know where to look. Like sleep, is it
necessary? Some experts say otherwise.

-Josh

So I’ve largely just been glancing over this email thread, so I might
not
have all the facts. But this email between Marcus and Josh has caught my
attention.

Josh, is the Windows build that’s being discussed here based on your
cmake
branch? I’m wondering how easily you’ve found it to keep it up to date
with
the rest of the changes in GNU Radio master? I imagine it’s not terribly
difficult for most things, but possibly that my latest changes to
gr-qtgui
might have been a bit more challenging since the directory structure was
changed.

It also seems like you’re working out the last bugs in the installation
process, now, too, and have been making gains with your installer (going
towards the mega-installer). I’m just throwing this out there to see
what
people think, but I’m thinking we should host this on the main GNU Radio
website, too. Also, we can probably clean up the Windows build section
of
the Wiki based on your work.

Thanks!
Tom

On 04/15/2011 04:15 PM, Marcus D. Leech wrote:

-Josh

So, maybe we’ve reached the point on the Windows binary stuff where a
“mega installer” is called for, kind of like

Its funny, the installer is almost like that. Everything thats not
python is actually in there. (aside from msvc redistributable package)
15 of the 20 mb are dlls from the dependencies.

build-gnuradio, but for the Winderz binary install? Install the
dependencies, UHD, Gnu Radio, and maybe edits your
PATHs appropriately? I dunno if that’s even possible on Windows, and
I don’t even know how to do it, and I’m not

Honestly, I’m new to this windows installer thing. I have no idea what
the correct answer is. I come from a linux background thinking that
setting the PATH is the greatest thing ever.

Do i install everything in system32 and not even set the paths? Should
there be a batch script installed to the start menu that sets the path
and then executes grc? Some burdens are easier for me to pass unto the
user…

volunteering. And I know the Josh object(s) has just sooooo much
free time :slight_smile:

There is always more time if you know where to look. Like sleep, is it
necessary? Some experts say otherwise.

-Josh

Josh, is the Windows build that’s being discussed here based on your cmake

yes indeed

branch? I’m wondering how easily you’ve found it to keep it up to date with
the rest of the changes in GNU Radio master? I imagine it’s not terribly
difficult for most things, but possibly that my latest changes to gr-qtgui
might have been a bit more challenging since the directory structure was
changed.

it was ok, I had to move the cmake files after the merge, add entries
for the new files and the api export macro for the new classes in utils.

It also seems like you’re working out the last bugs in the installation
process, now, too, and have been making gains with your installer (going

I did figure out how to get a nice configuration page in the installer
that asks you if it should set the PATH just by adding the line
SET(CPACK_NSIS_MODIFY_PATH ON)

It looks like I will have to figure out a little more NSIS magic to set
the PYTHONPATH

towards the mega-installer). I’m just throwing this out there to see what
people think, but I’m thinking we should host this on the main GNU Radio
website, too. Also, we can probably clean up the Windows build section of
the Wiki based on your work.

I would rather put my notes on the redmine wiki, but I don’t want to be
presumptuous.

-Josh

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