Saturday, March 3, 2018

Re: [Discuss-gnuradio] How to compile the example alone?

Hello ruiy! 

The display_qt example is compiled when you compile GNU Radio with gr-qtgui. So the executable should have the following path:

gnuradio/build/gr-qtgui/examples/c++/display_qt

If you want to rewrite CMakeLists.txt to compile it alone, I believe I can help with that. :) I'm not an expert in CMake, but I can point you to a CMakeLists.txt that I've used for the same purpose.

Hope this helps!

Best regards
Håkon Vågsether

Den lør. 3. mar. 2018, 11.34 skrev ruiy <2997215859@qq.com>:
I discover a example about how to compile the qtgui in c++. The example's path is "gnuradio/gr-qtgui/examples/c++/display_qt.cc"(The website is https://github.com/gnuradio/gnuradio/tree/master/gr-qtgui/examples/c%2B%2B). But I don't know how to compile it singlely. I try to rewrite the CMakeLists.txt. However, I fail...
So if anyone know how to compile the display_qt.cc or how to rewrite the CMakeLists.txt, please teach me. Thanks very much!
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

No comments:

Post a Comment