Discussion and technical support related to USRP, UHD, RFNoC
View all threadsDear Josh,
The main reason to use MSVC 2008 is that I cannot use MSVC 2010 with
Gnuradio and Qt application. I do not know why but it only works with
2008 version. So I decided to move UHD to 2008 and see if it works. I
followed your suggestion on the patch of an user and it works perfectly.
It is quite strange because the patched code does not seem to be anormal
or with some bug but it can be safely removed. I do not know if the
program will crash from another side or in the future. I will examine it.
If you are interested, I use Windows 7 x64 and a self-compiled boost
library, since there are no x64 binaries.
Thanks and regards.
--
Pol Henarejos
Research Engineer, MSc
pol.henarejos@cttc.es
Centre Tecnològic de Telecomunicacions de Catalunya (CTTC)
Engineering Unit
Parc Mediterrani de la Tecnologia
Av. Carl Friedrich Gauss, 7
08860 Castelldefels, Barcelona (Spain)
Tel: +34 93 396 71 70 Ext: 2177
Fax. +34 93 645 29 01
www.cttc.es
On 05/21/2012 12:55 PM, Josh Blum wrote:
On 05/21/2012 08:20 AM, Pol Henarejos wrote:
Dear list,
I am trying to build UHD driver using MSVC 2008, since it is my
compiler. I know that in Build Guide MSVC 2010 is required but I have
FWIW, MSVC 2010 express is free
not it. I would like to request you if you could provide me support for
this compiler.
When I build UHD using MSVC 2008 everything goes fine. But when I start
some example or test the program closes suddenly with no useful error
(windows error 0xc0000005). I tried to run the program as Administrator
but no luck. Dependancy walker does not say anything anormal. All
libraries are x64. I use the release mode and the master branch (git
003.004.001-145-g38043612). I also do not provide usb support, only usrp2.
Do you have some hint?
What you are seeing is an access violation. There is some bug related to
MSVC2008 and boost that causes it. Other users have reported this, but
unfortunately, I have not been able to replicate the issue with MSVC2008
pro and boost 1.47 from boost pro website.
A user posted a patch here that may work around the issue:
http://comments.gmane.org/gmane.comp.hardware.usrp.e100/3420
-josh
On 05/22/2012 02:41 AM, Pol Henarejos wrote:
Dear Josh,
The main reason to use MSVC 2008 is that I cannot use MSVC 2010 with
Gnuradio and Qt application. I do not know why but it only works with
2008 version. So I decided to move UHD to 2008 and see if it works. I
followed your suggestion on the patch of an user and it works perfectly.
It is quite strange because the patched code does not seem to be anormal
or with some bug but it can be safely removed. I do not know if the
program will crash from another side or in the future. I will examine it.
If you are interested, I use Windows 7 x64 and a self-compiled boost
library, since there are no x64 binaries.
So I guess my goal is to formulate a work-around so MSVC2008 can work
fine. :-)
So according to this patch:
http://permalink.gmane.org/gmane.comp.hardware.usrp.e100/3423
There are changes to log.cpp and paths.cpp
So, its probably a boost filesystem bug, possibly this:
https://svn.boost.org/trac/boost/ticket/6638
Can you try removing the patch to log.cpp?
I am wondering if there is an issue with the "/" operator used in paths,
and perhaps the log.cpp change is unnecessary.
If unchanged log.cpp does cause extra access violation, then perhaps,
get_rel_file_path() is the function at fault (also calling into boost fs).
Thanks,
-josh