discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] question about using qtgui_sink_c from c++


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] question about using qtgui_sink_c from c++
Date: Sat, 19 May 2012 09:41:47 -0400

On Fri, May 18, 2012 at 10:56 PM, Stephen <address@hidden> wrote:
> Hey,
>
> Is it possible to use qtgui_sink_c with c++ code? I'm having problems
> getting that to work.
>
> I'm getting some warnings about things being redefined between
> /usr/include/python2.7/pyconfig.h and /usr/include/features.h. Things
> like _POSIX_C_SOURCE and _XOPEN_SOURCE.
>
> I'm also getting an error about a file not being found. The file is
> spectrumdisplayform.ui.h which is included by spectrumdisplayform.h.
> The .ui.h file does not exist in any of the gnuradio installed areas.
> But there is a copy in the area where I built gnuradio,  build/gr-qtgui/lib
>
> So is it possible to use qtgui_sink_c with c++ code? I googled around
> but I didn't see any examples that use it.
>
> thanks,
> stephen


Hi Stephen,

No one that I know of has worked on getting gr-qtgui to work in pure
C++. Since it's written in C++, I'm certain it's possible, but since
it wasn't built for it, I'm not sure what actually needs to be done.

For your purposes of getting it to work, if you need
spectrumdisplayform.ui.h to be installed, it should be easy enough to
add it to the CMakeLists.txt file for the install rule.

And since what you are reporting for POSIX_C_SOURCE are only warnings,
just ignore them for now. I don't think that will be a hindrance to it
actually working.

If you figure out what things need to be updated/fixed for use in C++,
please send us a patch!

Tom



reply via email to

[Prev in Thread] Current Thread [Next in Thread]