Qt app with GNURadio

Dear list,

First of all, thank you for your effort on resolving issues. It is
really appreciated.

I am trying to run an own Qt application with gnuradio embedded but I
can’t. The code I am trying to run is

#include
#include <gr_top_block.h>
#include <gr_null_sink.h>
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
QMainWindow mainWindow;
mainWindow.setWindowTitle(“Hello World!”);
mainWindow.show();
gr_top_block_sptr top = gr_make_top_block(“Top”);
gr_null_sink_sptr sink = gr_make_null_sink(sizeof(gr_complex));
return app.exec();
}

As you can see it is just an academical example. There is no connections
or any additional staff. But when the program starts there is a crash in
the construction of top block. Concretely, after the debug, it fails at
the constructor of basic block (inherited by top block), in the line 49.
When it does d_name(name) it crashes.

Could you provide me some hint? I am using the latest git version of
gnuradio compiled with Boost 1.44 and MSVC10 using CMake 2.8.5. The Qt
version is 4.8.1. All libraries are compiled with MSVC10 and x64 on
Windows 7 x64.

Thank you so much.

Pol H.
Research Engineer, MSc
[email protected]

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

Could you provide me some hint? I am using the latest git version of
gnuradio compiled with Boost 1.44 and MSVC10 using CMake 2.8.5. The Qt
version is 4.8.1. All libraries are compiled with MSVC10 and x64 on
Windows 7 x64.

Any chance there there is a mismatch between client app and gnuradio
dlls? Like release mode set for one and debug mode set for another?

-josh

Hi Josh,

Yes, gnuradio, boost, qt and uhd are in release mode. I enabled /debug
and /Zi in gnuradio once to debug. I also tried without these flags.

Thanks.

Could you provide me some hint? I am using the latest git version of
gnuradio compiled with Boost 1.44 and MSVC10 using CMake 2.8.5. The Qt
version is 4.8.1. All libraries are compiled with MSVC10 and x64 on
Windows 7 x64.

Any chance there there is a mismatch between client app and gnuradio
dlls? Like release mode set for one and debug mode set for another?

-josh

Pol H.
Research Engineer, MSc
[email protected]

Centre Tecnolgic 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

Hi Josh,

It seems you are right. Even though all libraries were in release mode,
my app was in debug. I recompiled it in release and everything goes
fine. I recompiled boost, uhd, qt, gnuradio and my app in debug and it
does not work. Do you know why?

Thanks.

Pol H.
Research Engineer, MSc
[email protected]

Centre Tecnolgic 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

El 29/05/2012 8:47, Pol H. escribi:

On 05/29/2012 01:22 AM, Pol H. wrote:

Hi Josh,

It seems you are right. Even though all libraries were in release mode,

Im glad its working for you!

my app was in debug. I recompiled it in release and everything goes
fine. I recompiled boost, uhd, qt, gnuradio and my app in debug and it
does not work. Do you know why?

Are you seeing segfault type of behaviour?

I think there is at least one lib or dll thats ABI mismatched (you know
debug vs release). It only takes one to be incorrect. Gnuradio has quite
a few dependencies as well like FFTW, GSL

Maybe try to narrow down which library is the problem by building a
non-gui application for example (uhd + gnuradio, no qt).

-josh